goProject/.svn/pristine/05/051936fe62906601a10b242b5729b54e02e6890c.svn-base

20 lines
372 B
Plaintext
Raw Normal View History

2025-01-06 16:21:36 +08:00
package game
import "common/connection"
func init() {
//注册数据库
connection.RegisterDBModel(&Game{})
}
type Game struct {
GameID int64 `gorm:"column:game_id;primary_key;comment:用户id;autoIncrementIncrement" json:"gameid"`
//账号
Account string `gorm:"column:account;comment:账号" json:"account"`
}
func (Game) TableName() string {
return "user"
}