20 lines
500 B
Go
20 lines
500 B
Go
package types
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type UserDTO struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Email string `json:"email"`
|
|
FullName string `json:"full_name"`
|
|
IsAdmin bool `json:"is_admin"`
|
|
CreatedAt *time.Time `json:"created_at"`
|
|
UpdatedAt *time.Time `json:"updated_at"`
|
|
LastLogin *time.Time `json:"last_login"`
|
|
PhoneNumber *string `json:"phone_number"`
|
|
ProfilePicture *string `json:"profile_picture"`
|
|
}
|