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>
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>
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 Id
</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 <name>participantStatus
</name>
71 <table>civicrm_participant_status
</table>
72 <keyColumn>id
</keyColumn>
73 <labelColumn>name
</labelColumn>
74 <class>CRM_Event_PseudoConstant
</class>
78 <name>status_id
</name>
79 <table>civicrm_participant_status_type
</table>
84 <name>index_status_id
</name>
85 <fieldName>status_id
</fieldName>
90 <uniqueName>participant_role_id
</uniqueName>
91 <title>Participant Role Id
</title>
93 <name>participantRole
</name>
94 <optionGroupName>participant_role
</optionGroupName>
95 <class>CRM_Event_PseudoConstant
</class>
97 <headerPattern>/(participant.)?(role)$/i
</headerPattern>
101 <export>false
</export>
102 <default>NULL
</default>
103 <comment>Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.
</comment>
107 <name>index_role_id
</name>
108 <fieldName>role_id
</fieldName>
112 <name>register_date
</name>
113 <uniqueName>participant_register_date
</uniqueName>
114 <title>Register date
</title>
115 <headerPattern>/^(r(egister\s)?date)$/i
</headerPattern>
116 <import>true
</import>
117 <type>datetime
</type>
118 <comment>When did contact register for event?
</comment>
123 <uniqueName>participant_source
</uniqueName>
124 <title>Participant Source
</title>
125 <headerPattern>/(participant.)?(source)$/i
</headerPattern>
126 <import>true
</import>
129 <comment>Source of this event registration.
</comment>
133 <name>fee_level
</name>
134 <uniqueName>participant_fee_level
</uniqueName>
135 <title>Fee level
</title>
136 <headerPattern>/^(f(ee\s)?level)$/i
</headerPattern>
138 <import>true
</import>
139 <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>
144 <uniqueName>participant_is_test
</uniqueName>
148 <import>true
</import>
152 <name>is_pay_later
</name>
153 <uniqueName>participant_is_pay_later
</uniqueName>
154 <title>Is Pay Later
</title>
157 <import>true
</import>
158 <headerPattern>/(is.)?(pay(.)?later)$/i
</headerPattern>
163 <name>fee_amount
</name>
164 <uniqueName>participant_fee_amount
</uniqueName>
165 <title>Fee Amount
</title>
167 <import>true
</import>
168 <headerPattern>/fee(.?am(ou)?nt)?/i
</headerPattern>
169 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
170 <comment>actual processor fee if known - may be
0.
</comment>
174 <name>registered_by_id
</name>
175 <uniqueName>participant_registered_by_id
</uniqueName>
176 <type>int unsigned
</type>
177 <title>Registered By ID
</title>
178 <import>true
</import>
179 <default>NULL
</default>
180 <comment>FK to Participant ID
</comment>
182 <export>true
</export>
185 <name>registered_by_id
</name>
186 <table>civicrm_participant
</table>
189 <onDelete>SET NULL
</onDelete>
192 <name>discount_id
</name>
193 <uniqueName>participant_discount_id
</uniqueName>
194 <type>int unsigned
</type>
195 <title>Discount ID
</title>
196 <default>NULL
</default>
197 <comment>FK to Discount ID
</comment>
201 <name>discount_id
</name>
202 <table>civicrm_discount
</table>
205 <onDelete>SET NULL
</onDelete>
208 <name>fee_currency
</name>
209 <uniqueName>participant_fee_currency
</uniqueName>
210 <title>Fee Currency
</title>
213 <default>NULL
</default>
214 <import>true
</import>
215 <headerPattern>/(fee)?.?cur(rency)?/i
</headerPattern>
216 <dataPattern>/^[A-Z]{
3}$/i
</dataPattern>
217 <comment>3 character string, value derived from config setting.
</comment>
221 <name>campaign_id
</name>
222 <uniqueName>participant_campaign_id
</uniqueName>
223 <type>int unsigned
</type>
224 <title>Campaign ID
</title>
225 <import>true
</import>
226 <comment>The campaign for which this participant has been registered.
</comment>
230 <name>campaign_id
</name>
231 <table>civicrm_campaign
</table>
233 <onDelete>SET NULL
</onDelete>
236 <name>discount_amount
</name>
237 <type>int unsigned
</type>
238 <title>Discount Amount
</title>
239 <comment>Discount Amount
</comment>
244 <type>int unsigned
</type>
245 <title>Event Cart ID
</title>
246 <comment>FK to civicrm_event_carts
</comment>
251 <table>civicrm_event_carts
</table>
253 <onDelete>SET NULL
</onDelete>
256 <name>must_wait
</name>
258 <title>Must Wait on List
</title>
259 <comment>On Waiting List
</comment>