Merge pull request #16714 from christianwach/lab-1638
[civicrm-core.git] / xml / schema / ACL / Cache.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/ACL</base>
5 <class>ACLCache</class>
6 <name>civicrm_acl_cache</name>
7 <comment>Cache for acls and contacts</comment>
8 <add>1.6</add>
9 <field>
10 <name>id</name>
11 <title>Cache ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Unique table ID</comment>
15 <add>1.6</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>contact_id</name>
23 <title>Cache Contact</title>
24 <type>int unsigned</type>
25 <comment>Foreign Key to Contact</comment>
26 <html>
27 <type>EntityRef</type>
28 </html>
29 <add>1.6</add>
30 </field>
31 <foreignKey>
32 <name>contact_id</name>
33 <table>civicrm_contact</table>
34 <key>id</key>
35 <add>1.6</add>
36 <onDelete>CASCADE</onDelete>
37 </foreignKey>
38 <field>
39 <name>acl_id</name>
40 <title>Cache ACL</title>
41 <type>int unsigned</type>
42 <required>true</required>
43 <comment>Foreign Key to ACL</comment>
44 <pseudoconstant>
45 <table>civicrm_acl</table>
46 <keyColumn>id</keyColumn>
47 <labelColumn>name</labelColumn>
48 </pseudoconstant>
49 <add>1.6</add>
50 </field>
51 <foreignKey>
52 <name>acl_id</name>
53 <table>civicrm_acl</table>
54 <key>id</key>
55 <add>1.6</add>
56 <onDelete>CASCADE</onDelete>
57 </foreignKey>
58 <index>
59 <name>index_acl_id</name>
60 <fieldName>acl_id</fieldName>
61 <add>1.6</add>
62 </index>
63 <field>
64 <name>modified_date</name>
65 <title>Cache Modified Date</title>
66 <type>timestamp</type>
67 <required>false</required>
68 <comment>When was this cache entry last modified</comment>
69 <add>1.6</add>
70 </field>
71 <index>
72 <name>index_modified_date</name>
73 <fieldName>modified_date</fieldName>
74 <add>5.22</add>
75 </index>
76 </table>