feat: 自动迁移表结构
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package system
|
||||
|
||||
import "sundynix-go/global"
|
||||
|
||||
type User struct {
|
||||
global.BaseModel
|
||||
ClientId string `gorm:"size:20;" json:"clientId"`
|
||||
Account string `gorm:"size:11;unique;" json:"account" form:"account"`
|
||||
Password string `gorm:"size:32;" json:"-" form:"password"`
|
||||
Phone string `gorm:"size:11;" json:"phone" form:"phone"`
|
||||
}
|
||||
Reference in New Issue
Block a user