123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package yb_user_collection
- import (
- "time"
- )
- type YbUserCollection struct {
- CollectionID int `gorm:"primaryKey;column:collection_id;type:int(10) unsigned;not null" json:"-"`
- CollectionType int `gorm:"column:collection_type;type:tinyint(4) unsigned;not null;default:0" json:"collectionType"`
- UserID int `gorm:"index:idx_user_id;column:user_id;type:int(10) unsigned;not null;default:0" json:"userId"`
- RealName string `gorm:"column:real_name;type:varchar(100);not null;default:''" json:"realName"`
- CompanyID int `gorm:"column:company_id;type:int(10) unsigned;not null;default:0" json:"companyId"`
- CompanyName string `gorm:"column:company_name;type:varchar(100);not null;default:''" json:"companyName"`
- CompanyStatus string `gorm:"column:company_status;type:varchar(30);not null;default:''" json:"companyStatus"`
- SellerID int `gorm:"column:seller_id;type:int(11)" json:"sellerId"`
- PrimaryID int `gorm:"index:idx_primary_id;column:primary_id;type:int(10) unsigned;not null;default:0" json:"primaryId"`
- ExtendID int `gorm:"index:idx_extend_id;column:extend_id;type:int(10) unsigned;not null;default:0" json:"extendId"`
- State int `gorm:"column:state;type:tinyint(4) unsigned;not null;default:0" json:"state"`
- SourceAgent int `gorm:"column:source_agent;type:tinyint(4) unsigned;not null;default:0" json:"sourceAgent"`
- Title string `gorm:"column:title;type:varchar(255);not null;default:''" json:"title"`
- PublishTime time.Time `gorm:"column:publish_time;type:datetime" json:"publishTime"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"createTime"`
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime" json:"modifyTime"`
- }
- func (m *YbUserCollection) TableName() string {
- return "yb_user_collection"
- }
- var YbUserCollectionColumns = struct {
- CollectionID string
- CollectionType string
- UserID string
- PrimaryID string
- ExtendID string
- State string
- SourceAgent string
- Title string
- PublishTime string
- CreateTime string
- ModifyTime string
- }{
- CollectionID: "collection_id",
- CollectionType: "collection_type",
- UserID: "user_id",
- PrimaryID: "primary_id",
- ExtendID: "extend_id",
- State: "state",
- SourceAgent: "source_agent",
- Title: "title",
- PublishTime: "publish_time",
- CreateTime: "create_time",
- ModifyTime: "modify_time",
- }
|