<log>true</log>
<field>
<name>id</name>
+ <title>Case Contact ID</title>
<type>int unsigned</type>
<required>true</required>
<comment>Unique case-contact association id</comment>
</primaryKey>
<field>
<name>case_id</name>
+ <title>Case</title>
<type>int unsigned</type>
<required>true</required>
<comment>Case ID of case-contact association.</comment>
<onDelete>CASCADE</onDelete>
</foreignKey>
<field>
- <name>contact_id</name>
- <type>int unsigned</type>
- <uniqueName>case_contact_id</uniqueName>
- <required>true</required>
- <comment>Contact ID of contact record given case belongs to.</comment>
- <html>
- <type>Autocomplete-Select</type>
- </html>
- <add>2.1</add>
+ <name>contact_id</name>
+ <title>Contact ID</title>
+ <type>int unsigned</type>
+ <required>true</required>
+ <comment>Contact ID of contact record given case belongs to.</comment>
+ <html>
+ <type>EntityRef</type>
+ </html>
+ <add>2.1</add>
</field>
<foreignKey>
- <name>contact_id</name>
- <table>civicrm_contact</table>
- <key>id</key>
- <add>2.1</add>
- <onDelete>CASCADE</onDelete>
+ <name>contact_id</name>
+ <table>civicrm_contact</table>
+ <key>id</key>
+ <add>2.1</add>
+ <onDelete>CASCADE</onDelete>
</foreignKey>
<index>
<name>UI_case_contact_id</name>
<fieldName>case_id</fieldName>
<fieldName>contact_id</fieldName>
+ <unique>true</unique>
<add>2.1</add>
</index>
</table>