Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { *base.Model Email string `db:"email" json:"email"` Password string `db:"password" json:"password"` Fullname string `db:"fullname" json:"fullname"` PhoneNumber string `db:"phone_number" json:"phoneNumber,omitempty"` Address UserAddress `db:"address" json:"address,omitempty"` Role string `db:"role" json:"role" default:"MEMBER"` }
type UserAddress ¶
type UserAddress struct { Street string `db:"street" json:"street"` City string `db:"city" json:"city"` Province string `db:"province" json:"province"` Country string `db:"country" json:"country"` }
func (*UserAddress) Scan ¶
func (ud *UserAddress) Scan(value any) error
type UserRoleMapping ¶
Click to show internal directories.
Click to hide internal directories.