re-init
This commit is contained in:
7
drizzle/0003_giant_toad.sql
Normal file
7
drizzle/0003_giant_toad.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE `plant_views` (
|
||||
`plant_id` text PRIMARY KEY NOT NULL,
|
||||
`view_count` integer DEFAULT 0 NOT NULL,
|
||||
FOREIGN KEY (`plant_id`) REFERENCES `plants`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `idx_plant_views_count` ON `plant_views` (`view_count`);
|
||||
Reference in New Issue
Block a user