- CreatePromotion
This commit is contained in:
25
business/model/promotion.go
Normal file
25
business/model/promotion.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Promotion struct {
|
||||
ModelIDCULD
|
||||
|
||||
VendorID int
|
||||
Name string `orm:"size(64)" json:"name"`
|
||||
Type int
|
||||
Status int
|
||||
SyncStatus int
|
||||
VendorPromotionID string `orm:"size(64)" json:"vendorPromotionID"`
|
||||
BeginAt time.Time `orm:"type(datetime);index" json:"beginAt"`
|
||||
EndAt time.Time `orm:"type(datetime);index" json:"endAt"`
|
||||
Params string `orm:"type(text)" json:"params"`
|
||||
}
|
||||
|
||||
func (*Promotion) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"Name", "VendorID", "Type", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user