fix: missing fields
This commit is contained in:
parent
ed0daff006
commit
065163dac8
3 changed files with 16 additions and 3 deletions
|
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `citizenId` to the `CustomerBranchCitizen` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "CustomerBranchCitizen" ADD COLUMN "birthDate" DATE,
|
||||
ADD COLUMN "citizenId" TEXT NOT NULL;
|
||||
|
|
@ -536,7 +536,9 @@ model CustomerBranch {
|
|||
}
|
||||
|
||||
model CustomerBranchCitizen {
|
||||
id String @id @default(cuid())
|
||||
id String @id @default(cuid())
|
||||
citizenId String
|
||||
birthDate DateTime? @db.Date
|
||||
namePrefix String?
|
||||
firstName String
|
||||
firstNameEN String?
|
||||
|
|
@ -544,8 +546,8 @@ model CustomerBranchCitizen {
|
|||
middleNameEN String?
|
||||
lastName String
|
||||
lastNameEN String?
|
||||
issueDate DateTime @db.Date
|
||||
expireDate DateTime @db.Date
|
||||
issueDate DateTime @db.Date
|
||||
expireDate DateTime @db.Date
|
||||
nationality String
|
||||
religion String
|
||||
gender String
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ function globalAllow(user: RequestWithUser["user"]) {
|
|||
}
|
||||
|
||||
type CustomerBranchCitizenPayload = {
|
||||
citizenId: string;
|
||||
birthDate?: Date;
|
||||
namePrefix?: string;
|
||||
firstName: string;
|
||||
firstNameEN?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue