feat: migrate to tailwind v4 and fix user token API

This commit is contained in:
DecDuck
2025-02-14 20:01:18 +11:00
parent e4eb6b87c1
commit ced981cbc8
19 changed files with 348 additions and 57 deletions
+5 -1
View File
@@ -28,11 +28,15 @@ enum APITokenMode {
}
model APIToken {
token String @id @default(uuid())
id String @id @default(uuid())
token String @default(uuid())
mode APITokenMode
name String
userId String?
user User? @relation(fields: [userId], references: [id])
acls String[]
@@index([token])
}
+2 -2
View File
@@ -46,9 +46,9 @@ model GameVersion {
platform Platform
launchCommand String? // Command to run to start. Platform-specific. Windows games on Linux will wrap this command in Proton/Wine
launchCommand String @default("") // Command to run to start. Platform-specific. Windows games on Linux will wrap this command in Proton/Wine
launchArgs String[]
setupCommand String? // Command to setup game (dependencies and such)
setupCommand String @default("") // Command to setup game (dependencies and such)
setupArgs String[]
onlySetup Boolean @default(false)
+1 -1
View File
@@ -6,7 +6,7 @@
generator client {
provider = "prisma-client-js"
previewFeatures = ["prismaSchemaFolder"]
previewFeatures = ["prismaSchemaFolder", "omitApi"]
}
datasource db {