Merge pull request #15184 from eileenmcnaughton/dedupe9
[civicrm-core.git] / xml / schema / Contact / ACLContactCache.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Contact</base>
5 <class>ACLContactCache</class>
6 <name>civicrm_acl_contact_cache</name>
7 <comment>Join table cache for contacts that a user has permission on.</comment>
8 <add>3.1</add>
9 <field>
8f069c03 10 <name>id</name>
fa6ace1a 11 <title>ACL Contact Cache ID</title>
8f069c03
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>primary key</comment>
15 <add>3.1</add>
6a488035
TO
16 </field>
17 <primaryKey>
8f069c03
EM
18 <name>id</name>
19 <autoincrement>true</autoincrement>
6a488035
TO
20 </primaryKey>
21 <field>
8f069c03 22 <name>user_id</name>
f3ea5182 23 <title>Contact ID</title>
8f069c03
EM
24 <type>int unsigned</type>
25 <comment>FK to civicrm_contact (could be null for anon user)</comment>
26 <add>3.1</add>
6a488035 27 </field>
6a488035 28 <field>
8f069c03 29 <name>contact_id</name>
f3ea5182 30 <title>Contact ID</title>
8f069c03
EM
31 <type>int unsigned</type>
32 <required>true</required>
33 <comment>FK to civicrm_contact</comment>
34 <add>3.1</add>
6a488035
TO
35 </field>
36 <foreignKey>
8f069c03
EM
37 <name>contact_id</name>
38 <table>civicrm_contact</table>
39 <key>id</key>
40 <add>3.1</add>
41 <onDelete>CASCADE</onDelete>
6a488035
TO
42 </foreignKey>
43 <field>
8f069c03 44 <name>operation</name>
f3ea5182 45 <title>Operation</title>
8f069c03
EM
46 <type>varchar</type>
47 <length>8</length>
48 <required>true</required>
49 <comment>What operation does this user have permission on?</comment>
50 <pseudoconstant>
51 <callback>CRM_ACL_BAO_ACL::operation</callback>
52 </pseudoconstant>
53 <add>1.6</add>
54 <html>
55 <type>Select</type>
56 </html>
6a488035
TO
57 </field>
58 <index>
59 <name>UI_user_contact_operation</name>
60 <fieldName>user_id</fieldName>
61 <fieldName>contact_id</fieldName>
62 <fieldName>operation</fieldName>
63 <unique>true</unique>
64 <add>3.1</add>
65 </index>
66</table>