1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <class>Participant
</class>
6 <name>civicrm_participant
</name>
11 <uniqueName>participant_id
</uniqueName>
12 <title>Participant ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
15 <comment>Participant Id
</comment>
17 <headerPattern>/(^(participant(.)?)?id$)/i
</headerPattern>
22 <autoincrement>true
</autoincrement>
25 <name>contact_id
</name>
26 <uniqueName>participant_contact_id
</uniqueName>
27 <type>int unsigned
</type>
28 <title>Contact ID
</title>
29 <headerPattern>/contact(.?id)?/i
</headerPattern>
31 <required>true
</required>
32 <comment>FK to Contact ID
</comment>
36 <name>contact_id
</name>
37 <table>civicrm_contact
</table>
39 <onDelete>CASCADE
</onDelete>
43 <type>int unsigned
</type>
46 <headerPattern>/event id$/i
</headerPattern>
47 <required>true
</required>
48 <comment>FK to Event ID
</comment>
53 <table>civicrm_event
</table>
55 <onDelete>CASCADE
</onDelete>
58 <name>status_id
</name>
59 <uniqueName>participant_status_id
</uniqueName>
60 <title>Participant Status
</title>
61 <headerPattern>/(participant.)?(status)$/i
</headerPattern>
63 <type>int unsigned
</type>
64 <export>false
</export>
65 <required>true
</required>
67 <comment>Participant status ID. FK to civicrm_participant_status_type. Default of
1 should map to status = Registered.
</comment>
70 <table>civicrm_participant_status_type
</table>
71 <keyColumn>id
</keyColumn>
72 <labelColumn>label
</labelColumn>
79 <name>status_id
</name>
80 <table>civicrm_participant_status_type
</table>
85 <name>index_status_id
</name>
86 <fieldName>status_id
</fieldName>
91 <uniqueName>participant_role_id
</uniqueName>
92 <title>Participant Role Id
</title>
94 <optionGroupName>participant_role
</optionGroupName>
99 <headerPattern>/(participant.)?(role)$/i
</headerPattern>
100 <import>true
</import>
103 <export>false
</export>
104 <default>NULL
</default>
105 <comment>Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.
</comment>
109 <name>index_role_id
</name>
110 <fieldName>role_id
</fieldName>
114 <name>register_date
</name>
115 <uniqueName>participant_register_date
</uniqueName>
116 <title>Register date
</title>
117 <headerPattern>/^(r(egister\s)?date)$/i
</headerPattern>
118 <import>true
</import>
119 <type>datetime
</type>
120 <comment>When did contact register for event?
</comment>
125 <uniqueName>participant_source
</uniqueName>
126 <title>Participant Source
</title>
127 <headerPattern>/(participant.)?(source)$/i
</headerPattern>
128 <import>true
</import>
131 <comment>Source of this event registration.
</comment>
135 <name>fee_level
</name>
136 <uniqueName>participant_fee_level
</uniqueName>
137 <title>Fee level
</title>
138 <headerPattern>/^(f(ee\s)?level)$/i
</headerPattern>
140 <import>true
</import>
141 <comment>Populate with the label (text) associated with a fee level for paid events with multiple levels. Note that we store the label value and not the key
</comment>
146 <uniqueName>participant_is_test
</uniqueName>
150 <import>true
</import>
154 <name>is_pay_later
</name>
155 <uniqueName>participant_is_pay_later
</uniqueName>
156 <title>Is Pay Later
</title>
159 <import>true
</import>
160 <headerPattern>/(is.)?(pay(.)?later)$/i
</headerPattern>
165 <name>fee_amount
</name>
166 <uniqueName>participant_fee_amount
</uniqueName>
167 <title>Fee Amount
</title>
169 <import>true
</import>
170 <headerPattern>/fee(.?am(ou)?nt)?/i
</headerPattern>
171 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
172 <comment>actual processor fee if known - may be
0.
</comment>
176 <name>registered_by_id
</name>
177 <uniqueName>participant_registered_by_id
</uniqueName>
178 <type>int unsigned
</type>
179 <title>Registered By ID
</title>
180 <import>true
</import>
181 <default>NULL
</default>
182 <comment>FK to Participant ID
</comment>
184 <export>true
</export>
187 <name>registered_by_id
</name>
188 <table>civicrm_participant
</table>
191 <onDelete>SET NULL
</onDelete>
194 <name>discount_id
</name>
195 <uniqueName>participant_discount_id
</uniqueName>
196 <type>int unsigned
</type>
197 <title>Discount ID
</title>
198 <default>NULL
</default>
199 <comment>FK to Discount ID
</comment>
203 <name>discount_id
</name>
204 <table>civicrm_discount
</table>
207 <onDelete>SET NULL
</onDelete>
210 <name>fee_currency
</name>
211 <uniqueName>participant_fee_currency
</uniqueName>
212 <title>Fee Currency
</title>
215 <default>NULL
</default>
216 <import>true
</import>
217 <headerPattern>/(fee)?.?cur(rency)?/i
</headerPattern>
218 <dataPattern>/^[A-Z]{
3}$/i
</dataPattern>
219 <comment>3 character string, value derived from config setting.
</comment>
222 <table>civicrm_currency
</table>
223 <keyColumn>name
</keyColumn>
224 <labelColumn>full_name
</labelColumn>
225 <nameColumn>numeric_code
</nameColumn>
232 <name>campaign_id
</name>
233 <uniqueName>participant_campaign_id
</uniqueName>
234 <type>int unsigned
</type>
235 <title>Campaign
</title>
236 <import>true
</import>
237 <comment>The campaign for which this participant has been registered.
</comment>
239 <table>civicrm_campaign
</table>
240 <keyColumn>id
</keyColumn>
241 <labelColumn>title
</labelColumn>
246 <name>campaign_id
</name>
247 <table>civicrm_campaign
</table>
249 <onDelete>SET NULL
</onDelete>
252 <name>discount_amount
</name>
253 <type>int unsigned
</type>
254 <title>Discount Amount
</title>
255 <comment>Discount Amount
</comment>
260 <type>int unsigned
</type>
261 <title>Event Cart ID
</title>
262 <comment>FK to civicrm_event_carts
</comment>
267 <table>civicrm_event_carts
</table>
269 <onDelete>SET NULL
</onDelete>
272 <name>must_wait
</name>
274 <title>Must Wait on List
</title>
275 <comment>On Waiting List
</comment>