refactor: database fields

This commit is contained in:
Methapon2001 2024-04-04 17:42:52 +07:00
parent 57d2c575bc
commit 203fd88e66

View file

@ -233,6 +233,7 @@ model CustomerBranch {
registerDate DateTime registerDate DateTime
authorizedCapital String authorizedCapital String
address String
addressEN String addressEN String
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull) province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
@ -252,6 +253,8 @@ model CustomerBranch {
latitude String latitude String
longitude String longitude String
status Status @default(CREATED)
createdBy String? createdBy String?
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updateBy String? updateBy String?
@ -264,8 +267,12 @@ model Employee {
id String @id @default(uuid()) id String @id @default(uuid())
code String code String
fullName String nrcNo String
fullNameEN String firstName String
firstNameEN String
lastName String
lastNameEN String
dateOfBirth DateTime dateOfBirth DateTime
gender String gender String
nationality String nationality String
@ -289,7 +296,6 @@ model Employee {
arrivalBarricade String arrivalBarricade String
arrivalCardNo String arrivalCardNo String
profileImageUrl String
customerBranch CustomerBranch? @relation(fields: [customerBranchId], references: [id], onDelete: SetNull) customerBranch CustomerBranch? @relation(fields: [customerBranchId], references: [id], onDelete: SetNull)
customerBranchId String? customerBranchId String?
@ -303,7 +309,7 @@ model Employee {
employeeCheckup EmployeeCheckup[] employeeCheckup EmployeeCheckup[]
employeeWork EmployeeWork[] employeeWork EmployeeWork[]
EmployeeOtherInfo EmployeeOtherInfo[] employeeOtherInfo EmployeeOtherInfo[]
} }
model EmployeeCheckup { model EmployeeCheckup {