ai-chatbot/lib/db/migrations/0033_create_tutorial_videos.sql
Your Name 1e3a99855f
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
db: run 0032/0033 via journal + add TutorialVideos table
2026-02-14 01:21:07 +08:00

14 lines
434 B
SQL

CREATE TABLE IF NOT EXISTS "TutorialVideos" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"title" varchar(128) NOT NULL,
"videoUrl" text NOT NULL,
"coverUrl" text,
"description" text,
"order" integer NOT NULL DEFAULT 0,
"isEnabled" boolean NOT NULL DEFAULT true,
"createdAt" timestamp DEFAULT now() NOT NULL,
"updatedAt" timestamp DEFAULT now() NOT NULL,
"createdBy" uuid REFERENCES "User"("id")
);