This commit is contained in:
2026-06-06 15:09:46 -04:00
parent 78220d3568
commit 06295c83ca
56 changed files with 12018 additions and 440 deletions

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