aboutsummaryrefslogtreecommitdiffstats
path: root/packages/db/drizzle/0010_curved_sharon_ventura.sql
diff options
context:
space:
mode:
Diffstat (limited to 'packages/db/drizzle/0010_curved_sharon_ventura.sql')
-rw-r--r--packages/db/drizzle/0010_curved_sharon_ventura.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/db/drizzle/0010_curved_sharon_ventura.sql b/packages/db/drizzle/0010_curved_sharon_ventura.sql
new file mode 100644
index 00000000..e429cdfc
--- /dev/null
+++ b/packages/db/drizzle/0010_curved_sharon_ventura.sql
@@ -0,0 +1,11 @@
+CREATE TABLE `assets` (
+ `id` text PRIMARY KEY NOT NULL,
+ `userId` text NOT NULL,
+ `createdAt` integer NOT NULL,
+ `contentType` text NOT NULL,
+ `encoding` text NOT NULL,
+ `blob` blob NOT NULL,
+ FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
+);
+--> statement-breakpoint
+CREATE INDEX `assets_userId_idx` ON `assets` (`userId`); \ No newline at end of file