From 8544a69eb11523d2f5f89dc8b984cce6a067aa7c Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 27 May 2026 22:55:31 -0400 Subject: [PATCH] Changing type of fields --- tx0/user/user_profile.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tx0/user/user_profile.go b/tx0/user/user_profile.go index 8585f51..8244bfa 100644 --- a/tx0/user/user_profile.go +++ b/tx0/user/user_profile.go @@ -7,13 +7,13 @@ import ( "github.com/google/uuid" ) -// TODO: Replace Usr with all the fields from User, except Password and other sensitive fields + type UserProfile struct { UserId uuid.UUID `json:"user_id"` PhoneNumber string `json:"phone_number"` Username string `json:"username"` - Firstname string `json:"firstname"` - Lastname string `json:"lastname"` + Firstname *string `json:"firstname,omitempty"` + Lastname *string `json:"lastname,omitempty"` Created time.Time `json:"created"` LastLogin *time.Time `json:"last_login,omitempty"` }