more whitespace -remove trailing spaces
[civicrm-core.git] / xml / schema / Case / CaseContact.xml
CommitLineData
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>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique case-contact association id</comment>
14 <add>2.1</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>case_id</name>
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>Case ID of case-contact association.</comment>
25 <add>2.1</add>
26 </field>
27 <foreignKey>
28 <name>case_id</name>
29 <table>civicrm_case</table>
30 <key>id</key>
31 <add>2.1</add>
32 <onDelete>CASCADE</onDelete>
33 </foreignKey>
34 <field>
35 <name>contact_id</name>
36 <type>int unsigned</type>
37 <uniqueName>case_contact_id</uniqueName>
38 <required>true</required>
39 <comment>Contact ID of contact record given case belongs to.</comment>
614d72ec 40 <html>
41 <type>Autocomplete-Select</type>
66cae705 42 </html>
614d72ec 43 <add>2.1</add>
6a488035
TO
44 </field>
45 <foreignKey>
46 <name>contact_id</name>
47 <table>civicrm_contact</table>
48 <key>id</key>
49 <add>2.1</add>
50 <onDelete>CASCADE</onDelete>
3c7d2158 51 </foreignKey>
6a488035
TO
52 <index>
53 <name>UI_case_contact_id</name>
54 <fieldName>case_id</fieldName>
55 <fieldName>contact_id</fieldName>
56 <add>2.1</add>
57 </index>
58</table>