Merge pull request #19722 from civicrm/5.35
[civicrm-core.git] / xml / schema / ACL / Cache.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
f84ce22c 4 <base>CRM/ACL</base>
28fec8aa 5 <class>ACLCache</class>
f84ce22c
EM
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>
fa6ace1a 11 <title>Cache ID</title>
f84ce22c
EM
12 <type>int unsigned</type>
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>
f84ce22c
EM
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>contact_id</name>
047c5009 26 <title>Contact ID</title>
f84ce22c
EM
27 <type>int unsigned</type>
28 <comment>Foreign Key to Contact</comment>
1906ff52
PN
29 <html>
30 <type>EntityRef</type>
047c5009 31 <label>Contact</label>
1906ff52 32 </html>
f84ce22c
EM
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>
d551d3d6 40 <drop>5.31</drop>
f84ce22c
EM
41 <onDelete>CASCADE</onDelete>
42 </foreignKey>
d551d3d6
SL
43 <index>
44 <name>index_contact_id</name>
45 <fieldName>contact_id</fieldName>
46 <add>5.31</add>
47 </index>
f84ce22c
EM
48 <field>
49 <name>acl_id</name>
047c5009 50 <title>ACL ID</title>
f84ce22c
EM
51 <type>int unsigned</type>
52 <required>true</required>
53 <comment>Foreign Key to ACL</comment>
1906ff52
PN
54 <pseudoconstant>
55 <table>civicrm_acl</table>
56 <keyColumn>id</keyColumn>
57 <labelColumn>name</labelColumn>
58 </pseudoconstant>
57e94608 59 <html>
047c5009 60 <label>ACL</label>
57e94608 61 </html>
f84ce22c
EM
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>
fa6ace1a 78 <title>Cache Modified Date</title>
a986056d 79 <type>timestamp</type>
7e77a62d 80 <required>false</required>
f84ce22c
EM
81 <comment>When was this cache entry last modified</comment>
82 <add>1.6</add>
83 </field>
1ec2637a 84 <index>
85 <name>index_modified_date</name>
86 <fieldName>modified_date</fieldName>
87 <add>5.22</add>
88 </index>
6a488035 89</table>