ht-cardholder.go
400 Bytes
package models
import (
"apigame/service/constd"
"github.com/astaxie/beego/orm"
)
type HtCardHolderData struct {
Uid int64 `orm:"pk"`
}
func (u *HtCardHolderData) TableName() string {
return constd.MYSQL_TABLE_S_CARD_DATA + constd.GAME_ID_HT
}
func InitHtCardholder() {
// register model
orm.RegisterModel(new(HtCardHolderData))
// create table
orm.RunSyncdb("default", false, true)
}