package adminconsole // UserRow is one line in the users list table. type UserRow struct { UserID string Email string UserName string DisplayName string Tier string Blocked bool Deleted bool CreatedAt string } // UsersListData is the view model for the paginated users list. type UsersListData struct { Items []UserRow Page int PageSize int Total int HasPrev bool HasNext bool PrevPage int NextPage int } // SanctionView is one active sanction shown on the user detail page. type SanctionView struct { SanctionCode string Scope string ReasonCode string AppliedAt string ExpiresAt string } // UserDetailData is the view model for a single user's detail page, // combining the account aggregate with the form option lists. type UserDetailData struct { UserID string Email string UserName string DisplayName string PreferredLanguage string TimeZone string DeclaredCountry string Blocked bool Deleted bool CreatedAt string UpdatedAt string Tier string IsPaid bool EntitlementSource string EntitlementReason string EntitlementEnds string Sanctions []SanctionView // Tiers lists the selectable entitlement tiers for the form. Tiers []string }