fix and update

This commit is contained in:
lendry
2026-07-07 10:14:37 +03:00
parent 29306eb2ec
commit bd6cd0d798
22 changed files with 1544 additions and 53 deletions

View File

@@ -35,6 +35,31 @@ enum OAuthClientType {
PUBLIC
}
enum AppReleasePlatform {
ANDROID
WINDOWS
}
model AppRelease {
id String @id @default(uuid())
platform AppReleasePlatform
version String
versionCode Int
fileName String
storageKey String @unique
fileSize BigInt
sha256 String
releaseNotes String?
isPublished Boolean @default(true)
createdById String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([platform, version])
@@unique([platform, versionCode])
@@index([platform, isPublished, createdAt])
}
model User {
id String @id @default(uuid())
email String? @unique