Add handler auth

This commit is contained in:
Deforest6342 committed 2026-05-07 11:39:41 +03:00
1 parent e4d356b92e
commit 1c67d06c50
6 files changed
+78 -1

No files matched your search

+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"`
}