34 lines
1012 B
Go
34 lines
1012 B
Go
package model
|
|
|
|
type WeiXins struct {
|
|
ID int `orm:"column(id)"`
|
|
JxStoreID int `orm:"column(jxstoreid)"`
|
|
OpenID string `orm:"column(openid);size(70);index"`
|
|
Tel string `orm:"size(15);index"`
|
|
ParentID int `orm:"column(parentid)"`
|
|
NickName string `orm:"column(nickname);size(30)"`
|
|
}
|
|
|
|
func (*WeiXins) TableName() string {
|
|
return "weixins"
|
|
}
|
|
|
|
type JxBackendUser struct {
|
|
UID int `orm:"pk;column(uid)"`
|
|
UName string `orm:"column(uname);size(64);index"`
|
|
UPass string `orm:"column(upass);size(64)"`
|
|
Tel string `orm:"size(32);index"`
|
|
Position string `orm:"size(255)"`
|
|
Enabled int8 `orm:"default(1)"`
|
|
SkuWidget int `orm:"default(0)"`
|
|
StoreWidget int `orm:"default(0)"`
|
|
UserWidget int `orm:"default(0)"`
|
|
BillinfoWidget int `orm:"default(0)"`
|
|
GroupWidget int `orm:"default(0)"`
|
|
CategoryWidget int `orm:"default(0)"`
|
|
}
|
|
|
|
func (*JxBackendUser) TableName() string {
|
|
return "jxbackenduser"
|
|
}
|