- big refactor.

This commit is contained in:
gazebo
2018-07-05 12:21:25 +08:00
parent c43ec48837
commit bed727d3e5
21 changed files with 140 additions and 115 deletions

View File

@@ -0,0 +1,18 @@
package models
type ELMOrder struct {
Id int
OrderId string `orm:"size(50);unique;null;column(orderid)"`
Consignee string `orm:"size(32)"`
Mobile string `orm:"size(32)"`
Data string `orm:"type(text);null"`
Type int `orm:"null"`
OrderCreatedAt string `orm:"size(50);index"`
// CreatedAt time.Time `orm:"auto_now_add;type(datetime);null"`
// UpdatedAt time.Time `orm:"auto_now;type(datetime);null"`
// StatusTime string `orm:"size(50)"`
}
func (e *ELMOrder) TableName() string {
return "elemeorder"
}