From fff5558701a54d28017250da8690ae2400283f94 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Apr 2024 15:27:57 +0700 Subject: [PATCH] refactor: update schema and migration --- .../migration.sql | 4 ++-- prisma/schema.prisma | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) rename prisma/migrations/{20240404070242_init => 20240404082734_init}/migration.sql (99%) diff --git a/prisma/migrations/20240404070242_init/migration.sql b/prisma/migrations/20240404082734_init/migration.sql similarity index 99% rename from prisma/migrations/20240404070242_init/migration.sql rename to prisma/migrations/20240404082734_init/migration.sql index 7851f6c..6991bd0 100644 --- a/prisma/migrations/20240404070242_init/migration.sql +++ b/prisma/migrations/20240404082734_init/migration.sql @@ -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, diff --git a/prisma/schema.prisma b/prisma/schema.prisma index b0f82be..51fd626 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -76,7 +76,7 @@ model Branch { taxNo String name String nameEN String - address String + address String addressEN String province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull) @@ -153,7 +153,7 @@ model User { lastName String lastNameEN String - address String + address String addressEN String province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull) @@ -203,7 +203,7 @@ model Customer { id String @id @default(uuid()) code String customerType String - customerNameTH String + customerName String customerNameEN String imageUrl String? @@ -264,13 +264,13 @@ model Employee { id String @id @default(uuid()) code String - fullNameTH String + fullName String fullNameEN String dateOfBirth DateTime gender String nationality String - address String + address String addressEN String province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)