tsk-14: User improvements (#20)

Closes #14

Reviewed-on: phoenix/textsender-models#20
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-12-16 02:38:30 +00:00
committed by phoenix
parent c4d195df4b
commit 245ff35e58
2 changed files with 14 additions and 8 deletions
+4 -4
View File
@@ -7,8 +7,8 @@ import (
)
type ServiceUser struct {
Id uuid.UUID `json:"id"`
Username string `json:"username,omitempty"`
Passphrase string `json:"passphrase,omitempty"`
Created *time.Time `json:"date_created,omitempty"`
Id uuid.UUID `json:"id"`
Username string `json:"username,omitempty"`
Passphrase string `json:"passphrase,omitempty"`
Created time.Time `json:"date_created"`
}
+10 -4
View File
@@ -1,12 +1,18 @@
package user
import (
"time"
"github.com/google/uuid"
)
type User struct {
Id uuid.UUID `json:"id"`
PhoneNumber string `json:"phone_number"`
Username string `json:"username"`
Password string `json:"password"`
Id uuid.UUID `json:"id"`
PhoneNumber string `json:"phone_number"`
Username string `json:"username"`
Password string `json:"password"`
Firstname *string `json:"first_name,omitempty"`
Lastname *string `json:"last_name,omitempty"`
Created time.Time `json:"date_created"`
LastLogin *time.Time `json:"last_login,omitempty"`
}