feat: docker

This commit is contained in:
trafficlunar 2025-04-23 17:46:50 +01:00
parent 487a1a658d
commit 99c3aa5add
7 changed files with 53 additions and 12 deletions

View file

@ -1,9 +0,0 @@
/*
Warnings:
- You are about to drop the column `images` on the `miis` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "miis" DROP COLUMN "images",
ADD COLUMN "imageCount" INTEGER NOT NULL DEFAULT 0;

View file

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "users" ADD COLUMN "usernameUpdatedAt" TIMESTAMP(3);

View file

@ -8,6 +8,7 @@ CREATE TABLE "users" (
"image" TEXT,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
"usernameUpdatedAt" TIMESTAMP(3),
CONSTRAINT "users_pkey" PRIMARY KEY ("id")
);
@ -45,7 +46,7 @@ CREATE TABLE "miis" (
"id" SERIAL NOT NULL,
"userId" INTEGER NOT NULL,
"name" VARCHAR(64) NOT NULL,
"images" TEXT[],
"imageCount" INTEGER NOT NULL DEFAULT 0,
"tags" TEXT[],
"firstName" TEXT NOT NULL,
"lastName" TEXT NOT NULL,