refactor: database fields
This commit is contained in:
parent
57d2c575bc
commit
203fd88e66
1 changed files with 10 additions and 4 deletions
|
|
@ -233,6 +233,7 @@ model CustomerBranch {
|
|||
registerDate DateTime
|
||||
authorizedCapital String
|
||||
|
||||
address String
|
||||
addressEN String
|
||||
|
||||
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
|
||||
|
|
@ -252,6 +253,8 @@ model CustomerBranch {
|
|||
latitude String
|
||||
longitude String
|
||||
|
||||
status Status @default(CREATED)
|
||||
|
||||
createdBy String?
|
||||
createdAt DateTime @default(now())
|
||||
updateBy String?
|
||||
|
|
@ -264,8 +267,12 @@ model Employee {
|
|||
id String @id @default(uuid())
|
||||
|
||||
code String
|
||||
fullName String
|
||||
fullNameEN String
|
||||
nrcNo String
|
||||
firstName String
|
||||
firstNameEN String
|
||||
lastName String
|
||||
lastNameEN String
|
||||
|
||||
dateOfBirth DateTime
|
||||
gender String
|
||||
nationality String
|
||||
|
|
@ -289,7 +296,6 @@ model Employee {
|
|||
|
||||
arrivalBarricade String
|
||||
arrivalCardNo String
|
||||
profileImageUrl String
|
||||
|
||||
customerBranch CustomerBranch? @relation(fields: [customerBranchId], references: [id], onDelete: SetNull)
|
||||
customerBranchId String?
|
||||
|
|
@ -303,7 +309,7 @@ model Employee {
|
|||
|
||||
employeeCheckup EmployeeCheckup[]
|
||||
employeeWork EmployeeWork[]
|
||||
EmployeeOtherInfo EmployeeOtherInfo[]
|
||||
employeeOtherInfo EmployeeOtherInfo[]
|
||||
}
|
||||
|
||||
model EmployeeCheckup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue