Add handler auth
This commit is contained in:
1 parent
e4d356b92e
commit
1c67d06c50
6 files changed
+78
-1
No files matched your search
@@ -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