-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.go
22 lines (21 loc) · 950 Bytes
/
user.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package vcapool
//UserDatabase represents the database model of the users collection.
type (
UserSimple struct {
ID string `json:"id,omitempty" bson:"_id"`
Email string `json:"email" bson:"email" validate:"required,email"`
FirstName string `bson:"first_name" json:"first_name" validate:"required"`
LastName string `bson:"last_name" json:"last_name" validate:"required"`
FullName string `bson:"full_name" json:"full_name"`
DisplayName string `bson:"display_name" json:"display_name"`
}
UserInternal struct {
ID string `json:"id,omitempty" bson:"_id"`
Email string `json:"email" bson:"email"`
FirstName string `bson:"first_name" json:"first_name"`
LastName string `bson:"last_name" json:"last_name"`
FullName string `bson:"full_name" json:"full_name"`
DisplayName string `bson:"display_name" json:"display_name"`
Profile Profile `json:"profile" bson:"profile"`
}
)