22 lines
478 B
Go
22 lines
478 B
Go
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"},
|
|
}
|
|
}
|