创建项目

This commit is contained in:
2022-10-03 15:07:08 +08:00
parent 33be746953
commit 26278707bb
9 changed files with 210 additions and 0 deletions

11
pkg/dao/entity/user.go Normal file
View File

@@ -0,0 +1,11 @@
package entity
import "gorm.io/gorm"
type User struct {
gorm.Model
Username string `gorm:"unique;not null"`
Password string `gorm:"not null"`
Instance string `gorm:"not null;default:''"`
Role string `gorm:"not null;default:0"`
}