feat: show mii images from database

This commit is contained in:
trafficlunar 2025-04-01 21:37:43 +01:00
parent 68eed4e5fd
commit 84a732c34d
4 changed files with 16 additions and 7 deletions

View file

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

View file

@ -61,11 +61,11 @@ model Session {
}
model Mii {
id Int @id @default(autoincrement())
userId Int
name String @db.VarChar(64)
pictures String[]
tags String[]
id Int @id @default(autoincrement())
userId Int
name String @db.VarChar(64)
images String[]
tags String[]
createdAt DateTime @default(now())