1
0
Fork 0

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
This commit is contained in:
Vojtěch Mareš 2023-06-26 22:26:13 +02:00
parent f731dd6bcb
commit be651d1b9f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
5 changed files with 37 additions and 7 deletions

View file

@ -0,0 +1,23 @@
-- 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");