Files
moemail/drizzle/0003_dashing_dust.sql
2024-12-18 01:59:34 +08:00

10 lines
302 B
SQL

CREATE TABLE `webhook` (
`id` text PRIMARY KEY NOT NULL,
`user_id` text NOT NULL,
`url` text NOT NULL,
`enabled` integer DEFAULT true NOT NULL,
`created_at` integer NOT NULL,
`updated_at` integer NOT NULL,
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
);