创建项目
This commit is contained in:
11
pkg/dao/entity/user.go
Normal file
11
pkg/dao/entity/user.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user