Add serialize metadata to domain.locales field
[civicrm-core.git] / xml / schema / Case / CaseContact.xml
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>
11 <title>Case Contact ID</title>
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>
23 <title>Case</title>
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>
37 <name>contact_id</name>
38 <title>Contact ID</title>
39 <type>int unsigned</type>
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>
46 </field>
47 <foreignKey>
48 <name>contact_id</name>
49 <table>civicrm_contact</table>
50 <key>id</key>
51 <add>2.1</add>
52 <onDelete>CASCADE</onDelete>
53 </foreignKey>
54 <index>
55 <name>UI_case_contact_id</name>
56 <fieldName>case_id</fieldName>
57 <fieldName>contact_id</fieldName>
58 <unique>true</unique>
59 <add>2.1</add>
60 </index>
61 </table>