Users
An User is the database representation of one of Gorjian's employees.
Users are automatically created whenever someone with an @gorjianacq.com
email address logs onto the site. By default, the user is given the
user role, which allows basic use of the platform. The admin role can
be given to allow full control of the platform, and admin accounts can view
(and edit) data for all Associates.
On the Users page (opens in a new tab), Admin users have the ability to change the role of a user, as well as set the Salesforce name of a user (which is important for things like follow up tracking through Salesforce).
The table is defined like such:
type User struct {
BaseModel
Email string `gorm:"unique"`
PasswordHash string
Role Role
SalesforceName string
Associates []Associate
}