Add AclRole Api4 Entity
[civicrm-core.git] / xml / schema / ACL / ACLEntityRole.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
86d3bfa9 4 <base>CRM/ACL</base>
58b85361 5 <class>ACLEntityRole</class>
86d3bfa9
EM
6 <name>civicrm_acl_entity_role</name>
7 <comment>Join table for Contacts and Groups to ACL Roles</comment>
8 <add>1.6</add>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
4cc2ccac 12 <title>Entity Role</title>
86d3bfa9
EM
13 <required>true</required>
14 <comment>Unique table ID</comment>
0481e12c
A
15 <html>
16 <type>Number</type>
17 </html>
6a488035 18 <add>1.6</add>
86d3bfa9
EM
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>acl_role_id</name>
4cc2ccac 26 <title>ACL Role ID</title>
86d3bfa9
EM
27 <type>int unsigned</type>
28 <required>true</required>
29 <comment>Foreign Key to ACL Role (which is an option value pair and hence an implicit FK)</comment>
30 <add>1.6</add>
31 </field>
32 <field>
33 <name>entity_table</name>
32c93376 34 <title>Entity Table</title>
86d3bfa9
EM
35 <type>varchar</type>
36 <length>64</length>
37 <required>true</required>
58b85361
MD
38 <pseudoconstant>
39 <callback>CRM_ACL_BAO_ACLEntityRole::entityTables</callback>
40 </pseudoconstant>
86d3bfa9
EM
41 <comment>Table of the object joined to the ACL Role (Contact or Group)</comment>
42 <add>1.6</add>
43 </field>
44 <field>
45 <name>entity_id</name>
32c93376 46 <title>ACL Entity ID</title>
86d3bfa9
EM
47 <type>int unsigned</type>
48 <required>true</required>
49 <comment>ID of the group/contact object being joined</comment>
50 <add>1.6</add>
51 </field>
52 <dynamicForeignKey>
53 <idColumn>entity_id</idColumn>
54 <typeColumn>entity_table</typeColumn>
55 <add>1.6</add>
56 </dynamicForeignKey>
57 <field>
58 <name>is_active</name>
32c93376 59 <title>ACL Entity Role is Active</title>
86d3bfa9
EM
60 <type>boolean</type>
61 <comment>Is this property active?</comment>
62 <add>1.6</add>
63 </field>
64 <index>
65 <name>index_role</name>
66 <fieldName>acl_role_id</fieldName>
67 <add>1.6</add>
68 </index>
69 <index>
70 <name>index_entity</name>
71 <fieldName>entity_table</fieldName>
72 <fieldName>entity_id</fieldName>
73 <add>1.6</add>
74 </index>
6a488035 75</table>