Add html tag to all files in xml/schema
[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 <component>CiviCase</component>
10 <field>
11 <name>id</name>
12 <title>Case Contact ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Unique case-contact association id</comment>
16 <html>
17 <type>Number</type>
18 </html>
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>
27 <title>Case</title>
28 <type>int unsigned</type>
29 <required>true</required>
30 <comment>Case ID of case-contact association.</comment>
31 <add>2.1</add>
32 </field>
33 <foreignKey>
34 <name>case_id</name>
35 <table>civicrm_case</table>
36 <key>id</key>
37 <add>2.1</add>
38 <onDelete>CASCADE</onDelete>
39 </foreignKey>
40 <field>
41 <name>contact_id</name>
42 <title>Contact ID</title>
43 <type>int unsigned</type>
44 <required>true</required>
45 <comment>Contact ID of contact record given case belongs to.</comment>
46 <html>
47 <type>EntityRef</type>
48 </html>
49 <add>2.1</add>
50 </field>
51 <foreignKey>
52 <name>contact_id</name>
53 <table>civicrm_contact</table>
54 <key>id</key>
55 <add>2.1</add>
56 <onDelete>CASCADE</onDelete>
57 </foreignKey>
58 <index>
59 <name>UI_case_contact_id</name>
60 <fieldName>case_id</fieldName>
61 <fieldName>contact_id</fieldName>
62 <unique>true</unique>
63 <add>2.1</add>
64 </index>
65 </table>