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/20230626200425_training/migration.sql
Vojtech Mares be651d1b9f
refactor: remove training property description, add svgIconURL, drop old migration and create new
- since app was not deployed yet, i deleted the migration to keep them clean
2023-06-26 22:26:13 +02:00

23 lines
587 B
SQL

-- CreateTable
CREATE TABLE "Training" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"slug" TEXT NOT NULL,
"days" INTEGER NOT NULL,
"weight" INTEGER NOT NULL,
"draft" BOOLEAN NOT NULL DEFAULT true,
"logoURL" TEXT,
"svgIconURL" 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");