Commit | Line | Data |
---|---|---|
6a488035 TO |
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> | |
91da6cd5 | 8 | <add>4.4</add> |
6a488035 TO |
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> | |
91da6cd5 | 16 | <add>4.4</add> |
6a488035 TO |
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> | |
91da6cd5 | 28 | <add>4.4</add> |
6a488035 TO |
29 | </field> |
30 | <foreignKey> | |
31 | <name>activity_id</name> | |
32 | <table>civicrm_activity</table> | |
33 | <key>id</key> | |
91da6cd5 | 34 | <add>4.4</add> |
6a488035 TO |
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> | |
91da6cd5 | 44 | <add>4.4</add> |
6a488035 TO |
45 | </field> |
46 | <foreignKey> | |
47 | <name>contact_id</name> | |
48 | <table>civicrm_contact</table> | |
49 | <key>id</key> | |
91da6cd5 | 50 | <add>4.4</add> |
6a488035 TO |
51 | <onDelete>CASCADE</onDelete> |
52 | </foreignKey> | |
53 | <field> | |
a24b3694 | 54 | <name>record_type_id</name> |
55 | <type>int unsigned</type> | |
56 | <title>Record Type ID</title> | |
9e64deca | 57 | <comment>Nature of this contact's role in the activity: 1 assignee, 2 creator, 3 focus or target.</comment> |
ac67131d CW |
58 | <pseudoconstant> |
59 | <optionGroupName>activity_contacts</optionGroupName> | |
60 | </pseudoconstant> | |
614d72ec | 61 | <html> |
e0991796 | 62 | <type>Select</type> |
614d72ec | 63 | </html> |
91da6cd5 | 64 | <add>4.4</add> |
6a488035 TO |
65 | </field> |
66 | <index> | |
a24b3694 | 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> | |
6a488035 | 73 | </index> |
45bc8c33 | 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> | |
6a488035 | 80 | </table> |