forked from baron/baron-sso
테넌트 등록 방식을 결정
This commit is contained in:
@@ -17,6 +17,8 @@ type User struct {
|
||||
Role string `gorm:"default:'user'" json:"role"` // 'admin', 'user'
|
||||
AffiliationType string `json:"affiliationType"`
|
||||
CompanyCode string `json:"companyCode"`
|
||||
TenantID *string `gorm:"type:uuid;index" json:"tenantId,omitempty"`
|
||||
Tenant *Tenant `gorm:"foreignKey:TenantID" json:"tenant,omitempty"`
|
||||
Department string `json:"department"`
|
||||
Status string `gorm:"default:'active'" json:"status"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
|
||||
Reference in New Issue
Block a user