updated events
This commit is contained in:
@@ -1932,6 +1932,20 @@ model build_ibans {
|
||||
@@index([updated_at], map: "ix_build_ibans_updated_at")
|
||||
}
|
||||
|
||||
model user_types {
|
||||
id Int @id @default(autoincrement())
|
||||
uu_id String @unique(map: "ix_user_types_uu_id") @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
||||
type String @db.VarChar
|
||||
description String @default("") @db.VarChar
|
||||
type_token String @default("") @db.VarChar
|
||||
token String @default("") @db.VarChar
|
||||
occupant_types occupant_types[]
|
||||
staff staff[]
|
||||
|
||||
@@index([type], map: "ix_user_types_type")
|
||||
@@index([token], map: "ix_user_types_token")
|
||||
}
|
||||
|
||||
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
||||
model build_living_space {
|
||||
fix_value Decimal @default(0) @db.Decimal(20, 6)
|
||||
@@ -3081,6 +3095,8 @@ model occupant_types {
|
||||
occupant_category String @default("") @db.VarChar
|
||||
occupant_category_type String @default("") @db.VarChar
|
||||
function_retriever String @default("") @db.VarChar
|
||||
user_type_id Int?
|
||||
user_type_uu_id String? @db.VarChar
|
||||
occupant_is_unique Boolean @default(false)
|
||||
ref_id String? @db.VarChar(100)
|
||||
replication_id Int @default(0) @db.SmallInt
|
||||
@@ -3103,6 +3119,7 @@ model occupant_types {
|
||||
build_decision_book_person_occupants build_decision_book_person_occupants[]
|
||||
build_living_space build_living_space[]
|
||||
build_management build_management[]
|
||||
user_types user_types? @relation(fields: [user_type_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
|
||||
@@index([created_at], map: "ix_occupant_types_created_at")
|
||||
@@index([cryp_uu_id], map: "ix_occupant_types_cryp_uu_id")
|
||||
@@ -3475,7 +3492,9 @@ model staff {
|
||||
staff_code String @db.VarChar
|
||||
duties_id Int
|
||||
duties_uu_id String @db.VarChar
|
||||
function_retriever String @default("") @db.VarChar
|
||||
// function_retriever String @default("") @db.VarChar
|
||||
user_type_id Int?
|
||||
user_type_uu_id String? @db.VarChar
|
||||
ref_id String? @db.VarChar(100)
|
||||
replication_id Int @default(0) @db.SmallInt
|
||||
cryp_uu_id String? @db.VarChar
|
||||
@@ -3497,6 +3516,7 @@ model staff {
|
||||
employee_history employee_history[]
|
||||
employees employees[]
|
||||
duties duties @relation(fields: [duties_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
user_type user_types? @relation(fields: [user_type_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
|
||||
@@index([created_at], map: "ix_staff_created_at")
|
||||
@@index([cryp_uu_id], map: "ix_staff_cryp_uu_id")
|
||||
|
||||
Reference in New Issue
Block a user