feat: Refactor User entity and datasource to use email and password hashing with salt

This commit is contained in:
2025-03-10 08:05:48 +00:00
parent f567d086ec
commit 3193204dac
9 changed files with 110 additions and 56 deletions
@@ -13,8 +13,9 @@ type UserDBO struct {
CreatedAt time.Time `gorm:"not null"`
UpdatedAt time.Time `gorm:"not null"`
LastEditorID ulid.ULID
Username string
Password string
Email string
PasswordHash string
Salt string
Role string
CompanyID int
HourlyRate float64