refactor!: customer (employer) fields
This commit is contained in:
parent
00776151c5
commit
86888ed512
4 changed files with 95 additions and 40 deletions
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `businessTypeEN` on the `CustomerBranch` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `jobPositionEN` on the `CustomerBranch` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `saleEmployee` on the `CustomerBranch` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `workplace` on the `CustomerBranch` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `workplaceEN` on the `CustomerBranch` table. All the data in the column will be lost.
|
||||
- Added the required column `agent` to the `CustomerBranch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `contactTel` to the `CustomerBranch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `employmentOfficeEN` to the `CustomerBranch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `homeCode` to the `CustomerBranch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `officeTel` to the `CustomerBranch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `payDateEN` to the `CustomerBranch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `wageRateText` to the `CustomerBranch` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "CustomerBranch" DROP COLUMN "businessTypeEN",
|
||||
DROP COLUMN "jobPositionEN",
|
||||
DROP COLUMN "saleEmployee",
|
||||
DROP COLUMN "workplace",
|
||||
DROP COLUMN "workplaceEN",
|
||||
ADD COLUMN "agent" TEXT NOT NULL,
|
||||
ADD COLUMN "authorizedName" TEXT,
|
||||
ADD COLUMN "authorizedNameEN" TEXT,
|
||||
ADD COLUMN "contactTel" TEXT NOT NULL,
|
||||
ADD COLUMN "employmentOfficeEN" TEXT NOT NULL,
|
||||
ADD COLUMN "homeCode" TEXT NOT NULL,
|
||||
ADD COLUMN "officeTel" TEXT NOT NULL,
|
||||
ADD COLUMN "payDateEN" TEXT NOT NULL,
|
||||
ADD COLUMN "wageRateText" TEXT NOT NULL,
|
||||
ALTER COLUMN "payDate" SET DATA TYPE TEXT;
|
||||
|
|
@ -466,11 +466,15 @@ model CustomerBranch {
|
|||
registerNameEN String?
|
||||
registerDate DateTime? @db.Date
|
||||
authorizedCapital String?
|
||||
authorizedName String?
|
||||
authorizedNameEN String?
|
||||
|
||||
workplace String
|
||||
workplaceEN String
|
||||
address String
|
||||
addressEN String
|
||||
// NOTE: Address
|
||||
homeCode String
|
||||
employmentOffice String
|
||||
employmentOfficeEN String
|
||||
address String
|
||||
addressEN String
|
||||
|
||||
soi String?
|
||||
soiEN String?
|
||||
|
|
@ -488,18 +492,21 @@ model CustomerBranch {
|
|||
subDistrict SubDistrict? @relation(fields: [subDistrictId], references: [id], onDelete: SetNull)
|
||||
subDistrictId String?
|
||||
|
||||
// NOTE: contact
|
||||
email String
|
||||
contactTel String
|
||||
officeTel String
|
||||
contactName String
|
||||
agent String
|
||||
|
||||
employmentOffice String
|
||||
businessType String
|
||||
businessTypeEN String
|
||||
jobPosition String
|
||||
jobPositionEN String
|
||||
jobDescription String
|
||||
saleEmployee String
|
||||
payDate DateTime @db.Date
|
||||
wageRate Int
|
||||
// NOTE: Business
|
||||
businessType String
|
||||
jobPosition String
|
||||
jobDescription String
|
||||
payDate String
|
||||
payDateEN String
|
||||
wageRate Int
|
||||
wageRateText String
|
||||
|
||||
status Status @default(CREATED)
|
||||
statusOrder Int @default(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue