fusenapi/model/gmodel/fs_cloud_receive_every_old_gen.go

23 lines
861 B
Go
Raw Normal View History

2023-09-15 03:20:49 +00:00
package gmodel
import (
"gorm.io/gorm"
)
// fs_cloud_receive_every_old
type FsCloudReceiveEveryOld struct {
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
DeliveryId *int64 `gorm:"index;default:0;" json:"delivery_id"` // 云仓收货单id
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` //
Num *int64 `gorm:"default:0;" json:"num"` // 收到的数量
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
}
type FsCloudReceiveEveryOldModel struct {
db *gorm.DB
name string
}
func NewFsCloudReceiveEveryOldModel(db *gorm.DB) *FsCloudReceiveEveryOldModel {
return &FsCloudReceiveEveryOldModel{db: db, name: "fs_cloud_receive_every_old"}
}