Files
OnePieceDle/drizzle/0004_magenta_screwball.sql
Whidix 7183b17678
Build Docker Image / build (push) Successful in 2m8s
feat: add daily fruit feature and related components
- Introduced a new daily fruit selection mechanism with associated database schema.
- Created routes and components for displaying and interacting with daily fruit.
- Implemented logic for tracking wins related to daily fruit and character guesses.
- Added localization support for new daily fruit titles in English and French.
- Enhanced the user experience with history tracking for guesses and wins.
- Refactored existing character-related logic to accommodate new fruit functionality.
2026-06-22 20:56:31 +02:00

11 lines
436 B
SQL

CREATE TABLE `devil_fruit_history` (
`id` text PRIMARY KEY NOT NULL,
`devil_fruit_id` text,
`date` integer NOT NULL,
`won` integer DEFAULT 0 NOT NULL,
`created_at` integer NOT NULL,
`updated_at` integer NOT NULL,
FOREIGN KEY (`devil_fruit_id`) REFERENCES `devil_fruit`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE UNIQUE INDEX `devil_fruit_history_date_unique` ON `devil_fruit_history` (`date`);