Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forum ¶
type Forum struct {
Id uint64 `gorm:"primaryKey"`
ParentId *uint64
Name string
Description sql.NullString
IsLink bool `gorm:"default:false"`
Link sql.NullString
Children []Forum `gorm:"foreignkey:ParentId"`
Topics []Topic
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}
type User ¶
type User struct {
Id uint64 `gorm:"primaryKey"`
Username string `gorm:"unique"`
Password string
Email string `gorm:"unique"`
Avatar sql.NullString
Signature sql.NullString
EmailConfirmedAt sql.NullTime
LastSeen sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}
User model
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.