mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
9 lines
376 B
SQL
9 lines
376 B
SQL
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()
|
|
);
|