Commit | Line | Data |
---|---|---|
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> | |
8f069c03 | 10 | <name>id</name> |
f3ea5182 | 11 | <title>Group Contact Cache ID</title> |
8f069c03 EM |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>primary key</comment> | |
15 | <add>2.1</add> | |
6a488035 TO |
16 | </field> |
17 | <primaryKey> | |
8f069c03 EM |
18 | <name>id</name> |
19 | <autoincrement>true</autoincrement> | |
6a488035 TO |
20 | </primaryKey> |
21 | <field> | |
29494eef | 22 | <name>group_id</name> |
f3ea5182 | 23 | <title>Group</title> |
29494eef AS |
24 | <type>int unsigned</type> |
25 | <required>true</required> | |
26 | <comment>FK to civicrm_group</comment> | |
27 | <add>2.1</add> | |
28 | <pseudoconstant> | |
29 | <table>civicrm_group</table> | |
30 | <keyColumn>id</keyColumn> | |
31 | <labelColumn>title</labelColumn> | |
32 | </pseudoconstant> | |
614d72ec | 33 | <html> |
e0991796 | 34 | <type>Select</type> |
614d72ec | 35 | </html> |
6a488035 TO |
36 | </field> |
37 | <foreignKey> | |
8f069c03 EM |
38 | <name>group_id</name> |
39 | <table>civicrm_group</table> | |
40 | <key>id</key> | |
41 | <add>2.1</add> | |
42 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
43 | </foreignKey> |
44 | <field> | |
8f069c03 | 45 | <name>contact_id</name> |
f3ea5182 | 46 | <title>Contact ID</title> |
8f069c03 EM |
47 | <type>int unsigned</type> |
48 | <required>true</required> | |
49 | <comment>FK to civicrm_contact</comment> | |
50 | <add>2.1</add> | |
6a488035 TO |
51 | </field> |
52 | <foreignKey> | |
8f069c03 EM |
53 | <name>contact_id</name> |
54 | <table>civicrm_contact</table> | |
55 | <key>id</key> | |
56 | <add>2.1</add> | |
57 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
58 | </foreignKey> |
59 | <index> | |
60 | <name>UI_contact_group</name> | |
61 | <fieldName>contact_id</fieldName> | |
62 | <fieldName>group_id</fieldName> | |
63 | <unique>true</unique> | |
64 | <add>2.1</add> | |
65 | </index> | |
66 | </table> |