Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | <table> | |
3 | <base>CRM/Case</base> | |
4 | <class>CaseContact</class> | |
5 | <name>civicrm_case_contact</name> | |
6 | <comment>Joining table for case-contact associations.</comment> | |
7 | <add>2.1</add> | |
8 | <log>true</log> | |
9 | <field> | |
10 | <name>id</name> | |
f3ea5182 | 11 | <title>Case Contact ID</title> |
6a488035 TO |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>Unique case-contact association id</comment> | |
15 | <add>2.1</add> | |
16 | </field> | |
17 | <primaryKey> | |
18 | <name>id</name> | |
19 | <autoincrement>true</autoincrement> | |
20 | </primaryKey> | |
21 | <field> | |
22 | <name>case_id</name> | |
f3ea5182 | 23 | <title>Case</title> |
6a488035 TO |
24 | <type>int unsigned</type> |
25 | <required>true</required> | |
26 | <comment>Case ID of case-contact association.</comment> | |
27 | <add>2.1</add> | |
28 | </field> | |
29 | <foreignKey> | |
30 | <name>case_id</name> | |
31 | <table>civicrm_case</table> | |
32 | <key>id</key> | |
33 | <add>2.1</add> | |
34 | <onDelete>CASCADE</onDelete> | |
35 | </foreignKey> | |
36 | <field> | |
f3ea5182 | 37 | <name>contact_id</name> |
38 | <title>Contact ID</title> | |
39 | <type>int unsigned</type> | |
f3ea5182 | 40 | <required>true</required> |
41 | <comment>Contact ID of contact record given case belongs to.</comment> | |
42 | <html> | |
43 | <type>EntityRef</type> | |
44 | </html> | |
45 | <add>2.1</add> | |
6a488035 TO |
46 | </field> |
47 | <foreignKey> | |
f3ea5182 | 48 | <name>contact_id</name> |
49 | <table>civicrm_contact</table> | |
50 | <key>id</key> | |
51 | <add>2.1</add> | |
52 | <onDelete>CASCADE</onDelete> | |
3c7d2158 | 53 | </foreignKey> |
6a488035 TO |
54 | <index> |
55 | <name>UI_case_contact_id</name> | |
56 | <fieldName>case_id</fieldName> | |
57 | <fieldName>contact_id</fieldName> | |
58 | <add>2.1</add> | |
59 | </index> | |
60 | </table> |