1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <class>Participant
</class>
6 <name>civicrm_participant
</name>
7 <description>Records of contacts' attendance and roles in events.
</description>
10 <icon>fa-ticket
</icon>
11 <component>CiviEvent
</component>
14 <uniqueName>participant_id
</uniqueName>
15 <title>Participant ID
</title>
16 <type>int unsigned
</type>
17 <required>true
</required>
18 <comment>Participant ID
</comment>
20 <headerPattern>/(^(participant(.)?)?id$)/i
</headerPattern>
28 <autoincrement>true
</autoincrement>
31 <name>contact_id
</name>
32 <uniqueName>participant_contact_id
</uniqueName>
33 <type>int unsigned
</type>
34 <title>Contact ID
</title>
35 <headerPattern>/contact(.?id)?/i
</headerPattern>
37 <required>true
</required>
38 <comment>FK to Contact ID
</comment>
40 <label>Contact
</label>
45 <name>contact_id
</name>
46 <table>civicrm_contact
</table>
48 <onDelete>CASCADE
</onDelete>
52 <type>int unsigned
</type>
53 <title>Event ID
</title>
55 <headerPattern>/event id$/i
</headerPattern>
56 <required>true
</required>
57 <comment>FK to Event ID
</comment>
65 <table>civicrm_event
</table>
67 <onDelete>CASCADE
</onDelete>
70 <name>status_id
</name>
71 <uniqueName>participant_status_id
</uniqueName>
72 <title>Status ID
</title>
73 <headerPattern>/(participant.)?(status)$/i
</headerPattern>
75 <type>int unsigned
</type>
77 <required>true
</required>
79 <comment>Participant status ID. FK to civicrm_participant_status_type. Default of
1 should map to status = Registered.
</comment>
82 <table>civicrm_participant_status_type
</table>
83 <keyColumn>id
</keyColumn>
84 <labelColumn>label
</labelColumn>
92 <name>status_id
</name>
93 <table>civicrm_participant_status_type
</table>
98 <name>index_status_id
</name>
99 <fieldName>status_id
</fieldName>
104 <uniqueName>participant_role_id
</uniqueName>
105 <title>Participant Role
</title>
107 <optionGroupName>participant_role
</optionGroupName>
111 <multiple>1</multiple>
113 <serialize>SEPARATOR_TRIMMED
</serialize>
114 <headerPattern>/(participant.)?(role)$/i
</headerPattern>
115 <import>true
</import>
118 <export>true
</export>
119 <default>NULL
</default>
120 <comment>Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.
</comment>
124 <name>index_role_id
</name>
125 <fieldName>role_id
</fieldName>
129 <name>register_date
</name>
130 <uniqueName>participant_register_date
</uniqueName>
131 <title>Register date
</title>
132 <headerPattern>/^(r(egister\s)?date)$/i
</headerPattern>
133 <import>true
</import>
134 <type>datetime
</type>
135 <comment>When did contact register for event?
</comment>
138 <type>Select Date
</type>
139 <formatType>activityDateTime
</formatType>
144 <uniqueName>participant_source
</uniqueName>
145 <title>Participant Source
</title>
146 <headerPattern>/(participant.)?(source)$/i
</headerPattern>
147 <import>true
</import>
150 <comment>Source of this event registration.
</comment>
157 <name>fee_level
</name>
158 <uniqueName>participant_fee_level
</uniqueName>
159 <title>Fee level
</title>
160 <headerPattern>/^(f(ee\s)?level)$/i
</headerPattern>
162 <import>true
</import>
163 <serialize>SEPARATOR_BOOKEND
</serialize>
164 <comment>Populate with the label (text) associated with a fee level for paid events with multiple levels. Note that
165 we store the label value and not the key
</comment>
170 <uniqueName>participant_is_test
</uniqueName>
174 <import>true
</import>
178 <name>is_pay_later
</name>
179 <uniqueName>participant_is_pay_later
</uniqueName>
180 <title>Is Pay Later
</title>
183 <import>true
</import>
184 <headerPattern>/(is.)?(pay(.)?later)$/i
</headerPattern>
189 <name>fee_amount
</name>
190 <uniqueName>participant_fee_amount
</uniqueName>
191 <title>Fee Amount
</title>
193 <import>true
</import>
194 <headerPattern>/fee(.?am(ou)?nt)?/i
</headerPattern>
195 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
196 <comment>actual processor fee if known - may be
0.
</comment>
200 <name>registered_by_id
</name>
201 <uniqueName>participant_registered_by_id
</uniqueName>
202 <type>int unsigned
</type>
203 <title>Registered By Participant ID
</title>
204 <import>true
</import>
205 <default>NULL
</default>
206 <comment>FK to Participant ID
</comment>
208 <label>Registered By
</label>
211 <export>true
</export>
214 <name>registered_by_id
</name>
215 <table>civicrm_participant
</table>
218 <onDelete>SET NULL
</onDelete>
221 <name>discount_id
</name>
222 <uniqueName>participant_discount_id
</uniqueName>
223 <type>int unsigned
</type>
224 <title>Discount ID
</title>
225 <default>NULL
</default>
226 <comment>FK to Discount ID
</comment>
228 <label>Discount
</label>
233 <name>discount_id
</name>
234 <table>civicrm_discount
</table>
237 <onDelete>SET NULL
</onDelete>
240 <name>fee_currency
</name>
241 <uniqueName>participant_fee_currency
</uniqueName>
242 <title>Fee Currency
</title>
245 <default>NULL
</default>
246 <import>true
</import>
247 <headerPattern>/(fee)?.?cur(rency)?/i
</headerPattern>
248 <dataPattern>/^[A-Z]{
3}$/i
</dataPattern>
249 <comment>3 character string, value derived from config setting.
</comment>
252 <table>civicrm_currency
</table>
253 <keyColumn>name
</keyColumn>
254 <labelColumn>full_name
</labelColumn>
255 <nameColumn>name
</nameColumn>
256 <abbrColumn>symbol
</abbrColumn>
263 <name>campaign_id
</name>
264 <component>CiviCampaign
</component>
265 <uniqueName>participant_campaign_id
</uniqueName>
266 <type>int unsigned
</type>
267 <title>Campaign ID
</title>
268 <import>true
</import>
269 <comment>The campaign for which this participant has been registered.
</comment>
271 <type>EntityRef
</type>
272 <label>Campaign
</label>
276 <table>civicrm_campaign
</table>
277 <keyColumn>id
</keyColumn>
278 <labelColumn>title
</labelColumn>
279 <prefetch>FALSE
</prefetch>
283 <name>campaign_id
</name>
284 <table>civicrm_campaign
</table>
286 <onDelete>SET NULL
</onDelete>
289 <name>discount_amount
</name>
290 <type>int unsigned
</type>
291 <title>Discount Amount
</title>
292 <comment>Discount Amount
</comment>
297 <type>int unsigned
</type>
298 <title>Event Cart ID
</title>
299 <comment>FK to civicrm_event_carts
</comment>
301 <label>Event Cart
</label>
307 <table>civicrm_event_carts
</table>
309 <onDelete>SET NULL
</onDelete>
312 <name>must_wait
</name>
314 <title>Must Wait on List
</title>
315 <comment>On Waiting List
</comment>
319 <name>transferred_to_contact_id
</name>
320 <uniqueName>transferred_to_contact_id
</uniqueName>
321 <type>int unsigned
</type>
322 <default>NULL
</default>
323 <title>Transferred to Contact ID
</title>
324 <headerPattern>/transfer(.?id)?/i
</headerPattern>
325 <import>true
</import>
326 <comment>FK to Contact ID
</comment>
328 <label>Transferred to
</label>
333 <name>transferred_to_contact_id
</name>
334 <table>civicrm_contact
</table>
336 <onDelete>SET NULL
</onDelete>