12345678910111213141516171819202122232425262728293031323334 |
- package entity
- import (
- "time"
- )
- const TableNameUserPosterBatch = "user_poster_batches"
- 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"`
- PosterID int64 `gorm:"column:poster_id;type:int;not null" json:"poster_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"`
- }
- func (*UserPosterBatch) TableName() string {
- return TableNameUserPosterBatch
- }
|