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`);