// 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 TableNameGuild = "guild" // Guild 公会 type Guild struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间 Name string `gorm:"column:name;not null;comment:公会名称" json:"name"` // 公会名称 OwnerID int64 `gorm:"column:owner_id;not null;comment:会长用户ID" json:"owner_id"` // 会长用户ID Status int32 `gorm:"column:status;not null;default:1;comment:状态:1正常 2解散" json:"status"` // 状态:1正常 2解散 Description string `gorm:"column:description;comment:工会描述" json:"description"` // 工会描述 JoinMode int32 `gorm:"column:join_mode;default:2;comment:加入方式 1: 审核通过 2: 自动通过 3. 消费流水" json:"join_mode"` // 加入方式 1: 审核通过 2: 自动通过 3. 消费流水 ConsumeLimit int64 `gorm:"column:consume_limit;comment:加入工会消费流水最低限额(分)" json:"consume_limit"` // 加入工会消费流水最低限额(分) AvatarURL string `gorm:"column:avatar_url;comment:工会头像" json:"avatar_url"` // 工会头像 IsOpen int32 `gorm:"column:is_open;default:1;comment:1 公开 2 私有" json:"is_open"` // 1 公开 2 私有 } // TableName Guild's table name func (*Guild) TableName() string { return TableNameGuild }