From 458c4fcfcc8c3654a0e552f2f5a80f90e2fe0a3e Mon Sep 17 00:00:00 2001 From: KD Date: Sun, 2 Mar 2025 20:38:39 -0500 Subject: [PATCH] Updated types and removed packsge import --- models/user.go | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/models/user.go b/models/user.go index 30b9266..f87895b 100644 --- a/models/user.go +++ b/models/user.go @@ -1,20 +1,17 @@ package models -import ( - "fmt" - "time" -) +import "time" type User struct { - Id int `json:"id"` - Username string `json:"username"` - Password string `json:"password"` - Email string `json:"email"` - Phone string `json:"phone"` - Firstname string `json:"firstname"` - Lastname string `json:"lastname"` - EmailVerified bool `json:"email_verified"` - DateCreated time `json:"date_created"` - Status string `json:"status"` - LastLogin time `json:"last_login"` + Id int `json:"id"` + Username string `json:"username"` + Password string `json:"password"` + Email string `json:"email"` + Phone string `json:"phone"` + Firstname string `json:"firstname"` + Lastname string `json:"lastname"` + EmailVerified bool `json:"email_verified"` + DateCreated time.Time `json:"date_created"` + Status string `json:"status"` + LastLogin time.Time `json:"last_login"` }