fix and update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user