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 ID
</title>
107 <optionGroupName>participant_role
</optionGroupName>
111 <multiple>1</multiple>
112 <label>Participant Role
</label>
114 <serialize>SEPARATOR_TRIMMED
</serialize>
115 <headerPattern>/(participant.)?(role)$/i
</headerPattern>
116 <import>true
</import>
119 <export>true
</export>
120 <default>NULL
</default>
121 <comment>Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.
</comment>
125 <name>index_role_id
</name>
126 <fieldName>role_id
</fieldName>
130 <name>register_date
</name>
131 <uniqueName>participant_register_date
</uniqueName>
132 <title>Register date
</title>
133 <headerPattern>/^(r(egister\s)?date)$/i
</headerPattern>
134 <import>true
</import>
135 <type>datetime
</type>
136 <comment>When did contact register for event?
</comment>
139 <type>Select Date
</type>
140 <formatType>activityDateTime
</formatType>
145 <uniqueName>participant_source
</uniqueName>
146 <title>Participant Source
</title>
147 <headerPattern>/(participant.)?(source)$/i
</headerPattern>
148 <import>true
</import>
151 <comment>Source of this event registration.
</comment>
158 <name>fee_level
</name>
159 <uniqueName>participant_fee_level
</uniqueName>
160 <title>Fee level
</title>
161 <headerPattern>/^(f(ee\s)?level)$/i
</headerPattern>
163 <import>true
</import>
164 <serialize>SEPARATOR_BOOKEND
</serialize>
165 <comment>Populate with the label (text) associated with a fee level for paid events with multiple levels. Note that
166 we store the label value and not the key
</comment>
171 <uniqueName>participant_is_test
</uniqueName>
175 <import>true
</import>
179 <name>is_pay_later
</name>
180 <uniqueName>participant_is_pay_later
</uniqueName>
181 <title>Is Pay Later
</title>
184 <import>true
</import>
185 <headerPattern>/(is.)?(pay(.)?later)$/i
</headerPattern>
190 <name>fee_amount
</name>
191 <uniqueName>participant_fee_amount
</uniqueName>
192 <title>Fee Amount
</title>
194 <import>true
</import>
195 <headerPattern>/fee(.?am(ou)?nt)?/i
</headerPattern>
196 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
197 <comment>actual processor fee if known - may be
0.
</comment>
201 <name>registered_by_id
</name>
202 <uniqueName>participant_registered_by_id
</uniqueName>
203 <type>int unsigned
</type>
204 <title>Registered By Participant ID
</title>
205 <import>true
</import>
206 <default>NULL
</default>
207 <comment>FK to Participant ID
</comment>
209 <label>Registered By
</label>
212 <export>true
</export>
215 <name>registered_by_id
</name>
216 <table>civicrm_participant
</table>
219 <onDelete>SET NULL
</onDelete>
222 <name>discount_id
</name>
223 <uniqueName>participant_discount_id
</uniqueName>
224 <type>int unsigned
</type>
225 <title>Discount ID
</title>
226 <default>NULL
</default>
227 <comment>FK to Discount ID
</comment>
229 <label>Discount
</label>
234 <name>discount_id
</name>
235 <table>civicrm_discount
</table>
238 <onDelete>SET NULL
</onDelete>
241 <name>fee_currency
</name>
242 <uniqueName>participant_fee_currency
</uniqueName>
243 <title>Fee Currency
</title>
246 <default>NULL
</default>
247 <import>true
</import>
248 <headerPattern>/(fee)?.?cur(rency)?/i
</headerPattern>
249 <dataPattern>/^[A-Z]{
3}$/i
</dataPattern>
250 <comment>3 character string, value derived from config setting.
</comment>
253 <table>civicrm_currency
</table>
254 <keyColumn>name
</keyColumn>
255 <labelColumn>full_name
</labelColumn>
256 <nameColumn>name
</nameColumn>
257 <abbrColumn>symbol
</abbrColumn>
264 <name>campaign_id
</name>
265 <component>CiviCampaign
</component>
266 <uniqueName>participant_campaign_id
</uniqueName>
267 <type>int unsigned
</type>
268 <title>Campaign ID
</title>
269 <import>true
</import>
270 <comment>The campaign for which this participant has been registered.
</comment>
272 <type>EntityRef
</type>
273 <label>Campaign
</label>
277 <table>civicrm_campaign
</table>
278 <keyColumn>id
</keyColumn>
279 <labelColumn>title
</labelColumn>
280 <prefetch>FALSE
</prefetch>
284 <name>campaign_id
</name>
285 <table>civicrm_campaign
</table>
287 <onDelete>SET NULL
</onDelete>
290 <name>discount_amount
</name>
291 <type>int unsigned
</type>
292 <title>Discount Amount
</title>
293 <comment>Discount Amount
</comment>
298 <type>int unsigned
</type>
299 <title>Event Cart ID
</title>
300 <comment>FK to civicrm_event_carts
</comment>
302 <label>Event Cart
</label>
308 <table>civicrm_event_carts
</table>
310 <onDelete>SET NULL
</onDelete>
313 <name>must_wait
</name>
315 <title>Must Wait on List
</title>
316 <comment>On Waiting List
</comment>
320 <name>transferred_to_contact_id
</name>
321 <uniqueName>transferred_to_contact_id
</uniqueName>
322 <type>int unsigned
</type>
323 <default>NULL
</default>
324 <title>Transferred to Contact ID
</title>
325 <headerPattern>/transfer(.?id)?/i
</headerPattern>
326 <import>true
</import>
327 <comment>FK to Contact ID
</comment>
329 <label>Transferred to
</label>
334 <name>transferred_to_contact_id
</name>
335 <table>civicrm_contact
</table>
337 <onDelete>SET NULL
</onDelete>