# Functions

AuditApplicationCreated inserts an event representing an application being created.
AuditApplicationDeleted inserts an event representing an application being deleted.
AuditApplicationTypeCreated inserts an event representing an application type being created.
AuditApplicationTypeDeleted inserts an event representing an application type being deleted.
AuditApplicationTypeUpdated inserts an event representing application type update into the events table.
AuditApplicationUpdated inserts an event representing application update into the events table.
AuditExtensionCreated inserts an event representing a extension being created.
AuditExtensionDeleted inserts an event representing an extension being deleted.
AuditExtensionResourceDefinitionCreated inserts an event representing a extension being created.
AuditExtensionResourceDefinitionDeleted inserts an event representing a extension being created.
AuditExtensionResourceDefinitionUpdated inserts an event representing a extension being created.
AuditExtensionUpdated inserts an event representing a extension being created.
AuditGroupApplicationApproved inserts an event representing group application approval into the events table.
AuditGroupApplicationCreated inserts an event representing group linking an application into the events table.
AuditGroupApplicationDeleted inserts an event representing group unlinking an application into the events table.
AuditGroupApplicationDenied inserts an event representing group application denial into the events table.
AuditGroupApplicationRequestCreated inserts an event representing a group application request into the events table.
AuditGroupApplicationRequestRevoked inserts an event representing group application request revokation into the events table.
AuditGroupCreated inserts an event representing group creation into the events table.
AuditGroupDeleted inserts an event representing group deletion into the events table.
AuditGroupHierarchyCreated inserts an event representing group hierarchy creation into the events table.
AuditGroupHierarchyDeleted inserts an event representing group hierarchy deletion into the events table.
AuditGroupHierarchyUpdated inserts an event representing group hierarchy update into the events table.
AuditGroupMemberDemoted inserts an event representing group member being demoted from admin into the events table.
AuditGroupMemberPromoted inserts an event representing group member being promoted to admin into the events table.
AuditGroupMembershipApproved inserts an event representing group membership approval into the events table.
AuditGroupMembershipCreated inserts an event representing group membership creation into the events table.
AuditGroupMembershipDeleted inserts an event representing group membership deletion into the events table.
AuditGroupMembershipDenied inserts an event representing group membership denial into the events table.
AuditGroupMembershipRequestCreated inserts an event representing a group membership request into the events table.
AuditGroupMembershipRevoked inserts an event representing group membership revokation into the events table.
AuditGroupMembershipUpdated inserts an event representing group membership update into the events table.
AuditGroupOrganizationCreated inserts an event representing group linking an organization into the events table.
AuditGroupOrganizationDeleted inserts an event representing group unlinking an organization into the events table.
AuditGroupUpdated inserts an event representing group update into the events table.
AuditNotificationPreferencesUpdated inserts an event representing notification preferences update into the events table.
AuditNotificationTargetCreated inserts an event representing a notification target being created.
AuditNotificationTargetDeleted inserts an event representing an notification target being deleted.
AuditNotificationTargetUpdated inserts an event representing notification target update into the events table.
AuditNotificationTypeCreated inserts an event representing a notification type being created.
AuditNotificationTypeDeleted inserts an event representing an notification type being deleted.
AuditNotificationTypeUpdated inserts an event representing notification type update into the events table.
AuditOrganizationCreated inserts an event representing an organization being created.
AuditOrganizationDeleted inserts an event representing an organization being deleted.
AuditSystemExtensionResourceCreated inserts an event representing an extension resource being created.
AuditSystemExtensionResourceDeleted inserts an event representing an extension being deleted.
AuditSystemExtensionResourceUpdated inserts an event representing a extension being created.
AuditUserCreatedWithActor inserts an event representing user creation into the event table.
AuditUserDeleted inserts an event representing user delete into the event table.
AuditUserExtensionResourceCreated inserts an event representing an extension resource being created.
AuditUserExtensionResourceDeleted inserts an event representing an extension being deleted.
AuditUserExtensionResourceUpdated inserts an event representing a extension being created.
AuditUserUpdated inserts an event representing a user update request into the events table.
CreateOrUpdateNotificationPreferences updates a user's notification preferences, or creates the preferences if not exists.
FindMemberDiff finds members present in the second EnumeratedMembership which are not present in the first.
GetAllGroupMemberships returns a fully enumerated list of all memberships in the database, optionally with sqlboiler's generated models populated (use with caution, potentially lots of data).
GetMembershipsForUser returns a fully enumerated list of memberships for a user, optionally with sqlboiler's generated models populated.
GetMembersOfGroup returns a fully enumerated list of memberships in a group, optionally with sqlboiler's generated models populated.
GetNotificationPreferences fetch a user's notification preferences from the governor DB, this function only gets rules the user had modified if `withDefaults` is false.
HierarchyWouldCreateCycle returns true if a given new parent->member relationship would create a cycle in the database.
RefreshNotificationDefaults refreshes the notification_defaults materialized view.
RegisterHooks adds any hooks that are configured to the models library.
SetApplicationSlug assigns an Application model a slug from the Application name.
SetApplicationTypeSlug assigns an ApplicationType model a slug from the ApplicationType name.
SetGroupSlug assigns a Group model a slug from the Group name.
SetOrganizationSlug assigns an Organization model a slug from the Organization name.

# Variables

ErrDBGetNotificationPreferences is returned when there's an error occurred while fetching the user notification preferences on database.
ErrDBUpdateNotificationPreferences is returned when there's an error occurred while updating the user notification preferences on database.
ErrUnknownRequestKind is returned a request kind is unknown.

# Structs

EnumeratedMembership represents a single user-to-group membership, which may be direct or indirect.
UserNotificationPreference is the user notification preference response.
UserNotificationPreferenceTarget is the user notification target response.

# Type aliases

UserNotificationPreferences is an alias for user notification preference slice.
UserNotificationPreferenceTargets is an alias for user notification target slice.