feat: add employee other fields

This commit is contained in:
Methapon Metanipat 2024-11-11 14:32:06 +07:00
parent aae7c4640e
commit 2232c2542b
3 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "EmployeeOtherInfo" ADD COLUMN "telephoneNo" TEXT;

View file

@ -905,7 +905,9 @@ model EmployeeOtherInfo {
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
employeeId String @unique
citizenId String?
telephoneNo String?
citizenId String?
fatherBirthPlace String?
fatherFirstName String?
fatherLastName String?

View file

@ -34,7 +34,9 @@ function globalAllow(user: RequestWithUser["user"]) {
}
type EmployeeOtherInfoPayload = {
telephoneNo?: string | null;
citizenId?: string | null;
fatherFirstName?: string | null;
fatherLastName?: string | null;
fatherBirthPlace?: string | null;