Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDummyAdmin ¶
NewDummyAdmin generate admin for dummy app
Types ¶
type User ¶
type User struct {
gorm.Model
Name string
Age uint
Role string
Active bool
RegisteredAt *time.Time
Avatar oss.OSS
Profile Profile // has one
CreditCardID uint
CreditCard CreditCard // belongs to
Addresses []Address // has many
CompanyID uint
Company *Company // belongs to
Languages []Language `gorm:"many2many:user_languages;"` // many 2 many
}
Click to show internal directories.
Click to hide internal directories.