16 lines
673 B
Go
16 lines
673 B
Go
|
|
package models
|
|||
|
|
|
|||
|
|
import "git.apinb.com/bsm-sdk/core/database"
|
|||
|
|
|
|||
|
|
// ReportItem 对应 report_item,保存报表维度明细。
|
|||
|
|
type ReportItem struct {
|
|||
|
|
Entity
|
|||
|
|
ReportID uint64 `gorm:"column:report_id;not null;index" json:"report_id"`
|
|||
|
|
Dimension string `gorm:"column:dimension;type:varchar(128);not null" json:"dimension"`
|
|||
|
|
MetricCode string `gorm:"column:metric_code;type:varchar(64);not null" json:"metric_code"`
|
|||
|
|
MetricValue string `gorm:"column:metric_value;type:varchar(128);not null" json:"metric_value"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func init() { database.AppendMigrate(&ReportItem{}) }
|
|||
|
|
func (table *ReportItem) TableName() string { return "report_item" }
|