refactor: input fields (branch, user)
This commit is contained in:
parent
0570956850
commit
8a745fefa8
4 changed files with 23 additions and 3 deletions
|
|
@ -192,6 +192,10 @@ model Branch {
|
||||||
nameEN String
|
nameEN String
|
||||||
telephoneNo String
|
telephoneNo String
|
||||||
|
|
||||||
|
permitNo String
|
||||||
|
permitIssueDate DateTime @db.Date
|
||||||
|
permitExpireDate DateTime @db.Date
|
||||||
|
|
||||||
address String
|
address String
|
||||||
addressEN String
|
addressEN String
|
||||||
|
|
||||||
|
|
@ -340,9 +344,9 @@ model User {
|
||||||
userType UserType
|
userType UserType
|
||||||
userRole String
|
userRole String
|
||||||
|
|
||||||
// citizenId String?
|
citizenId String
|
||||||
// citizenIssue DateTime? @db.Date
|
citizenIssue DateTime @db.Date
|
||||||
// citizenExpire DateTime? @db.Date
|
citizenExpire DateTime? @db.Date
|
||||||
|
|
||||||
discountCondition String?
|
discountCondition String?
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,8 @@ const APP_PORT = +(process.env.APP_PORT || 3000);
|
||||||
lastNameEN: "System",
|
lastNameEN: "System",
|
||||||
statusOrder: 0,
|
statusOrder: 0,
|
||||||
username: "admin",
|
username: "admin",
|
||||||
|
citizenId: "",
|
||||||
|
citizenIssue: new Date(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,9 @@ type BranchCreate = {
|
||||||
taxNo: string;
|
taxNo: string;
|
||||||
nameEN: string;
|
nameEN: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
permitNo: string;
|
||||||
|
permitIssueDate: Date;
|
||||||
|
permitExpireDate: Date;
|
||||||
addressEN: string;
|
addressEN: string;
|
||||||
address: string;
|
address: string;
|
||||||
soi?: string | null;
|
soi?: string | null;
|
||||||
|
|
@ -83,6 +86,9 @@ type BranchUpdate = {
|
||||||
taxNo?: string;
|
taxNo?: string;
|
||||||
nameEN?: string;
|
nameEN?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
permitNo?: string;
|
||||||
|
permitIssueDate?: Date;
|
||||||
|
permitExpireDate?: Date;
|
||||||
addressEN?: string;
|
addressEN?: string;
|
||||||
address?: string;
|
address?: string;
|
||||||
soi?: string | null;
|
soi?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,10 @@ type UserCreate = {
|
||||||
|
|
||||||
username: string;
|
username: string;
|
||||||
|
|
||||||
|
citizenId: string;
|
||||||
|
citizenIssue: Date;
|
||||||
|
citizenExpire?: Date | null;
|
||||||
|
|
||||||
namePrefix?: string | null;
|
namePrefix?: string | null;
|
||||||
firstName: string;
|
firstName: string;
|
||||||
firstNameEN: string;
|
firstNameEN: string;
|
||||||
|
|
@ -111,6 +115,10 @@ type UserUpdate = {
|
||||||
userType?: UserType;
|
userType?: UserType;
|
||||||
userRole?: string;
|
userRole?: string;
|
||||||
|
|
||||||
|
citizenId?: string;
|
||||||
|
citizenIssue?: Date;
|
||||||
|
citizenExpire?: Date | null;
|
||||||
|
|
||||||
namePrefix?: string | null;
|
namePrefix?: string | null;
|
||||||
firstName?: string;
|
firstName?: string;
|
||||||
firstNameEN?: string;
|
firstNameEN?: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue