Merge pull request #18158 from mattwire/createProfileContact
[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 <html>
16 <type>Number</type>
17 </html>
18 <add>1.6</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>contact_id</name>
26 <title>Contact ID</title>
27 <type>int unsigned</type>
28 <comment>Foreign Key to Contact</comment>
29 <html>
30 <type>EntityRef</type>
31 <label>Contact</label>
32 </html>
33 <add>1.6</add>
34 </field>
35 <foreignKey>
36 <name>contact_id</name>
37 <table>civicrm_contact</table>
38 <key>id</key>
39 <add>1.6</add>
40 <drop>5.31</drop>
41 <onDelete>CASCADE</onDelete>
42 </foreignKey>
43 <index>
44 <name>index_contact_id</name>
45 <fieldName>contact_id</fieldName>
46 <add>5.31</add>
47 </index>
48 <field>
49 <name>acl_id</name>
50 <title>ACL ID</title>
51 <type>int unsigned</type>
52 <required>true</required>
53 <comment>Foreign Key to ACL</comment>
54 <pseudoconstant>
55 <table>civicrm_acl</table>
56 <keyColumn>id</keyColumn>
57 <labelColumn>name</labelColumn>
58 </pseudoconstant>
59 <html>
60 <label>ACL</label>
61 </html>
62 <add>1.6</add>
63 </field>
64 <foreignKey>
65 <name>acl_id</name>
66 <table>civicrm_acl</table>
67 <key>id</key>
68 <add>1.6</add>
69 <onDelete>CASCADE</onDelete>
70 </foreignKey>
71 <index>
72 <name>index_acl_id</name>
73 <fieldName>acl_id</fieldName>
74 <add>1.6</add>
75 </index>
76 <field>
77 <name>modified_date</name>
78 <title>Cache Modified Date</title>
79 <type>timestamp</type>
80 <required>false</required>
81 <comment>When was this cache entry last modified</comment>
82 <add>1.6</add>
83 </field>
84 <index>
85 <name>index_modified_date</name>
86 <fieldName>modified_date</fieldName>
87 <add>5.22</add>
88 </index>
89 </table>