From cddaefd9420507318d71f56355ff5a6648dcd951 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 19 Jan 2025 13:55:40 +0000
Subject: feat: Change webhooks to be configurable by users

---
 packages/db/drizzle/0039_purple_albert_cleary.sql | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 packages/db/drizzle/0039_purple_albert_cleary.sql

(limited to 'packages/db/drizzle/0039_purple_albert_cleary.sql')

diff --git a/packages/db/drizzle/0039_purple_albert_cleary.sql b/packages/db/drizzle/0039_purple_albert_cleary.sql
new file mode 100644
index 00000000..7306c563
--- /dev/null
+++ b/packages/db/drizzle/0039_purple_albert_cleary.sql
@@ -0,0 +1,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`);
-- 
cgit v1.2.3-70-g09d2

