feat: add page profile with orders

This commit is contained in:
2026-06-24 12:04:25 +03:00
parent a450f32272
commit 3c24f5b115
5 changed files with 126 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import "gorm.io/gorm"
type User struct {
gorm.Model `json:"-"`
Username string `gorm:"unique;not null" binding:"required"`
Username string `json:"username" gorm:"unique;not null" binding:"required"`
Password string `gorm:"not null" json:"-" binding:"required,min=8"`
Role string `gorm:"default:'customer'" json:"role"`
FirstName string `json:"first_name" binding:"required"`