feat: update field
This commit is contained in:
parent
c079f43e8d
commit
af4489dccc
7 changed files with 162 additions and 160 deletions
|
|
@ -0,0 +1,31 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "EmployeeCheckup" ALTER COLUMN "checkupResult" DROP NOT NULL,
|
||||
ALTER COLUMN "checkupType" DROP NOT NULL,
|
||||
ALTER COLUMN "hospitalName" DROP NOT NULL,
|
||||
ALTER COLUMN "remark" DROP NOT NULL,
|
||||
ALTER COLUMN "medicalBenefitScheme" DROP NOT NULL,
|
||||
ALTER COLUMN "insuranceCompany" DROP NOT NULL,
|
||||
ALTER COLUMN "coverageStartDate" DROP NOT NULL,
|
||||
ALTER COLUMN "coverageExpireDate" DROP NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "EmployeeOtherInfo" ALTER COLUMN "citizenId" DROP NOT NULL,
|
||||
ALTER COLUMN "fatherFirstName" DROP NOT NULL,
|
||||
ALTER COLUMN "fatherFirstNameEN" DROP NOT NULL,
|
||||
ALTER COLUMN "fatherLastName" DROP NOT NULL,
|
||||
ALTER COLUMN "fatherLastNameEN" DROP NOT NULL,
|
||||
ALTER COLUMN "motherFirstName" DROP NOT NULL,
|
||||
ALTER COLUMN "motherFirstNameEN" DROP NOT NULL,
|
||||
ALTER COLUMN "motherLastName" DROP NOT NULL,
|
||||
ALTER COLUMN "motherLastNameEN" DROP NOT NULL,
|
||||
ALTER COLUMN "birthPlace" DROP NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "EmployeeWork" ALTER COLUMN "ownerName" DROP NOT NULL,
|
||||
ALTER COLUMN "positionName" DROP NOT NULL,
|
||||
ALTER COLUMN "jobType" DROP NOT NULL,
|
||||
ALTER COLUMN "workplace" DROP NOT NULL,
|
||||
ALTER COLUMN "workPermitNo" DROP NOT NULL,
|
||||
ALTER COLUMN "workPermitIssuDate" DROP NOT NULL,
|
||||
ALTER COLUMN "workPermitExpireDate" DROP NOT NULL,
|
||||
ALTER COLUMN "workEndDate" DROP NOT NULL;
|
||||
10
prisma/migrations/20240611042536_add_field/migration.sql
Normal file
10
prisma/migrations/20240611042536_add_field/migration.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `birthPlace` on the `EmployeeOtherInfo` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "EmployeeOtherInfo" DROP COLUMN "birthPlace",
|
||||
ADD COLUMN "fatherBirthPlace" TEXT,
|
||||
ADD COLUMN "motherBirthPlace" TEXT;
|
||||
|
|
@ -467,18 +467,18 @@ model EmployeeCheckup {
|
|||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||
employeeId String
|
||||
|
||||
checkupResult String
|
||||
checkupType String
|
||||
checkupResult String?
|
||||
checkupType String?
|
||||
|
||||
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
|
||||
provinceId String?
|
||||
|
||||
hospitalName String
|
||||
remark String
|
||||
medicalBenefitScheme String
|
||||
insuranceCompany String
|
||||
coverageStartDate DateTime
|
||||
coverageExpireDate DateTime
|
||||
hospitalName String?
|
||||
remark String?
|
||||
medicalBenefitScheme String?
|
||||
insuranceCompany String?
|
||||
coverageStartDate DateTime?
|
||||
coverageExpireDate DateTime?
|
||||
|
||||
createdBy String?
|
||||
createdAt DateTime @default(now())
|
||||
|
|
@ -492,14 +492,14 @@ model EmployeeWork {
|
|||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||
employeeId String
|
||||
|
||||
ownerName String
|
||||
positionName String
|
||||
jobType String
|
||||
workplace String
|
||||
workPermitNo String
|
||||
workPermitIssuDate DateTime
|
||||
workPermitExpireDate DateTime
|
||||
workEndDate DateTime
|
||||
ownerName String?
|
||||
positionName String?
|
||||
jobType String?
|
||||
workplace String?
|
||||
workPermitNo String?
|
||||
workPermitIssuDate DateTime?
|
||||
workPermitExpireDate DateTime?
|
||||
workEndDate DateTime?
|
||||
remark String?
|
||||
|
||||
createdBy String?
|
||||
|
|
@ -514,17 +514,18 @@ model EmployeeOtherInfo {
|
|||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||
employeeId String
|
||||
|
||||
citizenId String
|
||||
birthPlace String
|
||||
fatherFirstName String
|
||||
fatherLastName String
|
||||
motherFirstName String
|
||||
motherLastName String
|
||||
citizenId String?
|
||||
fatherBirthPlace String?
|
||||
fatherFirstName String?
|
||||
fatherLastName String?
|
||||
motherBirthPlace String?
|
||||
motherFirstName String?
|
||||
motherLastName String?
|
||||
|
||||
fatherFirstNameEN String
|
||||
fatherLastNameEN String
|
||||
motherFirstNameEN String
|
||||
motherLastNameEN String
|
||||
fatherFirstNameEN String?
|
||||
fatherLastNameEN String?
|
||||
motherFirstNameEN String?
|
||||
motherLastNameEN String?
|
||||
|
||||
createdBy String?
|
||||
createdAt DateTime @default(now())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue