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
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 {