replace id type

This commit is contained in:
kandrusyak
2023-07-18 01:21:19 +03:00
parent ec9fbfbbfd
commit 69e5d78866
3 changed files with 16 additions and 16 deletions

View File

@@ -15,10 +15,10 @@ type (
)
type APIUser struct {
UserName string `json:"user_name" gorm:"unique;index"`
Password string `json:"password,omitempty"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Role string `json:"role" gorm:"default:employee"`
PositionID uint `json:"position_id,omitempty"`
UserName string `json:"user_name" gorm:"unique;index"`
Password string `json:"password,omitempty"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Role string `json:"role" gorm:"default:employee"`
PositionID uuid.UUID `json:"position_id,omitempty"`
}