30 lines
744 B
Go
30 lines
744 B
Go
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
|
|
package models
|
|
|
|
import (
|
|
"git.apinb.com/bsm-sdk/core/database"
|
|
"git.apinb.com/bsm-sdk/core/types"
|
|
)
|
|
|
|
/*
|
|
* PassportStatistics
|
|
* Comment:
|
|
* Version: 10
|
|
* Created: 2022-04-12 10:41:13 , Updated:0001-01-01 00:00:00
|
|
*/
|
|
type PassportStatistics struct {
|
|
types.Std_IICUDS
|
|
types.Std_Passport
|
|
Item string `gorm:"column:item;type:varchar(255);default:'';" json:"item"` // 统计项KEY
|
|
Value int64 `gorm:"default:0;" json:"value"` // 统计项数
|
|
}
|
|
|
|
func init() {
|
|
database.AppendMigrate(&PassportStatistics{})
|
|
}
|
|
|
|
// TableName .
|
|
func (table *PassportStatistics) TableName() string {
|
|
return "passport_statistics" //对应数据库表名
|
|
}
|