Merge branch 'update_user_model' into 'main'
Finished user model See merge request kdeng00/icarus-models!2
This commit is contained in:
@@ -1,5 +1,20 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
Username string
|
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"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user