feat: add more user field

This commit is contained in:
Methapon2001 2024-04-10 11:37:12 +07:00
parent d44c259999
commit de01db361a
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "birtDate" TIMESTAMP(3),
ADD COLUMN "responsibleArea" TEXT;

View file

@ -196,7 +196,10 @@ model User {
sourceNationality String?
importNationality String?
trainingPlace String?
trainingPlace String?
responsibleArea String?
birtDate DateTime?
status Status @default(CREATED)

View file

@ -50,6 +50,8 @@ type UserCreate = {
sourceNationality?: string | null;
importNationality?: string | null;
trainingPlace?: string | null;
responsibleArea?: string | null;
birthDate?: Date | null;
address: string;
addressEN: string;
@ -84,6 +86,8 @@ type UserUpdate = {
sourceNationality?: string | null;
importNationality?: string | null;
trainingPlace?: string | null;
responsibleArea?: string | null;
birthDate?: Date | null;
address?: string;
addressEN?: string;