// 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 entity import ( "time" ) const TableNameUserPoster = "user_poster" // UserPoster mapped from table type UserPoster struct { PosterID int64 `gorm:"column:poster_id;type:int;primaryKey;autoIncrement:true" json:"poster_id"` // 海报ID PosterName string `gorm:"column:poster_name;type:varchar(50);not null" json:"poster_name"` // 海报名称 UUID string `gorm:"column:uuid;type:char(20);not null" json:"uuid"` // 海报唯一标识 UID int64 `gorm:"column:uid;type:int;not null" json:"uid"` // 用户ID PosterKeywords *string `gorm:"column:poster_keywords;type:varchar(255)" json:"poster_keywords"` // 海报关键字 PosterJSON *string `gorm:"column:poster_json;type:text" json:"poster_json"` // 海报数据 Preview *string `gorm:"column:preview;type:varchar(255)" json:"preview"` // 海报预览地址 Visits int64 `gorm:"column:visits;type:int;not null" json:"visits"` // 访问次数 Status int64 `gorm:"column:status;type:tinyint;not null;default:1" json:"status"` CreateAt time.Time `gorm:"column:create_at;type:timestamp;not null" json:"create_at"` // 创建时间 UpdateAt time.Time `gorm:"column:update_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"update_at"` // 更新时间 } // TableName UserPoster's table name func (*UserPoster) TableName() string { return TableNameUserPoster }