blob: 695f9442cc229882decb19d70c4ec9b644e6fa3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
CREATE TABLE `customPrompts` (
`id` text PRIMARY KEY NOT NULL,
`text` text NOT NULL,
`enabled` integer NOT NULL,
`attachedBy` text NOT NULL,
`createdAt` integer NOT NULL,
`userId` text NOT NULL,
FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE INDEX `customPrompts_userId_idx` ON `customPrompts` (`userId`);
|