gitdataai/lib/migrate/sql/issue/issue_reaction_up_01.sql
2026-05-30 01:38:40 +08:00

9 lines
295 B
SQL

CREATE TABLE IF NOT EXISTS issue_reaction (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
issue UUID NOT NULL REFERENCES issue(id),
comment UUID REFERENCES issue_comment(id),
"user" UUID NOT NULL,
reaction TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);