2022-07-28 15:00:43 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type User struct {
|
2022-09-15 13:53:55 +00:00
|
|
|
ID string `bson:"_id,omitempty"`
|
|
|
|
FullName string `bson:"full_name"`
|
|
|
|
Email string `bson:"email"`
|
|
|
|
Password string `bson:"password"`
|
|
|
|
IsActivated bool `bson:"is_activated"`
|
|
|
|
RoleID int `bson:"role_id"`
|
|
|
|
JwtToken string `bson:"jwt_token"` // not in use
|
|
|
|
IsDeleted bool `bson:"is_deleted"`
|
|
|
|
CreatedAt time.Time `bson:"created_at"`
|
|
|
|
UpdatedAt time.Time `bson:"updated_at"`
|
2022-07-28 15:00:43 +00:00
|
|
|
}
|