feat: add employee other fields
This commit is contained in:
parent
aae7c4640e
commit
2232c2542b
3 changed files with 7 additions and 1 deletions
|
|
@ -0,0 +1,2 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "EmployeeOtherInfo" ADD COLUMN "telephoneNo" TEXT;
|
||||
|
|
@ -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?
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue