package my_chart_classify_mapping

import "time"

// MyChartClassifyMapping 我的图表及分类关联表
type MyChartClassifyMapping struct {
	MyChartClassifyMappingId int       `gorm:"primaryKey;column:my_chart_classify_mapping_id;type:int(11);not null" json:"myChartClassifyMappingId"`
	AdminId                  int       `gorm:"column:admin_id;type:int(11)" json:"adminId"`
	MyChartId                int       `gorm:"column:my_chart_id;type:int(11)" json:"myChartId"`
	MyChartClassifyId        int       `gorm:"column:my_chart_classify_id;type:int(11)" json:"myChartClassifyId"`
	CreateTime               time.Time `gorm:"column:create_time;type:datetime" json:"createTime"`
	ModifyTime               time.Time `gorm:"column:modify_time;type:datetime" json:"modifyTime"`
	Sort                     float64   `gorm:"column:sort;type:double;default:0" json:"sort"` // 排序
}

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

// MyChartClassifyMappingColumns get sql column name.获取数据库列名
var MyChartClassifyMappingColumns = struct {
	MyChartClassifyMappingID string
	AdminID                  string
	MyChartID                string
	MyChartClassifyID        string
	CreateTime               string
	ModifyTime               string
	Sort                     string
}{
	MyChartClassifyMappingID: "my_chart_classify_mapping_id",
	AdminID:                  "admin_id",
	MyChartID:                "my_chart_id",
	MyChartClassifyID:        "my_chart_classify_id",
	CreateTime:               "create_time",
	ModifyTime:               "modify_time",
	Sort:                     "sort",
}

