feat: custom mii images and refactor submit route

This commit is contained in:
trafficlunar 2025-04-07 20:20:23 +01:00
parent 45fb0c07a7
commit 1e0132990a
8 changed files with 226 additions and 103 deletions

View file

@ -0,0 +1,9 @@
/*
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

@ -61,11 +61,11 @@ model Session {
}
model Mii {
id Int @id @default(autoincrement())
userId Int
name String @db.VarChar(64)
images String[]
tags String[]
id Int @id @default(autoincrement())
userId Int
name String @db.VarChar(64)
imageCount Int @default(0)
tags String[]
firstName String
lastName String