32 lines
1.4 KiB
Go
32 lines
1.4 KiB
Go
package models
|
|
|
|
type User struct {
|
|
UserID string `json:"user_id"`
|
|
FirstName string `json:"first_name"`
|
|
MiddleInitial *string `json:"middle_initial"`
|
|
LastName string `json:"last_name"`
|
|
Suffix *string `json:"suffix"`
|
|
OfficeID *int `json:"office_id"`
|
|
RoleID *int `json:"role_id,omitempty"`
|
|
Projects *[]ProjectMetadata `json:"projects,omitempty"`
|
|
EmailAddress string `json:"email_address"`
|
|
MIS *int `json:"mis"`
|
|
CAPI *int `json:"capi"`
|
|
CAWI *int `json:"cawi"`
|
|
DPS *int `json:"dps"`
|
|
Sex *string `json:"sex"`
|
|
OfficeName *string `json:"office_name"`
|
|
StatusOfEmployment *string `json:"status_of_employment"`
|
|
UserType *int `json:"user_type"`
|
|
HomeAddress *string `json:"home_address"`
|
|
ContactNumber *string `json:"contact_number"`
|
|
UpdatedBy *string `json:"updated_by"`
|
|
}
|
|
|
|
type ProjectMetadata struct {
|
|
ProjectID int `json:"project_id"`
|
|
Alias *string `json:"alias"`
|
|
RoleID []int `json:"role_id"`
|
|
OfficeID *int `json:"office_id"`
|
|
}
|