Init
This commit is contained in:
10
internal/user/model.go
Normal file
10
internal/user/model.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package user
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
Username string `gorm:"uniqueIndex;not null"`
|
||||
PasswordHash string `gorm:"not null"`
|
||||
Role string `gorm:"not null"`
|
||||
}
|
||||
Reference in New Issue
Block a user