- refactor model register.

This commit is contained in:
gazebo
2018-07-24 09:46:30 +08:00
parent 3439ef3669
commit de21819f71
14 changed files with 40 additions and 39 deletions

View File

@@ -0,0 +1,17 @@
package legacymodel
import "git.rosy.net.cn/jx-callback/globals"
type Elemeorder2 struct {
Id int `orm:"column(id);auto"`
Orderid string `orm:"column(orderid);size(50);null;unique"`
Data string `orm:"column(data);null"`
Type int `orm:"column(type);null"`
Consignee string `orm:"column(consignee);size(32)"`
Mobile string `orm:"column(mobile);size(32)"`
OrderCreatedAt string `orm:"column(order_created_at);size(50);index"`
}
func (t *Elemeorder2) TableName() string {
return globals.ElemeorderTableName
}