refactor: update schema and migration

This commit is contained in:
Methapon2001 2024-04-04 15:27:57 +07:00
parent 86efb84cea
commit fff5558701
2 changed files with 7 additions and 7 deletions

View file

@ -141,7 +141,7 @@ CREATE TABLE "Customer" (
"id" TEXT NOT NULL,
"code" TEXT NOT NULL,
"customerType" TEXT NOT NULL,
"customerNameTH" TEXT NOT NULL,
"customerName" TEXT NOT NULL,
"customerNameEN" TEXT NOT NULL,
"imageUrl" TEXT,
"status" "Status" NOT NULL DEFAULT 'CREATED',
@ -186,7 +186,7 @@ CREATE TABLE "CustomerBranch" (
CREATE TABLE "Employee" (
"id" TEXT NOT NULL,
"code" TEXT NOT NULL,
"fullNameTH" TEXT NOT NULL,
"fullName" TEXT NOT NULL,
"fullNameEN" TEXT NOT NULL,
"dateOfBirth" TIMESTAMP(3) NOT NULL,
"gender" TEXT NOT NULL,

View file

@ -203,7 +203,7 @@ model Customer {
id String @id @default(uuid())
code String
customerType String
customerNameTH String
customerName String
customerNameEN String
imageUrl String?
@ -264,7 +264,7 @@ model Employee {
id String @id @default(uuid())
code String
fullNameTH String
fullName String
fullNameEN String
dateOfBirth DateTime
gender String