- remove useless legacy codes.

- refactor models
This commit is contained in:
gazebo
2018-10-16 10:47:44 +08:00
parent df19812e97
commit d7de24715b
39 changed files with 93 additions and 1248 deletions

View File

@@ -0,0 +1,21 @@
package legacymodel
import "time"
type StoreBill struct {
Id int `orm:"column(id);auto"`
Date time.Time `orm:"column(date);type(datetime)"`
Url string `orm:"column(url);size(255)"`
StoreId int `orm:"column(store_id)"`
BillName string `orm:"column(bill_name);size(30)"`
}
func (t *StoreBill) TableName() string {
return "store_bill"
}
func (*StoreBill) TableIndex() [][]string {
return [][]string{
[]string{"StoreId", "Date"},
}
}