Merge pull request #19544 from demeritcowboy/tardy-chart
[civicrm-core.git] / xml / schema / Contact / GroupContactCache.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Contact</base>
5 <class>GroupContactCache</class>
6 <name>civicrm_group_contact_cache</name>
7 <comment>Join table cache for 'static' groups.</comment>
8 <add>2.1</add>
9 <field>
10 <name>id</name>
11 <title>Group Contact Cache ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>primary key</comment>
15 <html>
16 <type>Number</type>
17 </html>
18 <add>2.1</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>group_id</name>
26 <title>Group ID</title>
27 <type>int unsigned</type>
28 <required>true</required>
29 <comment>FK to civicrm_group</comment>
30 <add>2.1</add>
31 <pseudoconstant>
32 <table>civicrm_group</table>
33 <keyColumn>id</keyColumn>
34 <labelColumn>title</labelColumn>
35 </pseudoconstant>
36 <html>
37 <type>Select</type>
38 <label>Group</label>
39 </html>
40 </field>
41 <foreignKey>
42 <name>group_id</name>
43 <table>civicrm_group</table>
44 <key>id</key>
45 <add>2.1</add>
46 <onDelete>CASCADE</onDelete>
47 </foreignKey>
48 <field>
49 <name>contact_id</name>
50 <title>Contact ID</title>
51 <type>int unsigned</type>
52 <required>true</required>
53 <comment>FK to civicrm_contact</comment>
54 <html>
55 <label>Contact</label>
56 </html>
57 <add>2.1</add>
58 </field>
59 <foreignKey>
60 <name>contact_id</name>
61 <table>civicrm_contact</table>
62 <key>id</key>
63 <add>2.1</add>
64 <onDelete>CASCADE</onDelete>
65 </foreignKey>
66 <index>
67 <name>UI_contact_group</name>
68 <fieldName>contact_id</fieldName>
69 <fieldName>group_id</fieldName>
70 <unique>true</unique>
71 <add>2.1</add>
72 </index>
73 </table>