blob: 7306c563ceaed29be9413b3fd51b289b409edfaa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
CREATE TABLE `webhooks` (
`id` text PRIMARY KEY NOT NULL,
`createdAt` integer NOT NULL,
`url` text NOT NULL,
`userId` text NOT NULL,
`events` text NOT NULL,
FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE INDEX `webhooks_userId_idx` ON `webhooks` (`userId`);
|