Merge pull request #16017 from mattwire/setentitysubtype
[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 <add>1.6</add>
27 </field>
28 <foreignKey>
29 <name>contact_id</name>
30 <table>civicrm_contact</table>
31 <key>id</key>
32 <add>1.6</add>
33 <onDelete>CASCADE</onDelete>
34 </foreignKey>
35 <field>
36 <name>acl_id</name>
37 <title>Cache ACL</title>
38 <type>int unsigned</type>
39 <required>true</required>
40 <comment>Foreign Key to ACL</comment>
41 <add>1.6</add>
42 </field>
43 <foreignKey>
44 <name>acl_id</name>
45 <table>civicrm_acl</table>
46 <key>id</key>
47 <add>1.6</add>
48 <onDelete>CASCADE</onDelete>
49 </foreignKey>
50 <index>
51 <name>index_acl_id</name>
52 <fieldName>acl_id</fieldName>
53 <add>1.6</add>
54 </index>
55 <field>
56 <name>modified_date</name>
57 <title>Cache Modified Date</title>
58 <type>timestamp</type>
59 <required>false</required>
60 <comment>When was this cache entry last modified</comment>
61 <add>1.6</add>
62 </field>
63 <index>
64 <name>index_modified_date</name>
65 <fieldName>modified_date</fieldName>
66 <add>5.22</add>
67 </index>
68 </table>