30 lines
1.8 KiB
Go
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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:用户IDusers.id" json:"user_id"` // 用户IDusers.id
TitleID int64 `gorm:"column:title_id;not null;comment:头衔IDsystem_titles.id" json:"title_id"` // 头衔IDsystem_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
}