refactor: change field to null able
This commit is contained in:
parent
df1cb471d2
commit
74ed6fb321
3 changed files with 4 additions and 2 deletions
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Employee" ALTER COLUMN "nrcNo" DROP NOT NULL;
|
||||||
|
|
@ -469,7 +469,7 @@ model Employee {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
|
|
||||||
code String
|
code String
|
||||||
nrcNo String
|
nrcNo String?
|
||||||
firstName String
|
firstName String
|
||||||
firstNameEN String
|
firstNameEN String
|
||||||
lastName String
|
lastName String
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ type EmployeeCreate = {
|
||||||
|
|
||||||
status?: Status;
|
status?: Status;
|
||||||
|
|
||||||
nrcNo: string;
|
nrcNo?: string;
|
||||||
|
|
||||||
dateOfBirth: Date;
|
dateOfBirth: Date;
|
||||||
gender: string;
|
gender: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue