12345678910111213141516171819202122232425262728293031323334353637 |
- package yb_poster_resource
- import (
- "time"
- )
- type YbPosterResource struct {
- ID uint32 `gorm:"primaryKey;column:id;type:int(10) unsigned;not null" json:"-"`
- Path string `gorm:"column:path;type:varchar(255);not null;default:''" json:"path"`
- ImgURL string `gorm:"column:img_url;type:varchar(255);not null;default:''" json:"imgUrl"`
- Type string `gorm:"column:type;type:varchar(20);not null;default:''" json:"type"`
- Version string `gorm:"column:version;type:varchar(20);not null;default:''" json:"version"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"`
- }
- func (m *YbPosterResource) TableName() string {
- return "yb_poster_resource"
- }
- var YbPosterResourceColumns = struct {
- ID string
- Path string
- ImgURL string
- Type string
- Version string
- CreateTime string
- }{
- ID: "id",
- Path: "path",
- ImgURL: "img_url",
- Type: "type",
- Version: "version",
- CreateTime: "create_time",
- }
|