modify provisioning
This commit is contained in:
@@ -227,6 +227,27 @@ model ProvisionedDevice {
|
||||
@@map("provisioned_devices")
|
||||
}
|
||||
|
||||
model DeviceAuthorization {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
deviceCodeHash String @unique @map("device_code_hash")
|
||||
userCode String @unique @map("user_code")
|
||||
status String @default("PENDING")
|
||||
authUserId String? @map("auth_user_id") @db.Uuid
|
||||
accountEmail String? @map("account_email")
|
||||
authUserName String? @map("auth_user_name")
|
||||
authUserRole String? @map("auth_user_role")
|
||||
authUserRoles Json? @map("auth_user_roles")
|
||||
device Json?
|
||||
expiresAt DateTime @map("expires_at") @db.Timestamptz(3)
|
||||
approvedAt DateTime? @map("approved_at") @db.Timestamptz(3)
|
||||
consumedAt DateTime? @map("consumed_at") @db.Timestamptz(3)
|
||||
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
|
||||
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3)
|
||||
|
||||
@@index([status, expiresAt])
|
||||
@@map("device_authorizations")
|
||||
}
|
||||
|
||||
model LauncherSshKey {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
accountEmail String @map("account_email")
|
||||
|
||||
Reference in New Issue
Block a user