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> | |
0481e12c A |
15 | <html> |
16 | <type>Number</type> | |
17 | </html> | |
8f069c03 | 18 | <add>2.1</add> |
6a488035 TO |
19 | </field> |
20 | <primaryKey> | |
8f069c03 EM |
21 | <name>id</name> |
22 | <autoincrement>true</autoincrement> | |
6a488035 TO |
23 | </primaryKey> |
24 | <field> | |
29494eef | 25 | <name>group_id</name> |
57e94608 | 26 | <title>Group ID</title> |
29494eef AS |
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> | |
614d72ec | 36 | <html> |
e0991796 | 37 | <type>Select</type> |
57e94608 | 38 | <label>Group</label> |
614d72ec | 39 | </html> |
6a488035 TO |
40 | </field> |
41 | <foreignKey> | |
8f069c03 EM |
42 | <name>group_id</name> |
43 | <table>civicrm_group</table> | |
44 | <key>id</key> | |
45 | <add>2.1</add> | |
46 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
47 | </foreignKey> |
48 | <field> | |
8f069c03 | 49 | <name>contact_id</name> |
f3ea5182 | 50 | <title>Contact ID</title> |
8f069c03 EM |
51 | <type>int unsigned</type> |
52 | <required>true</required> | |
53 | <comment>FK to civicrm_contact</comment> | |
57e94608 A |
54 | <html> |
55 | <label>Contact</label> | |
56 | </html> | |
8f069c03 | 57 | <add>2.1</add> |
6a488035 TO |
58 | </field> |
59 | <foreignKey> | |
8f069c03 EM |
60 | <name>contact_id</name> |
61 | <table>civicrm_contact</table> | |
62 | <key>id</key> | |
63 | <add>2.1</add> | |
64 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
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> |