门店价格插叙
This commit is contained in:
@@ -465,6 +465,25 @@ func (*PriceReferSnapshot) TableIndex() [][]string {
|
||||
}
|
||||
}
|
||||
|
||||
type StorePriceScoreSnapshot struct {
|
||||
ModelIDCULD
|
||||
SnapshotAt time.Time `orm:"type(datetime)" json:"snapshotAt"` // 这个不同于CreatedAt,SnapshotAt是逻辑上的时间,CreatedAt是实际存储的时间
|
||||
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||
Score float64 `json:"score"`
|
||||
}
|
||||
|
||||
func (*StorePriceScoreSnapshot) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"StoreID", "Score", "SnapshotAt"},
|
||||
}
|
||||
}
|
||||
|
||||
func (*StorePriceScoreSnapshot) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"SnapshotAt"},
|
||||
}
|
||||
}
|
||||
|
||||
type VendorStoreSnapshot struct {
|
||||
ModelIDCULD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user