right type used

This commit is contained in:
2026-02-20 15:29:26 +02:00
parent 1c8f6f142c
commit 09f2125a4e
14 changed files with 121 additions and 138 deletions
+17 -17
View File
@@ -10,27 +10,27 @@
package descr
import (
"mstore/pkg/auxuuid"
"mstore/pkg/uuid"
)
type Account struct {
ID auxuuid.UUID `json:"id" db:"id"`
Username string `json:"username" db:"username"`
Passhash string `json:"passhash" db:"passhash"`
Disabled bool `json:"disabled" db:"disabled"`
CreatedAt string `json:"createdAt" db:"created_at"`
UpdatedAt string `json:"updatedAt" db:"updated_at"`
CreatedBy auxuuid.UUID `json:"createdBy" db:"created_by"`
UpdatedBy auxuuid.UUID `json:"updatedBy" db:"updated_by"`
ID uuid.UUID `json:"id" db:"id"`
Username string `json:"username" db:"username"`
Passhash string `json:"passhash" db:"passhash"`
Disabled bool `json:"disabled" db:"disabled"`
CreatedAt string `json:"createdAt" db:"created_at"`
UpdatedAt string `json:"updatedAt" db:"updated_at"`
CreatedBy uuid.UUID `json:"createdBy" db:"created_by"`
UpdatedBy uuid.UUID `json:"updatedBy" db:"updated_by"`
}
type AccountShort struct {
ID auxuuid.UUID `json:"id"`
Username string `json:"username"`
Disabled bool `json:"disabled"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
CreatedBy auxuuid.UUID `json:"createdBy"`
UpdatedBy auxuuid.UUID `json:"updatedBy"`
Grants []Grant `json:"grants"`
ID uuid.UUID `json:"id"`
Username string `json:"username"`
Disabled bool `json:"disabled"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
CreatedBy uuid.UUID `json:"createdBy"`
UpdatedBy uuid.UUID `json:"updatedBy"`
Grants []Grant `json:"grants"`
}