Add handler auth

This commit is contained in:
2026-05-07 11:39:41 +03:00
parent e4d356b92e
commit 1c67d06c50
6 changed files with 78 additions and 1 deletions
+10
View File
@@ -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"`
}