1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <class>ACLEntityRole
</class>
6 <name>civicrm_acl_entity_role
</name>
7 <comment>Join table for Contacts and Groups to ACL Roles
</comment>
11 <type>int unsigned
</type>
12 <title>Entity Role
</title>
13 <required>true
</required>
14 <comment>Unique table ID
</comment>
22 <autoincrement>true
</autoincrement>
25 <name>acl_role_id
</name>
26 <title>ACL Role ID
</title>
27 <type>int unsigned
</type>
28 <required>true
</required>
30 <optionGroupName>acl_role
</optionGroupName>
32 <comment>Foreign Key to ACL Role (which is an option value pair and hence an implicit FK)
</comment>
36 <name>entity_table
</name>
37 <title>Entity Table
</title>
40 <required>true
</required>
42 <callback>CRM_ACL_BAO_ACLEntityRole::entityTables
</callback>
44 <comment>Table of the object joined to the ACL Role (Contact or Group)
</comment>
48 <name>entity_id
</name>
49 <title>ACL Entity ID
</title>
50 <type>int unsigned
</type>
51 <required>true
</required>
52 <comment>ID of the group/contact object being joined
</comment>
56 <idColumn>entity_id
</idColumn>
57 <typeColumn>entity_table
</typeColumn>
61 <name>is_active
</name>
62 <title>ACL Entity Role is Active
</title>
64 <comment>Is this property active?
</comment>
66 <required>true
</required>
70 <name>index_role
</name>
71 <fieldName>acl_role_id
</fieldName>
75 <name>index_entity
</name>
76 <fieldName>entity_table
</fieldName>
77 <fieldName>entity_id
</fieldName>