commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / xml / schema / Activity / ActivityContact.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <table>
3 <base>CRM/Activity</base>
4 <class>ActivityContact</class>
5 <name>civicrm_activity_contact</name>
6 <comment>Activity Contact</comment>
7 <archive>true</archive>
8 <add>4.4</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <title>Activity Contact ID</title>
14 <required>true</required>
15 <comment>Activity contact id</comment>
16 <add>4.4</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>activity_id</name>
24 <type>int unsigned</type>
25 <title>Activity ID</title>
26 <required>true</required>
27 <comment>Foreign key to the activity for this record.</comment>
28 <add>4.4</add>
29 </field>
30 <foreignKey>
31 <name>activity_id</name>
32 <table>civicrm_activity</table>
33 <key>id</key>
34 <add>4.4</add>
35 <onDelete>CASCADE</onDelete>
36 </foreignKey>
37 <field>
38 <name>contact_id</name>
39 <title>Contact ID (match to contact)</title>
40 <import>true</import>
41 <type>int unsigned</type>
42 <required>true</required>
43 <comment>Foreign key to the contact for this record.</comment>
44 <add>4.4</add>
45 </field>
46 <foreignKey>
47 <name>contact_id</name>
48 <table>civicrm_contact</table>
49 <key>id</key>
50 <add>4.4</add>
51 <onDelete>CASCADE</onDelete>
52 </foreignKey>
53 <field>
54 <name>record_type_id</name>
55 <type>int unsigned</type>
56 <title>Record Type ID</title>
57 <comment>Nature of this contact's role in the activity: 1 assignee, 2 creator, 3 focus or target.</comment>
58 <pseudoconstant>
59 <optionGroupName>activity_contacts</optionGroupName>
60 </pseudoconstant>
61 <html>
62 <type>Select</type>
63 </html>
64 <add>4.4</add>
65 </field>
66 <index>
67 <name>UI_activity_contact</name>
68 <fieldName>contact_id</fieldName>
69 <fieldName>activity_id</fieldName>
70 <fieldName>record_type_id</fieldName>
71 <unique>true</unique>
72 <add>4.4</add>
73 </index>
74 <index>
75 <name>index_record_type</name>
76 <fieldName>activity_id</fieldName>
77 <fieldName>record_type_id</fieldName>
78 <add>4.4</add>
79 </index>
80 </table>