Merge branch 'update_user' into 'main'
Updated types and removed packsge import See merge request kdeng00/icarus-models!5
This commit is contained in:
@@ -1,20 +1,17 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import "time"
|
||||||
"fmt"
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
Id int `json:"id"`
|
Id int `json:"id"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
Phone string `json:"phone"`
|
Phone string `json:"phone"`
|
||||||
Firstname string `json:"firstname"`
|
Firstname string `json:"firstname"`
|
||||||
Lastname string `json:"lastname"`
|
Lastname string `json:"lastname"`
|
||||||
EmailVerified bool `json:"email_verified"`
|
EmailVerified bool `json:"email_verified"`
|
||||||
DateCreated time `json:"date_created"`
|
DateCreated time.Time `json:"date_created"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
LastLogin time `json:"last_login"`
|
LastLogin time.Time `json:"last_login"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user