mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-27 22:24:14 +00:00
feat: get miis from database and client like button
This commit is contained in:
parent
7b799405dc
commit
8625321ece
5 changed files with 89 additions and 18 deletions
2
prisma/migrations/20250329220850_/migration.sql
Normal file
2
prisma/migrations/20250329220850_/migration.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "miis" ADD COLUMN "tags" TEXT[];
|
||||
|
|
@ -62,8 +62,9 @@ model Session {
|
|||
model Mii {
|
||||
id BigInt @id @default(autoincrement())
|
||||
userId String
|
||||
name String
|
||||
name String @db.VarChar(64)
|
||||
pictures String[]
|
||||
tags String[]
|
||||
likes Int @default(0)
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue