feat: 自动迁移表结构

This commit is contained in:
Blizzard
2025-04-26 11:58:41 +08:00
parent 248ed10c62
commit 5e41df7dc2
7 changed files with 77 additions and 9 deletions
+11
View File
@@ -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"`
}