Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
CREATE TABLE `featured_patterns` (
`pattern_id` text PRIMARY KEY NOT NULL,
`position` integer DEFAULT 0 NOT NULL,
`user_id` text,
`created_at` integer NOT NULL,
FOREIGN KEY (`pattern_id`) REFERENCES `patterns`(`id`) ON UPDATE no action ON DELETE cascade,
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE set null
);
--> statement-breakpoint
CREATE INDEX `featured_patterns_position_idx` ON `featured_patterns` (`position`);07e931b46This file is pinned to the selected release. Download the original to open it in your design tool.