// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model import ( "time" ) const TableNameUserTitles = "user_titles" // UserTitles 用户持有头衔表 type UserTitles struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:用户持有头衔主键ID" json:"id"` // 用户持有头衔主键ID UserID int64 `gorm:"column:user_id;not null;comment:用户ID(users.id)" json:"user_id"` // 用户ID(users.id) TitleID int64 `gorm:"column:title_id;not null;comment:头衔ID(system_titles.id)" json:"title_id"` // 头衔ID(system_titles.id) Active int32 `gorm:"column:active;not null;default:1;comment:是否激活:1激活 0停用" json:"active"` // 是否激活:1激活 0停用 ObtainedAt time.Time `gorm:"column:obtained_at;not null;default:CURRENT_TIMESTAMP(3);comment:获得时间" json:"obtained_at"` // 获得时间 ExpiresAt time.Time `gorm:"column:expires_at;comment:过期时间(可空)" json:"expires_at"` // 过期时间(可空) Source string `gorm:"column:source;comment:来源标识(活动、运营发放等)" json:"source"` // 来源标识(活动、运营发放等) Remark string `gorm:"column:remark;comment:备注信息" json:"remark"` // 备注信息 CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间 } // TableName UserTitles's table name func (*UserTitles) TableName() string { return TableNameUserTitles }