mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
full comments system
This commit is contained in:
8
packages/backend/drizzle/0021_issue_comments.sql
Normal file
8
packages/backend/drizzle/0021_issue_comments.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE "IssueComment" (
|
||||
"id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
||||
"issueId" integer NOT NULL REFERENCES "Issue" ("id") ON DELETE CASCADE,
|
||||
"userId" integer NOT NULL REFERENCES "User" ("id") ON DELETE CASCADE,
|
||||
"body" varchar(2048) NOT NULL,
|
||||
"createdAt" timestamp NOT NULL DEFAULT now(),
|
||||
"updatedAt" timestamp NOT NULL DEFAULT now()
|
||||
);
|
||||
Reference in New Issue
Block a user