22 lines
1002 B
Go
22 lines
1002 B
Go
package models
|
|
|
|
// Statist 销售订单主表
|
|
type Statist struct {
|
|
ID int64 `json:"id" gorm:"primarykey;comment:ID"`
|
|
ReceivingNum int64 `json:"receiving_num" gorm:"not null;default:0;comment:入库次数"`
|
|
OutboundNum int64 `json:"outbound_num" gorm:"not null;default:0;comment:出库次数"`
|
|
CreateBy int64 `json:"create_by" gorm:"not null;default:0;comment:创建人"`
|
|
StatDate int64 `json:"stat_date" gorm:"type:bigint;not null;default:0;comment:统计时间"`
|
|
CreatedAt int64 `json:"created_at" gorm:"type:bigint;not null;default:0;comment:创建时间戳(秒)"`
|
|
UpdatedAt int64 `json:"updated_at" gorm:"type:bigint;not null;default:0;comment:更新时间戳(秒)"`
|
|
IsDel int8 `json:"is_del" gorm:"type:tinyint(1);not null;default:0;comment:逻辑删除标记(0:未删除,1:已删除)"`
|
|
}
|
|
|
|
func (Statist) TableName() string {
|
|
return "statist"
|
|
}
|
|
|
|
func (Statist) TableOptions() string {
|
|
return "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='统计表'"
|
|
}
|