Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Avatar ¶ added in v0.3.5
type Avatar struct {
Id uint `gorm:"primaryKey"`
UserId uint `gorm:"uniqueIndex;not null"`
ImageId uint `gorm:"not null"`
Image Image `gorm:"constraint:OnDelete:CASCADE;foreignKey:ImageId"`
CreatedAt time.Time `gorm:"autoCreateTime"`
}
func (Avatar) MarkerEntity ¶ added in v0.3.5
func (user Avatar) MarkerEntity()
type Ban ¶ added in v0.2.7
type Ban struct {
Id uint `gorm:"primaryKey"`
UserId uint `gorm:"not null"`
User User `gorm:"foreignKey:UserId;constraint:OnDelete:CASCADE"`
Reason string `gorm:"type:text"`
IsPermanent bool `gorm:"not null;default:false"`
UnbanDate *time.Time
IsActive bool `gorm:"not null;default:true"`
CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP"`
UpdatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP"`
}
func (Ban) MarkerEntity ¶ added in v0.2.10
func (b Ban) MarkerEntity()
Click to show internal directories.
Click to hide internal directories.