Files
BYW-VoiceHub/app/drizzle/migrations/20260418112000_add_song_comments.sql
T
Henry_Du 4ce4649aaf
Build VoiceHub FPK / build-fpk (push) Failing after 56m5s
Build and Push Docker Image / build-and-push (push) Canceled after 1h9m35s
初次提交
2026-09-06 08:19:02 +08:00

11 lines
335 B
SQL

CREATE TABLE IF NOT EXISTS "SongComment" (
"id" serial PRIMARY KEY,
"createdAt" timestamp DEFAULT now() NOT NULL,
"updatedAt" timestamp DEFAULT now() NOT NULL,
"songId" integer NOT NULL,
"userId" integer NOT NULL,
"content" text NOT NULL
);
CREATE INDEX IF NOT EXISTS "SongComment_songId_idx" ON "SongComment" ("songId");