refactor: change field to null able

This commit is contained in:
Methapon2001 2024-07-17 09:00:45 +07:00
parent df1cb471d2
commit 74ed6fb321
3 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Employee" ALTER COLUMN "nrcNo" DROP NOT NULL;

View file

@ -469,7 +469,7 @@ model Employee {
id String @id @default(uuid())
code String
nrcNo String
nrcNo String?
firstName String
firstNameEN String
lastName String

View file

@ -43,7 +43,7 @@ type EmployeeCreate = {
status?: Status;
nrcNo: string;
nrcNo?: string;
dateOfBirth: Date;
gender: string;