From 203fd88e66496f21d2fb10e1056a06195404602e Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:42:52 +0700 Subject: [PATCH] refactor: database fields --- prisma/schema.prisma | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 8b98e78..0a43c92 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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 {