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> | |
0481e12c A |
16 | <html> |
17 | <type>Number</type> | |
18 | </html> | |
91da6cd5 | 19 | <add>4.4</add> |
6a488035 TO |
20 | </field> |
21 | <primaryKey> | |
22 | <name>id</name> | |
23 | <autoincrement>true</autoincrement> | |
24 | </primaryKey> | |
25 | <field> | |
26 | <name>activity_id</name> | |
27 | <type>int unsigned</type> | |
28 | <title>Activity ID</title> | |
29 | <required>true</required> | |
30 | <comment>Foreign key to the activity for this record.</comment> | |
57e94608 A |
31 | <html> |
32 | <label>Activity</label> | |
33 | </html> | |
91da6cd5 | 34 | <add>4.4</add> |
6a488035 TO |
35 | </field> |
36 | <foreignKey> | |
37 | <name>activity_id</name> | |
38 | <table>civicrm_activity</table> | |
39 | <key>id</key> | |
91da6cd5 | 40 | <add>4.4</add> |
6a488035 TO |
41 | <onDelete>CASCADE</onDelete> |
42 | </foreignKey> | |
43 | <field> | |
44 | <name>contact_id</name> | |
57e94608 | 45 | <title>Contact ID</title> |
6a488035 TO |
46 | <import>true</import> |
47 | <type>int unsigned</type> | |
48 | <required>true</required> | |
49 | <comment>Foreign key to the contact for this record.</comment> | |
57e94608 A |
50 | <html> |
51 | <label>Contact</label> | |
52 | </html> | |
91da6cd5 | 53 | <add>4.4</add> |
6a488035 TO |
54 | </field> |
55 | <foreignKey> | |
56 | <name>contact_id</name> | |
57 | <table>civicrm_contact</table> | |
58 | <key>id</key> | |
91da6cd5 | 59 | <add>4.4</add> |
6a488035 TO |
60 | <onDelete>CASCADE</onDelete> |
61 | </foreignKey> | |
62 | <field> | |
a24b3694 | 63 | <name>record_type_id</name> |
64 | <type>int unsigned</type> | |
344c48b1 CW |
65 | <title>Activity Contact Type</title> |
66 | <comment>Determines the contact's role in the activity (source, target, or assignee).</comment> | |
ac67131d CW |
67 | <pseudoconstant> |
68 | <optionGroupName>activity_contacts</optionGroupName> | |
69 | </pseudoconstant> | |
614d72ec | 70 | <html> |
e0991796 | 71 | <type>Select</type> |
344c48b1 | 72 | <label>Contact Role</label> |
614d72ec | 73 | </html> |
91da6cd5 | 74 | <add>4.4</add> |
6a488035 TO |
75 | </field> |
76 | <index> | |
a24b3694 | 77 | <name>UI_activity_contact</name> |
78 | <fieldName>contact_id</fieldName> | |
79 | <fieldName>activity_id</fieldName> | |
80 | <fieldName>record_type_id</fieldName> | |
81 | <unique>true</unique> | |
82 | <add>4.4</add> | |
6a488035 | 83 | </index> |
45bc8c33 | 84 | <index> |
85 | <name>index_record_type</name> | |
86 | <fieldName>activity_id</fieldName> | |
87 | <fieldName>record_type_id</fieldName> | |
88 | <add>4.4</add> | |
89 | </index> | |
6a488035 | 90 | </table> |