Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *pop.Connection
DB is a sql database connection
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID int `json:"id" db:"id" schema:"-"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` FirstName string `json:"first_name" db:"first_name"` LastName string `json:"last_name" db:"last_name"` Email string `json:"email" db:"email"` }
User model stores information about a user account
func (*User) ValidateNew ¶
ValidateNew validates the User fields and checks whether a user has claimed that email address
func (*User) ValidateUpdate ¶
ValidateUpdate validates the User fields and confirms that the email has not been claimed
Click to show internal directories.
Click to hide internal directories.