Documentation ¶
Index ¶
Constants ¶
View Source
const (
// CollectionUser holds the name of the articles collection
CollectionUser = "users"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct { Id string `json:"id" bson:"_id,omitempty"` Email *string `json:"email" bson:"email,omitempty"` Locale string `json:"locale" bson:"locale,omitempty"` Password string `json:"password" bson:"password,omitempty"` PasswordRetry string `json:"retryPassword" bson:"-"` RecoveryToken string `json:"recoveryToken" bson:"-"` Gender string `json:"gender" bson:"-"` Profiles []Profile `json:"profiles" bson:"profiles,omitempty"` CreatedAt *time.Time `json:"created_at" bson:"created_at,omitempty"` UpdatedAt *time.Time `json:"updated_at" bson:"updated_at,omitempty"` }
User model
Click to show internal directories.
Click to hide internal directories.