feat: auto gen user code
This commit is contained in:
parent
3abff0594a
commit
3f0ed2c8d6
4 changed files with 113 additions and 32 deletions
|
|
@ -73,7 +73,7 @@ enum Status {
|
|||
|
||||
model Branch {
|
||||
id String @id @default(uuid())
|
||||
code String @default(uuid())
|
||||
code String
|
||||
taxNo String
|
||||
name String
|
||||
nameEN String
|
||||
|
|
@ -143,12 +143,19 @@ model BranchUser {
|
|||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
enum UserType {
|
||||
USER
|
||||
MESSENGER
|
||||
DELEGATE
|
||||
AGENCY
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(uuid())
|
||||
|
||||
keycloakId String
|
||||
|
||||
code String @default(uuid())
|
||||
code String?
|
||||
firstName String
|
||||
firstNameEN String
|
||||
lastName String
|
||||
|
|
@ -177,7 +184,7 @@ model User {
|
|||
startDate DateTime?
|
||||
retireDate DateTime?
|
||||
|
||||
userType String
|
||||
userType UserType
|
||||
userRole String
|
||||
|
||||
discountCondition String?
|
||||
|
|
@ -203,7 +210,7 @@ model User {
|
|||
|
||||
model Customer {
|
||||
id String @id @default(uuid())
|
||||
code String @default(uuid())
|
||||
code String
|
||||
customerType String
|
||||
customerName String
|
||||
customerNameEN String
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue