tsk-25: Change time references (#32)

Closes #25

Reviewed-on: phoenix/textsender-models#32
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-12-31 22:07:06 +00:00
committed by phoenix
parent e894925996
commit 44848fdffd
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -7,8 +7,9 @@ import (
)
type ServiceUser struct {
Id uuid.UUID `json:"id"`
Id uuid.UUID `json:"id"`
// TODO: Remove the omitempty tags at a later point
Username string `json:"username,omitempty"`
Passphrase string `json:"passphrase,omitempty"`
Created time.Time `json:"date_created"`
Created time.Time `json:"created"`
}
+1 -1
View File
@@ -13,6 +13,6 @@ type User struct {
Password string `json:"password"`
Firstname *string `json:"first_name,omitempty"`
Lastname *string `json:"last_name,omitempty"`
Created time.Time `json:"date_created"`
Created time.Time `json:"created"`
LastLogin *time.Time `json:"last_login,omitempty"`
}