Skip to content

Commit

Permalink
Notifications schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-sherman committed Nov 3, 2024
1 parent 8c38876 commit 9a8e5cd
Show file tree
Hide file tree
Showing 4 changed files with 1,173 additions and 7 deletions.
9 changes: 9 additions & 0 deletions packages/frontpage/drizzle/0004_illegal_boomerang.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE `notifications`(
`id` integer PRIMARY KEY NOT NULL,
`did` text NOT NULL,
`created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
`read_at` text,
`reason` text NOT NULL,
`comment_id` integer,
FOREIGN KEY (`comment_id`) REFERENCES `comments`(`id`) ON UPDATE NO action ON DELETE NO action
);
Loading

0 comments on commit 9a8e5cd

Please sign in to comment.