Commit | Line | Data |
---|---|---|
3c7d2158 | 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Event</base> | |
5 | <class>Participant</class> | |
6 | <name>civicrm_participant</name> | |
7 | <add>1.7</add> | |
6a488035 | 8 | <log>true</log> |
3c7d2158 | 9 | <field> |
8f069c03 EM |
10 | <name>id</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> | |
16 | <import>true</import> | |
17 | <headerPattern>/(^(participant(.)?)?id$)/i</headerPattern> | |
18 | <add>1.7</add> | |
3c7d2158 | 19 | </field> |
20 | <primaryKey> | |
8f069c03 EM |
21 | <name>id</name> |
22 | <autoincrement>true</autoincrement> | |
3c7d2158 | 23 | </primaryKey> |
24 | <field> | |
8f069c03 EM |
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> | |
30 | <import>true</import> | |
31 | <required>true</required> | |
32 | <comment>FK to Contact ID</comment> | |
33 | <add>1.7</add> | |
6a488035 | 34 | </field> |
3c7d2158 | 35 | <foreignKey> |
8f069c03 EM |
36 | <name>contact_id</name> |
37 | <table>civicrm_contact</table> | |
38 | <key>id</key> | |
39 | <onDelete>CASCADE</onDelete> | |
6a488035 | 40 | </foreignKey> |
3c7d2158 | 41 | <field> |
8f069c03 EM |
42 | <name>event_id</name> |
43 | <type>int unsigned</type> | |
44 | <title>Event</title> | |
45 | <import>true</import> | |
46 | <headerPattern>/event id$/i</headerPattern> | |
47 | <required>true</required> | |
48 | <comment>FK to Event ID</comment> | |
49 | <add>1.7</add> | |
6a488035 | 50 | </field> |
3c7d2158 | 51 | <foreignKey> |
8f069c03 EM |
52 | <name>event_id</name> |
53 | <table>civicrm_event</table> | |
54 | <key>id</key> | |
55 | <onDelete>CASCADE</onDelete> | |
6a488035 | 56 | </foreignKey> |
3c7d2158 | 57 | <field> |
8f069c03 EM |
58 | <name>status_id</name> |
59 | <uniqueName>participant_status_id</uniqueName> | |
bd7d6a3d | 60 | <title>Participant Status</title> |
8f069c03 EM |
61 | <headerPattern>/(participant.)?(status)$/i</headerPattern> |
62 | <import>true</import> | |
63 | <type>int unsigned</type> | |
e51b7372 | 64 | <export>true</export> |
8f069c03 EM |
65 | <required>true</required> |
66 | <default>1</default> | |
bd7d6a3d | 67 | <comment>Participant status ID. FK to civicrm_participant_status_type. Default of 1 should map to status = Registered.</comment> |
8f069c03 EM |
68 | <add>1.7</add> |
69 | <pseudoconstant> | |
70 | <table>civicrm_participant_status_type</table> | |
71 | <keyColumn>id</keyColumn> | |
72 | <labelColumn>label</labelColumn> | |
73 | </pseudoconstant> | |
74 | <html> | |
75 | <type>Select</type> | |
76 | </html> | |
6a488035 TO |
77 | </field> |
78 | <foreignKey> | |
79 | <name>status_id</name> | |
80 | <table>civicrm_participant_status_type</table> | |
81 | <key>id</key> | |
82 | <add>3.0</add> | |
83 | </foreignKey> | |
84 | <index> | |
85 | <name>index_status_id</name> | |
86 | <fieldName>status_id</fieldName> | |
87 | <add>1.8</add> | |
88 | </index> | |
3c7d2158 | 89 | <field> |
8f069c03 EM |
90 | <name>role_id</name> |
91 | <uniqueName>participant_role_id</uniqueName> | |
bd7d6a3d | 92 | <title>Participant Role</title> |
8f069c03 EM |
93 | <pseudoconstant> |
94 | <optionGroupName>participant_role</optionGroupName> | |
95 | </pseudoconstant> | |
96 | <html> | |
97 | <type>Select</type> | |
98 | </html> | |
99 | <headerPattern>/(participant.)?(role)$/i</headerPattern> | |
100 | <import>true</import> | |
101 | <type>varchar</type> | |
102 | <length>128</length> | |
f5d67b2a | 103 | <export>true</export> |
8f069c03 EM |
104 | <default>NULL</default> |
105 | <comment>Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.</comment> | |
106 | <add>1.7</add> | |
6a488035 TO |
107 | </field> |
108 | <index> | |
109 | <name>index_role_id</name> | |
110 | <fieldName>role_id</fieldName> | |
111 | <add>1.8</add> | |
112 | </index> | |
3c7d2158 | 113 | <field> |
8f069c03 EM |
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> | |
121 | <add>1.7</add> | |
6a488035 TO |
122 | </field> |
123 | <field> | |
8f069c03 EM |
124 | <name>source</name> |
125 | <uniqueName>participant_source</uniqueName> | |
126 | <title>Participant Source</title> | |
127 | <headerPattern>/(participant.)?(source)$/i</headerPattern> | |
128 | <import>true</import> | |
129 | <type>varchar</type> | |
130 | <length>128</length> | |
131 | <comment>Source of this event registration.</comment> | |
132 | <add>1.7</add> | |
3c7d2158 | 133 | </field> |
134 | <field> | |
8f069c03 EM |
135 | <name>fee_level</name> |
136 | <uniqueName>participant_fee_level</uniqueName> | |
137 | <title>Fee level</title> | |
138 | <headerPattern>/^(f(ee\s)?level)$/i</headerPattern> | |
139 | <type>text</type> | |
140 | <import>true</import> | |
141 | <comment>Populate with the label (text) associated with a fee level for paid events with multiple levels. Note that | |
142 | we store the label value and not the key | |
143 | </comment> | |
144 | <add>1.7</add> | |
3c7d2158 | 145 | </field> |
146 | <field> | |
8f069c03 EM |
147 | <name>is_test</name> |
148 | <uniqueName>participant_is_test</uniqueName> | |
149 | <title>Test</title> | |
150 | <type>boolean</type> | |
151 | <default>0</default> | |
152 | <import>true</import> | |
153 | <add>1.7</add> | |
6a488035 | 154 | </field> |
3c7d2158 | 155 | <field> |
8f069c03 EM |
156 | <name>is_pay_later</name> |
157 | <uniqueName>participant_is_pay_later</uniqueName> | |
158 | <title>Is Pay Later</title> | |
159 | <type>boolean</type> | |
160 | <default>0</default> | |
161 | <import>true</import> | |
162 | <headerPattern>/(is.)?(pay(.)?later)$/i</headerPattern> | |
163 | <add>2.1</add> | |
6a488035 | 164 | </field> |
3c7d2158 | 165 | |
166 | <field> | |
8f069c03 EM |
167 | <name>fee_amount</name> |
168 | <uniqueName>participant_fee_amount</uniqueName> | |
169 | <title>Fee Amount</title> | |
170 | <type>decimal</type> | |
171 | <import>true</import> | |
172 | <headerPattern>/fee(.?am(ou)?nt)?/i</headerPattern> | |
173 | <dataPattern>/^\d+(\.\d{2})?$/</dataPattern> | |
174 | <comment>actual processor fee if known - may be 0.</comment> | |
175 | <add>2.1</add> | |
3c7d2158 | 176 | </field> |
177 | <field> | |
8f069c03 EM |
178 | <name>registered_by_id</name> |
179 | <uniqueName>participant_registered_by_id</uniqueName> | |
180 | <type>int unsigned</type> | |
181 | <title>Registered By ID</title> | |
182 | <import>true</import> | |
183 | <default>NULL</default> | |
184 | <comment>FK to Participant ID</comment> | |
185 | <add>2.1</add> | |
186 | <export>true</export> | |
6a488035 | 187 | </field> |
3c7d2158 | 188 | <foreignKey> |
8f069c03 EM |
189 | <name>registered_by_id</name> |
190 | <table>civicrm_participant</table> | |
191 | <key>id</key> | |
192 | <add>2.1</add> | |
193 | <onDelete>SET NULL</onDelete> | |
3c7d2158 | 194 | </foreignKey> |
195 | <field> | |
8f069c03 EM |
196 | <name>discount_id</name> |
197 | <uniqueName>participant_discount_id</uniqueName> | |
198 | <type>int unsigned</type> | |
199 | <title>Discount ID</title> | |
200 | <default>NULL</default> | |
201 | <comment>FK to Discount ID</comment> | |
202 | <add>2.1</add> | |
6a488035 | 203 | </field> |
3c7d2158 | 204 | <foreignKey> |
8f069c03 EM |
205 | <name>discount_id</name> |
206 | <table>civicrm_discount</table> | |
207 | <key>id</key> | |
208 | <add>2.1</add> | |
209 | <onDelete>SET NULL</onDelete> | |
3c7d2158 | 210 | </foreignKey> |
211 | <field> | |
8f069c03 EM |
212 | <name>fee_currency</name> |
213 | <uniqueName>participant_fee_currency</uniqueName> | |
214 | <title>Fee Currency</title> | |
215 | <type>varchar</type> | |
216 | <length>3</length> | |
217 | <default>NULL</default> | |
218 | <import>true</import> | |
219 | <headerPattern>/(fee)?.?cur(rency)?/i</headerPattern> | |
220 | <dataPattern>/^[A-Z]{3}$/i</dataPattern> | |
221 | <comment>3 character string, value derived from config setting.</comment> | |
222 | <add>3.0</add> | |
223 | <pseudoconstant> | |
224 | <table>civicrm_currency</table> | |
225 | <keyColumn>name</keyColumn> | |
226 | <labelColumn>full_name</labelColumn> | |
c3de5c5a | 227 | <nameColumn>name</nameColumn> |
8f069c03 EM |
228 | </pseudoconstant> |
229 | <html> | |
230 | <type>Select</type> | |
231 | </html> | |
6a488035 | 232 | </field> |
3c7d2158 | 233 | <field> |
8f069c03 EM |
234 | <name>campaign_id</name> |
235 | <uniqueName>participant_campaign_id</uniqueName> | |
236 | <type>int unsigned</type> | |
237 | <title>Campaign</title> | |
238 | <import>true</import> | |
239 | <comment>The campaign for which this participant has been registered.</comment> | |
240 | <pseudoconstant> | |
241 | <table>civicrm_campaign</table> | |
242 | <keyColumn>id</keyColumn> | |
243 | <labelColumn>title</labelColumn> | |
244 | </pseudoconstant> | |
245 | <add>3.4</add> | |
3c7d2158 | 246 | </field> |
247 | <foreignKey> | |
8f069c03 EM |
248 | <name>campaign_id</name> |
249 | <table>civicrm_campaign</table> | |
250 | <key>id</key> | |
251 | <onDelete>SET NULL</onDelete> | |
6a488035 TO |
252 | </foreignKey> |
253 | <field> | |
8f069c03 EM |
254 | <name>discount_amount</name> |
255 | <type>int unsigned</type> | |
256 | <title>Discount Amount</title> | |
257 | <comment>Discount Amount</comment> | |
258 | <add>4.1</add> | |
6a488035 TO |
259 | </field> |
260 | <field> | |
8f069c03 EM |
261 | <name>cart_id</name> |
262 | <type>int unsigned</type> | |
263 | <title>Event Cart ID</title> | |
264 | <comment>FK to civicrm_event_carts</comment> | |
265 | <add>4.1</add> | |
6a488035 TO |
266 | </field> |
267 | <foreignKey> | |
8f069c03 EM |
268 | <name>cart_id</name> |
269 | <table>civicrm_event_carts</table> | |
270 | <key>id</key> | |
271 | <onDelete>SET NULL</onDelete> | |
6a488035 TO |
272 | </foreignKey> |
273 | <field> | |
8f069c03 EM |
274 | <name>must_wait</name> |
275 | <type>int</type> | |
276 | <title>Must Wait on List</title> | |
277 | <comment>On Waiting List</comment> | |
278 | <add>4.1</add> | |
6a488035 | 279 | </field> |
7dbb67ae DG |
280 | <field> |
281 | <name>transferred_to_contact_id</name> | |
282 | <uniqueName>transferred_to_contact_id</uniqueName> | |
283 | <type>int unsigned</type> | |
284 | <default>NULL</default> | |
285 | <title>Transferred to Contact ID</title> | |
286 | <headerPattern>/transfer(.?id)?/i</headerPattern> | |
287 | <import>true</import> | |
288 | <comment>FK to Contact ID</comment> | |
289 | <add>4.7</add> | |
290 | </field> | |
291 | <foreignKey> | |
292 | <name>transferred_to_contact_id</name> | |
293 | <table>civicrm_contact</table> | |
294 | <key>id</key> | |
295 | <onDelete>SET NULL</onDelete> | |
296 | </foreignKey> | |
6a488035 | 297 | </table> |