15 lines
558 B
Go
15 lines
558 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// VipRole 超级个体固定角色,用于 Set VIP 时下拉选择
|
|
type VipRole struct {
|
|
ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
Name string `gorm:"column:name;size:50;not null" json:"name"`
|
|
Sort int `gorm:"column:sort;default:0" json:"sort"` // 下拉展示顺序,越小越前
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedAt"`
|
|
}
|
|
|
|
func (VipRole) TableName() string { return "vip_roles" }
|