You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

package live
import (
"github.com/golangkit/formatime"
"gorm.io/gorm"
"recook/internal/v2/lib/db"
)
type Short struct {
db.BaseModel
Id uint `gorm:"column:id" json:"id"`
UserId uint `gorm:"column:user_id" json:"userId"`
GoodsId uint `gorm:"column:goods_id" json:"goodsId"`
TopicId uint `gorm:"column:topic_id" json:"topicId"`
Content string `gorm:"column:content" json:"content"`
FileId string `gorm:"column:file_id" json:"fileId"`
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
UpdatedAt formatime.Second `gorm:"column:updated_at" json:"updatedAt"`
MediaUrl string `gorm:"column:media_url" json:"mediaUrl"`
CoverUrl string `gorm:"column:cover_url" json:"coverUrl"`
IsDel int `gorm:"column:is_del" json:"isDel"`
Compliance int `gorm:"column:compliance" json:"compliance"`
Pass int `gorm:"column:pass" json:"pass"`
Emg string `gorm:"column:emg"`
Deleted gorm.DeletedAt `gorm:"column:deleted"`
}
func (r *Short) TableName() string {
return "recook_live_short"
}