// 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 TableNameUserPosterBatch = "user_poster_batches" // UserPosterBatch mapped from table type UserPosterBatch struct { BatchID int64 `gorm:"column:batch_id;type:int;primaryKey;autoIncrement:true" json:"batch_id"` UID int64 `gorm:"column:uid;type:int;not null" json:"uid"` // 用户ID PosterID int64 `gorm:"column:poster_id;type:int;not null" json:"poster_id"` // 海报ID Name string `gorm:"column:name;type:varchar(50);not null" json:"name"` // 海报名称 UUID string `gorm:"column:uuid;type:char(20);not null" json:"uuid"` // 海报唯一标识 Raw string `gorm:"column:raw;type:text;not null" json:"raw"` // 生成的内容 Num int64 `gorm:"column:num;type:int;not null;default:1" json:"num"` // 海报份数 DoneNum int64 `gorm:"column:done_num;type:int;not null" json:"done_num"` // 已经生成的份数 Type string `gorm:"column:type;type:varchar(10);not null;default:jpeg" json:"type"` // 生成图片类型 Path *string `gorm:"column:path;type:varchar(255)" json:"path"` // 海报存储路径 Status int64 `gorm:"column:status;type:tinyint;not null" 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 UserPosterBatch's table name func (*UserPosterBatch) TableName() string { return TableNameUserPosterBatch }