package chart_tag_variety

import "time"

// ChartTagVariety 图表的标签品种关系表
type ChartTagVariety struct {
	ID                        uint64    `gorm:"primaryKey;column:id" json:"-"`
	ChartTagID                uint64    `gorm:"column:chart_tag_id" json:"chartTagId"`                                  // 标签id
	ChartVarietyID            uint64    `gorm:"column:chart_variety_id" json:"chartVarietyId"`                          // 品种id
	EdbInfoID                 int64     `gorm:"column:edb_info_id" json:"edbInfoId"`                                    // 指标id
	LastUpdateSysUserID       int       `gorm:"column:last_update_sys_user_id" json:"lastUpdateSysUserId"`              // 最后一次操作人
	LastUpdateSysUserRealName string    `gorm:"column:last_update_sys_user_real_name" json:"lastUpdateSysUserRealName"` // 最后一次操作人真实姓名
	ModifyTime                time.Time `gorm:"column:modify_time" json:"modifyTime"`                                   // 最近一次更新时间
	CreateTime                time.Time `gorm:"column:create_time" json:"createTime"`
}

// TableName get sql table name.获取数据库表名
func (m *ChartTagVariety) TableName() string {
	return "chart_tag_variety"
}

// ChartTagVarietyColumns get sql column name.获取数据库列名
var ChartTagVarietyColumns = struct {
	ID                        string
	ChartTagID                string
	ChartVarietyID            string
	EdbInfoID                 string
	LastUpdateSysUserID       string
	LastUpdateSysUserRealName string
	ModifyTime                string
	CreateTime                string
}{
	ID:                        "id",
	ChartTagID:                "chart_tag_id",
	ChartVarietyID:            "chart_variety_id",
	EdbInfoID:                 "edb_info_id",
	LastUpdateSysUserID:       "last_update_sys_user_id",
	LastUpdateSysUserRealName: "last_update_sys_user_real_name",
	ModifyTime:                "modify_time",
	CreateTime:                "create_time",
}
