removed account type and home address

This commit is contained in:
2026-01-27 09:20:29 +08:00
parent 4c190a2fff
commit 8cf43a9c64
+2 -2
View File
@@ -44,7 +44,6 @@ type User struct {
LastName string `json:"last_name" db:"last_name"` LastName string `json:"last_name" db:"last_name"`
Suffix string `json:"suffix" db:"suffix"` Suffix string `json:"suffix" db:"suffix"`
EmailAddress string `json:"email_address" db:"email_address"` EmailAddress string `json:"email_address" db:"email_address"`
AccountType string `json:"account_type" db:"account_type"`
EmpID string `json:"emp_id" db:"emp_id"` EmpID string `json:"emp_id" db:"emp_id"`
Reg string `json:"reg" db:"reg"` Reg string `json:"reg" db:"reg"`
Prov string `json:"prov" db:"prov"` Prov string `json:"prov" db:"prov"`
@@ -53,7 +52,7 @@ type User struct {
Bgy string `json:"bgy" db:"bgy"` Bgy string `json:"bgy" db:"bgy"`
IsLoggedIn string `json:"is_logged_in" db:"is_logged_in"` IsLoggedIn string `json:"is_logged_in" db:"is_logged_in"`
FirstLoggedIn string `json:"first_logged_in" db:"first_logged_in"` FirstLoggedIn string `json:"first_logged_in" db:"first_logged_in"`
Address string `json:"address" db:"address"` HomeAddress string `json:"home_address" db:"home_address"`
ContactNumber string `json:"contact_number" db:"contact_number"` ContactNumber string `json:"contact_number" db:"contact_number"`
DeviceID string `json:"device_id" db:"device_id"` DeviceID string `json:"device_id" db:"device_id"`
RoleID int `json:"role_id" db:"role_id"` RoleID int `json:"role_id" db:"role_id"`
@@ -70,6 +69,7 @@ type AuthorizationContext struct {
UserID string `json:"user_id"` UserID string `json:"user_id"`
Resource string `json:"resource"` Resource string `json:"resource"`
Action string `json:"action"` Action string `json:"action"`
RoleID string `json:"role_id"` // User's role ID
UserAttributes map[string]string `json:"user_attributes"` UserAttributes map[string]string `json:"user_attributes"`
ResourceData map[string]string `json:"resource_data"` // Additional resource context ResourceData map[string]string `json:"resource_data"` // Additional resource context
Environment map[string]string `json:"environment"` // Time, location, etc. Environment map[string]string `json:"environment"` // Time, location, etc.