Update API

This commit is contained in:
2025-06-22 23:23:26 +07:00
parent b077ef9f06
commit 40705fbf3b
63 changed files with 1976 additions and 81 deletions
+12
View File
@@ -0,0 +1,12 @@
package models
import "time"
type User struct {
ID uint `gorm:"primaryKey" json:"id"`
Username string `gorm:"unique" json:"username"`
PasswordHash string `json:"-"`
Role string `json:"role"` // admin, sales, warehouse, etc
CreatedAt time.Time
UpdatedAt time.Time
}