Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ROLE_ADMIN = "ROLE_ADMIN" ROLE_USER = "ROLE_USER" )
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { bun.BaseModel `bun:"table:credentials,alias:c"` domain.Entity Username string `bun:"username,notnull,unique"` Password string `bun:"password_hash,notnull"` UserID uuid.UUID `bun:"user_id,notnull,unique"` }
func NewCredentials ¶
func NewCredentials(username, password string) *Credentials
Click to show internal directories.
Click to hide internal directories.