CRM-13497 - getting there on main tables
[civicrm-core.git] / xml / schema / Contact / GroupContactCache.xml
CommitLineData
6a488035
TO
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 <type>int unsigned</type>
12 <required>true</required>
13 <comment>primary key</comment>
14 <add>2.1</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
29494eef
AS
21 <name>group_id</name>
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>FK to civicrm_group</comment>
25 <add>2.1</add>
26 <pseudoconstant>
27 <table>civicrm_group</table>
28 <keyColumn>id</keyColumn>
29 <labelColumn>title</labelColumn>
30 </pseudoconstant>
614d72ec 31 <html>
32 <type>Select></type>
33 </html>
6a488035
TO
34 </field>
35 <foreignKey>
36 <name>group_id</name>
37 <table>civicrm_group</table>
38 <key>id</key>
39 <add>2.1</add>
40 <onDelete>CASCADE</onDelete>
41 </foreignKey>
42 <field>
43 <name>contact_id</name>
44 <type>int unsigned</type>
45 <required>true</required>
46 <comment>FK to civicrm_contact</comment>
47 <add>2.1</add>
48 </field>
49 <foreignKey>
50 <name>contact_id</name>
51 <table>civicrm_contact</table>
52 <key>id</key>
53 <add>2.1</add>
54 <onDelete>CASCADE</onDelete>
55 </foreignKey>
56 <index>
57 <name>UI_contact_group</name>
58 <fieldName>contact_id</fieldName>
59 <fieldName>group_id</fieldName>
60 <unique>true</unique>
61 <add>2.1</add>
62 </index>
63</table>