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> | |
d31fb4e3 | 9 | <component>CiviCase</component> |
6a488035 TO |
10 | <field> |
11 | <name>id</name> | |
f3ea5182 | 12 | <title>Case Contact ID</title> |
6a488035 TO |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
15 | <comment>Unique case-contact association id</comment> | |
0481e12c A |
16 | <html> |
17 | <type>Number</type> | |
18 | </html> | |
6a488035 TO |
19 | <add>2.1</add> |
20 | </field> | |
21 | <primaryKey> | |
22 | <name>id</name> | |
23 | <autoincrement>true</autoincrement> | |
24 | </primaryKey> | |
25 | <field> | |
26 | <name>case_id</name> | |
57e94608 | 27 | <title>Case ID</title> |
6a488035 TO |
28 | <type>int unsigned</type> |
29 | <required>true</required> | |
30 | <comment>Case ID of case-contact association.</comment> | |
57e94608 A |
31 | <html> |
32 | <label>Case</label> | |
33 | </html> | |
6a488035 TO |
34 | <add>2.1</add> |
35 | </field> | |
36 | <foreignKey> | |
37 | <name>case_id</name> | |
38 | <table>civicrm_case</table> | |
39 | <key>id</key> | |
40 | <add>2.1</add> | |
41 | <onDelete>CASCADE</onDelete> | |
42 | </foreignKey> | |
43 | <field> | |
f3ea5182 | 44 | <name>contact_id</name> |
45 | <title>Contact ID</title> | |
46 | <type>int unsigned</type> | |
f3ea5182 | 47 | <required>true</required> |
48 | <comment>Contact ID of contact record given case belongs to.</comment> | |
49 | <html> | |
50 | <type>EntityRef</type> | |
57e94608 | 51 | <label>Contact</label> |
f3ea5182 | 52 | </html> |
53 | <add>2.1</add> | |
6a488035 TO |
54 | </field> |
55 | <foreignKey> | |
f3ea5182 | 56 | <name>contact_id</name> |
57 | <table>civicrm_contact</table> | |
58 | <key>id</key> | |
59 | <add>2.1</add> | |
60 | <onDelete>CASCADE</onDelete> | |
3c7d2158 | 61 | </foreignKey> |
6a488035 TO |
62 | <index> |
63 | <name>UI_case_contact_id</name> | |
64 | <fieldName>case_id</fieldName> | |
65 | <fieldName>contact_id</fieldName> | |
738b63ef | 66 | <unique>true</unique> |
6a488035 TO |
67 | <add>2.1</add> |
68 | </index> | |
69 | </table> |