Skip to main content

Module rg_tables

Module rg_tables 

Source
Expand description

Well-known resource-group table and column names for subquery construction.

Used by the SecureORM condition builder to translate InGroup/InGroupSubtree scope filters into SQL subqueries without depending on entity types.

Note: These tables are canonical to the RG module’s database. resource_group_membership is not projected to domain services. InGroup/InGroupSubtree predicates are only executable within the RG module.

Constants§

CLOSURE_ANCESTOR_ID
Column in closure table: the ancestor group.
CLOSURE_DESCENDANT_ID
Column in closure table: the descendant group.
CLOSURE_TABLE
Closure table for group hierarchy.
MEMBERSHIP_GROUP_ID
Column in membership table: the group the resource belongs to.
MEMBERSHIP_RESOURCE_ID
Column in membership table: the resource’s external ID.
MEMBERSHIP_TABLE
Membership table (RG-internal, not projected to domain services).