1
This commit is contained in:
parent
728396d024
commit
b7c8fdfa2a
@ -2,7 +2,7 @@ package model
|
||||
|
||||
type User struct {
|
||||
Idx int64 `gorm:"column:idx;AUTO_INCREMENT"`
|
||||
AccountId string `gorm:"column:account_id"`
|
||||
AccountId string `gorm:"column:account_id;primaryKey"`
|
||||
Avatar string `gorm:"column:avatar"`
|
||||
NickName string `gorm:"column:nickname"`
|
||||
Score string `gorm:"column:score"`
|
||||
@ -12,6 +12,6 @@ type User struct {
|
||||
ModifyTime int32 `gorm:"column:modifytime"`
|
||||
}
|
||||
|
||||
func (this User) TableName() string {
|
||||
func (this *User) TableName() string {
|
||||
return "t_user"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user