Add handler auth
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type User struct {
|
||||
gorm.Model `json:"-"`
|
||||
Username string `gorm:"unique;not null"`
|
||||
Password string `gorm:"not null" json:"-"`
|
||||
Role string `gorm:"default:'Рабочий'" json:"role"`
|
||||
}
|
||||
Reference in New Issue
Block a user