1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-backoffice-v1-monolith/prisma/migrations/20230625133945_/migration.sql

23 lines
588 B
SQL

-- CreateTable
CREATE TABLE "Training" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"slug" TEXT NOT NULL,
"description" TEXT,
"days" INTEGER NOT NULL,
"weight" INTEGER NOT NULL,
"draft" BOOLEAN NOT NULL DEFAULT true,
"logoURL" TEXT,
"repositoryURL" TEXT,
"priceOpen" INTEGER NOT NULL,
"priceCorporate" INTEGER NOT NULL,
"content" TEXT,
CONSTRAINT "Training_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "Training_slug_key" ON "Training"("slug");
-- CreateIndex
CREATE INDEX "Training_slug_idx" ON "Training"("slug");