Files
gg-backend/backend/prisma/migrations/20260311120120_blog/migration.sql

14 lines
357 B
MySQL
Raw Normal View History

2026-03-12 14:15:44 +05:30
-- CreateTable
CREATE TABLE "Blog" (
"id" SERIAL NOT NULL,
"title" TEXT NOT NULL,
"writer" TEXT,
"image" TEXT,
"isActive" BOOLEAN NOT NULL DEFAULT true,
"content" JSONB NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "Blog_pkey" PRIMARY KEY ("id")
);