12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- package yb_price_driven
- import (
- "time"
- )
- // YbPriceDriven 研报-价格驱动表
- type YbPriceDriven struct {
- PriceDrivenID int `gorm:"primaryKey;column:price_driven_id;type:int(10) unsigned;not null" json:"-"`
- ChartPermissionID int `gorm:"index:idx_chart_permission_id;column:chart_permission_id;type:int(10) unsigned;not null;default:0" json:"chartPermissionId"` // 品种权限ID
- MainVariable string `gorm:"column:main_variable;type:varchar(255);not null;default:''" json:"mainVariable"` // 关键变量
- CoreDrivenType int `gorm:"column:core_driven_type;type:tinyint(4) unsigned;not null;default:0" json:"coreDrivenType"` // 核心驱动类型 0-多 1-空
- CoreDrivenContent string `gorm:"column:core_driven_content;type:varchar(255);not null;default:''" json:"coreDrivenContent"` // 核心驱动内容
- CoreContent string `gorm:"column:core_content;type:longtext" json:"coreContent"` // 核心内容
- LastUpdateAdminID int `gorm:"column:last_update_admin_id;type:int(10) unsigned;not null;default:0" json:"lastUpdateAdminId"` // 最后一次更新人ID
- LastUpdateAdminName string `gorm:"column:last_update_admin_name;type:varchar(30);not null;default:''" json:"lastUpdateAdminName"` // 最后一次更新人姓名
- LastThsMsgTime time.Time `gorm:"column:last_ths_msg_time;type:datetime" json:"lastThsMsgTime"` // 最后一次推送客群消息的时间
- LastTemplateMsgTime time.Time `gorm:"column:last_template_msg_time;type:datetime" json:"lastTemplateMsgTime"` // 最后一次推送模板消息的时间
- CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"` // 创建时间
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime;default:CURRENT_TIMESTAMP" json:"modifyTime"` // 修改时间
- }
- // TableName get sql table name.获取数据库表名
- func (m *YbPriceDriven) TableName() string {
- return "yb_price_driven"
- }
- // YbPriceDrivenColumns get sql column name.获取数据库列名
- var YbPriceDrivenColumns = struct {
- PriceDrivenID string
- ChartPermissionID string
- MainVariable string
- CoreDrivenType string
- CoreDrivenContent string
- CoreContent string
- LastUpdateAdminID string
- LastUpdateAdminName string
- LastThsMsgTime string
- LastTemplateMsgTime string
- CreateTime string
- ModifyTime string
- }{
- PriceDrivenID: "price_driven_id",
- ChartPermissionID: "chart_permission_id",
- MainVariable: "main_variable",
- CoreDrivenType: "core_driven_type",
- CoreDrivenContent: "core_driven_content",
- CoreContent: "core_content",
- LastUpdateAdminID: "last_update_admin_id",
- LastUpdateAdminName: "last_update_admin_name",
- LastThsMsgTime: "last_ths_msg_time",
- LastTemplateMsgTime: "last_template_msg_time",
- CreateTime: "create_time",
- ModifyTime: "modify_time",
- }
|