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
|
||||
telephoneNo String
|
||||
|
||||
permitNo String
|
||||
permitIssueDate DateTime @db.Date
|
||||
permitExpireDate DateTime @db.Date
|
||||
|
||||
address String
|
||||
addressEN String
|
||||
|
||||
|
|
@ -340,9 +344,9 @@ model User {
|
|||
userType UserType
|
||||
userRole String
|
||||
|
||||
// citizenId String?
|
||||
// citizenIssue DateTime? @db.Date
|
||||
// citizenExpire DateTime? @db.Date
|
||||
citizenId String
|
||||
citizenIssue DateTime @db.Date
|
||||
citizenExpire DateTime? @db.Date
|
||||
|
||||
discountCondition String?
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@ const APP_PORT = +(process.env.APP_PORT || 3000);
|
|||
lastNameEN: "System",
|
||||
statusOrder: 0,
|
||||
username: "admin",
|
||||
citizenId: "",
|
||||
citizenIssue: new Date(),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,9 @@ type BranchCreate = {
|
|||
taxNo: string;
|
||||
nameEN: string;
|
||||
name: string;
|
||||
permitNo: string;
|
||||
permitIssueDate: Date;
|
||||
permitExpireDate: Date;
|
||||
addressEN: string;
|
||||
address: string;
|
||||
soi?: string | null;
|
||||
|
|
@ -83,6 +86,9 @@ type BranchUpdate = {
|
|||
taxNo?: string;
|
||||
nameEN?: string;
|
||||
name?: string;
|
||||
permitNo?: string;
|
||||
permitIssueDate?: Date;
|
||||
permitExpireDate?: Date;
|
||||
addressEN?: string;
|
||||
address?: string;
|
||||
soi?: string | null;
|
||||
|
|
|
|||
|
|
@ -59,6 +59,10 @@ type UserCreate = {
|
|||
|
||||
username: string;
|
||||
|
||||
citizenId: string;
|
||||
citizenIssue: Date;
|
||||
citizenExpire?: Date | null;
|
||||
|
||||
namePrefix?: string | null;
|
||||
firstName: string;
|
||||
firstNameEN: string;
|
||||
|
|
@ -111,6 +115,10 @@ type UserUpdate = {
|
|||
userType?: UserType;
|
||||
userRole?: string;
|
||||
|
||||
citizenId?: string;
|
||||
citizenIssue?: Date;
|
||||
citizenExpire?: Date | null;
|
||||
|
||||
namePrefix?: string | null;
|
||||
firstName?: string;
|
||||
firstNameEN?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue