1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
3 <base>CRM/Activity
</base>
4 <class>Activity
</class>
5 <name>civicrm_activity
</name>
6 <comment>Other Activity details stored here include contact, location, details.
</comment>
10 <labelField>subject
</labelField>
12 <add>civicrm/activity?reset=
1&action=add
&context=standalone
</add>
13 <view>civicrm/activity?reset=
1&action=view
&id=[id]
</view>
14 <update>civicrm/activity/add?reset=
1&action=update
&id=[id]
</update>
15 <delete>civicrm/activity?reset=
1&action=delete
&id=[id]
</delete>
19 <uniqueName>activity_id
</uniqueName>
20 <title>Activity ID
</title>
22 <type>int unsigned
</type>
23 <required>true
</required>
24 <comment>Unique Other Activity ID
</comment>
32 <autoincrement>true
</autoincrement>
35 <name>source_record_id
</name>
36 <type>int unsigned
</type>
37 <title>Source Record
</title>
38 <comment>Artificial FK to original transaction (e.g. contribution) IF it is not an Activity. Table can be figured out through activity_type_id, and further through component registry.
</comment>
39 <readonly>true
</readonly>
43 <name>UI_source_record_id
</name>
44 <fieldName>source_record_id
</fieldName>
48 <name>activity_type_id
</name>
49 <title>Activity Type ID
</title>
51 <type>int unsigned
</type>
52 <required>true
</required>
55 <headerPattern>/(activity.)?type(.id$)/i
</headerPattern>
56 <comment>FK to civicrm_option_value.id, that has to be valid, registered activity type.
</comment>
59 <optionGroupName>activity_type
</optionGroupName>
63 <label>Activity Type
</label>
67 <name>UI_activity_type_id
</name>
68 <fieldName>activity_type_id
</fieldName>
73 <uniqueName>activity_subject
</uniqueName>
75 <title>Subject
</title>
77 <comment>The subject/purpose/short description of the activity.
</comment>
79 <headerPattern>/(activity.)?subject/i
</headerPattern>
87 <name>activity_date_time
</name>
89 <required>false
</required>
91 <default>CURRENT_TIMESTAMP
</default>
92 <title>Activity Date
</title>
94 <headerPattern>/(activity.)?date(.time$)?/i
</headerPattern>
95 <comment>Date and time this activity is scheduled to occur. Formerly named scheduled_date_time.
</comment>
97 <type>Select Date
</type>
98 <formatType>activityDateTime
</formatType>
103 <name>index_activity_date_time
</name>
104 <fieldName>activity_date_time
</fieldName>
108 <name>duration
</name>
109 <uniqueName>activity_duration
</uniqueName>
110 <title>Duration
</title>
111 <import>true
</import>
112 <type>int unsigned
</type>
113 <headerPattern>/(activity.)?duration(s)?$/i
</headerPattern>
114 <comment>Planned or actual duration of activity expressed in minutes. Conglomerate of former duration_hours and duration_minutes.
</comment>
121 <name>location
</name>
122 <uniqueName>activity_location
</uniqueName>
123 <title>Location
</title>
124 <import>true
</import>
127 <headerPattern>/(activity.)?location$/i
</headerPattern>
128 <comment>Location of the activity (optional, open text).
</comment>
135 <name>phone_id
</name>
136 <type>int unsigned
</type>
137 <title>Phone ID (called)
</title>
138 <comment>Phone ID of the number called (optional - used if an existing phone number is selected).
</comment>
141 <type>EntityRef
</type>
142 <label>Phone (called)
</label>
146 <name>phone_id
</name>
147 <table>civicrm_phone
</table>
150 <onDelete>SET NULL
</onDelete>
153 <name>phone_number
</name>
154 <title>Phone (called) Number
</title>
157 <comment>Phone number in case the number does not exist in the civicrm_phone table.
</comment>
165 <uniqueName>activity_details
</uniqueName>
166 <title>Details
</title>
167 <import>true
</import>
168 <type>longtext
</type>
169 <headerPattern>/(activity.)?detail(s)?$/i
</headerPattern>
170 <comment>Details about the activity (agenda, notes, etc).
</comment>
172 <type>RichTextEditor
</type>
179 <name>status_id
</name>
180 <uniqueName>activity_status_id
</uniqueName>
181 <title>Activity Status
</title>
182 <import>true
</import>
183 <export>true
</export>
184 <headerPattern>/(activity.)?status(.label$)?/i
</headerPattern>
185 <type>int unsigned
</type>
186 <comment>ID of the status this activity is currently in. Foreign key to civicrm_option_value.
</comment>
189 <optionGroupName>activity_status
</optionGroupName>
196 <name>index_status_id
</name>
197 <fieldName>status_id
</fieldName>
201 <name>priority_id
</name>
202 <type>int unsigned
</type>
203 <title>Priority
</title>
204 <export>true
</export>
205 <import>true
</import>
206 <comment>ID of the priority given to this activity. Foreign key to civicrm_option_value.
</comment>
209 <optionGroupName>priority
</optionGroupName>
216 <name>parent_id
</name>
217 <title>Parent Activity ID
</title>
218 <type>int unsigned
</type>
219 <comment>Parent meeting ID (if this is a follow-up item). This is not currently implemented
</comment>
220 <readonly>true
</readonly>
222 <label>Parent Activity
</label>
227 <name>parent_id
</name>
228 <table>civicrm_activity
</table>
231 <onDelete>CASCADE
</onDelete>
236 <uniqueName>activity_is_test
</uniqueName>
239 <import>true
</import>
240 <headerPattern>/(is.)?test(.activity)?/i
</headerPattern>
243 <type>CheckBox
</type>
247 <name>medium_id
</name>
248 <uniqueName>activity_medium_id
</uniqueName>
249 <title>Activity Medium
</title>
250 <type>int unsigned
</type>
251 <default>NULL
</default>
252 <comment>Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.
</comment>
254 <optionGroupName>encounter_medium
</optionGroupName>
262 <name>index_medium_id
</name>
263 <fieldName>medium_id
</fieldName>
275 <name>relationship_id
</name>
276 <title>Relationship ID
</title>
277 <type>int unsigned
</type>
278 <default>NULL
</default>
279 <comment>FK to Relationship ID
</comment>
281 <label>Relationship
</label>
286 <name>relationship_id
</name>
287 <table>civicrm_relationship
</table>
289 <onDelete>SET NULL
</onDelete>
292 <name>is_current_revision
</name>
293 <title>Is this activity a current revision in versioning chain?
</title>
296 <import>true
</import>
297 <headerPattern>/(is.)?(current.)?(revision|version(ing)?)/i
</headerPattern>
301 <name>index_is_current_revision
</name>
302 <fieldName>is_current_revision
</fieldName>
306 <name>original_id
</name>
307 <type>int unsigned
</type>
308 <title>Original Activity ID
</title>
309 <comment>Activity ID of the first activity record in versioning chain.
</comment>
310 <readonly>true
</readonly>
312 <label>Original Activity
</label>
317 <name>original_id
</name>
318 <table>civicrm_activity
</table>
321 <onDelete>CASCADE
</onDelete>
325 <uniqueName>activity_result
</uniqueName>
327 <title>Result
</title>
329 <comment>Currently being used to store result id for survey activity, FK to option value.
</comment>
333 <name>is_deleted
</name>
334 <uniqueName>activity_is_deleted
</uniqueName>
335 <title>Activity is in the Trash
</title>
338 <import>true
</import>
339 <headerPattern>/(activity.)?(trash|deleted)/i
</headerPattern>
342 <type>CheckBox
</type>
346 <name>index_is_deleted
</name>
347 <fieldName>is_deleted
</fieldName>
351 <name>campaign_id
</name>
352 <component>CiviCampaign
</component>
353 <uniqueName>activity_campaign_id
</uniqueName>
354 <type>int unsigned
</type>
355 <title>Campaign ID
</title>
356 <import>true
</import>
357 <comment>The campaign for which this activity has been triggered.
</comment>
360 <type>EntityRef
</type>
361 <label>Campaign
</label>
365 <name>campaign_id
</name>
366 <table>civicrm_campaign
</table>
368 <onDelete>SET NULL
</onDelete>
371 <name>engagement_level
</name>
372 <uniqueName>activity_engagement_level
</uniqueName>
373 <type>int unsigned
</type>
374 <title>Engagement Index
</title>
375 <import>true
</import>
376 <comment>Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.
</comment>
378 <optionGroupName>engagement_index
</optionGroupName>
393 <title>Is Starred
</title>
396 <import>true
</import>
397 <comment>Activity marked as favorite.
</comment>
398 <headerPattern>/(activity.)?(star|favorite)/i
</headerPattern>
401 <type>Checkbox
</type>
405 <name>created_date
</name>
406 <uniqueName>activity_created_date
</uniqueName>
407 <type>timestamp
</type>
408 <comment>When was the activity was created.
</comment>
409 <required>false
</required>
410 <export>true
</export>
411 <default>CURRENT_TIMESTAMP
</default>
413 <label>Created Date
</label>
418 <name>modified_date
</name>
419 <uniqueName>activity_modified_date
</uniqueName>
420 <type>timestamp
</type>
421 <comment>When was the activity (or closely related entity) was created or modified or deleted.
</comment>
422 <required>false
</required>
423 <export>true
</export>
424 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
</default>
426 <label>Modified Date
</label>
428 <readonly>true
</readonly>