APIv4 - Treat navigation permissions as array, add pseudoconstant for operator
[civicrm-core.git] / 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 <html>
17 <type>Number</type>
18 </html>
19 <add>4.4</add>
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>
31 <html>
32 <label>Activity</label>
33 </html>
34 <add>4.4</add>
35 </field>
36 <foreignKey>
37 <name>activity_id</name>
38 <table>civicrm_activity</table>
39 <key>id</key>
40 <add>4.4</add>
41 <onDelete>CASCADE</onDelete>
42 </foreignKey>
43 <field>
44 <name>contact_id</name>
45 <title>Contact ID</title>
46 <import>true</import>
47 <type>int unsigned</type>
48 <required>true</required>
49 <comment>Foreign key to the contact for this record.</comment>
50 <html>
51 <label>Contact</label>
52 </html>
53 <add>4.4</add>
54 </field>
55 <foreignKey>
56 <name>contact_id</name>
57 <table>civicrm_contact</table>
58 <key>id</key>
59 <add>4.4</add>
60 <onDelete>CASCADE</onDelete>
61 </foreignKey>
62 <field>
63 <name>record_type_id</name>
64 <type>int unsigned</type>
65 <title>Activity Contact Type</title>
66 <comment>Determines the contact's role in the activity (source, target, or assignee).</comment>
67 <pseudoconstant>
68 <optionGroupName>activity_contacts</optionGroupName>
69 </pseudoconstant>
70 <html>
71 <type>Select</type>
72 <label>Contact Role</label>
73 </html>
74 <add>4.4</add>
75 </field>
76 <index>
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>
83 </index>
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>
90 </table>