feat/sso-auth: added models
This commit is contained in:
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package extuser
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
eap "simrs-vx/internal/domain/main-entities/auth-partner"
|
||||
eau "simrs-vx/internal/domain/main-entities/user"
|
||||
)
|
||||
|
||||
type ExtUser struct {
|
||||
ecore.Main // adjust this according to the needs
|
||||
Name string `json:"name" gorm:"size:100"`
|
||||
AuthPartner_Code string `json:"authPartner_code" gorm:"size:30"`
|
||||
AuthPartner *eap.AuthPartner `json:"authPartner,omitempty" gorm:"foreignKey:AuthPartner_Code;references:Code"`
|
||||
User_Name string `json:"user_name" gorm:"size:50"`
|
||||
User *eau.User `json:"user,omitempty" gorm:"foreignKey:User_Name;references:Name"`
|
||||
}
|
||||
Reference in New Issue
Block a user