Added method fieldKeys() to DAOs. CRM-12464
[civicrm-core.git] / xml / schema / Event / Event.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Event</base>
5 <class>Event</class>
6 <name>civicrm_event</name>
7 <add>1.7</add>
8 <log>true</log>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <title>Event ID</title>
13 <required>true</required>
14 <comment>Event</comment>
15 <add>1.7</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>title</name>
23 <uniqueName>event_title</uniqueName>
24 <type>varchar</type>
25 <import>true</import>
26 <title>Event Title</title>
27 <headerPattern>/(event.)?title$/i</headerPattern>
28 <length>255</length>
29 <localizable>true</localizable>
30 <comment>Event Title (e.g. Fall Fundraiser Dinner)</comment>
31 <add>1.7</add>
32 </field>
33 <field>
34 <name>summary</name>
35 <type>text</type>
36 <title>Event Summary</title>
37 <htmlType>textarea</htmlType>
38 <rows>4</rows>
39 <cols>60</cols>
40 <localizable>true</localizable>
41 <comment>Brief summary of event. Text and html allowed. Displayed on Event Registration form and can be used on other CMS pages which need an event summary.</comment>
42 <add>1.7</add>
43 </field>
44 <field>
45 <name>description</name>
46 <type>text</type>
47 <uniqueName>event_description</uniqueName>
48 <title>Event Description</title>
49 <htmlType>textarea</htmlType>
50 <rows>8</rows>
51 <cols>60</cols>
52 <localizable>true</localizable>
53 <comment>Full description of event. Text and html allowed. Displayed on built-in Event Information screens.</comment>
54 <add>1.7</add>
55 </field>
56 <field>
57 <name>event_type_id</name>
58 <type>int unsigned</type>
59 <uniqueName>event_type_id</uniqueName>
60 <title>Event Type ID</title>
61 <default>0</default>
62 <pseudoconstant>
63 <name>eventType</name>
64 <optionGroupName>event_type</optionGroupName>
65 <class>CRM_Event_PseudoConstant</class>
66 </pseudoconstant>
67 <comment>Event Type ID.Implicit FK to civicrm_option_value where option_group = event_type.</comment>
68 <add>1.7</add>
69 </field>
70 <index>
71 <name>index_event_type_id</name>
72 <fieldName>event_type_id</fieldName>
73 <add>1.8</add>
74 </index>
75 <field>
76 <name>participant_listing_id</name>
77 <type>int unsigned</type>
78 <uniqueName>participant_listing_id</uniqueName>
79 <title>Participant Listing ID</title>
80 <default>0</default>
81 <comment>Should we expose the participant list? Implicit FK to civicrm_option_value where option_group = participant_listing.</comment>
82 <add>2.0</add>
83 </field>
84 <index>
85 <name>index_participant_listing_id</name>
86 <fieldName>participant_listing_id</fieldName>
87 <add>2.0</add>
88 </index>
89 <field>
90 <name>is_public</name>
91 <type>boolean</type>
92 <title>Is Event Public</title>
93 <default>1</default>
94 <comment>Public events will be included in the iCal feeds. Access to private event information may be limited using ACLs.</comment>
95 <add>1.7</add>
96 </field>
97 <field>
98 <name>start_date</name>
99 <type>datetime</type>
100 <uniqueName>event_start_date</uniqueName>
101 <title>Event Start Date</title>
102 <headerPattern>/^start|(s(tart\s)?date)$/i</headerPattern>
103 <import>true</import>
104 <comment>Date and time that event starts.</comment>
105 <add>1.7</add>
106 </field>
107 <field>
108 <name>end_date</name>
109 <type>datetime</type>
110 <uniqueName>event_end_date</uniqueName>
111 <title>Event End Date</title>
112 <headerPattern>/^end|(e(nd\s)?date)$/i</headerPattern>
113 <import>true</import>
114 <comment>Date and time that event ends. May be NULL if no defined end date/time</comment>
115 <add>1.7</add>
116 </field>
117 <field>
118 <name>is_online_registration</name>
119 <type>boolean</type>
120 <title>Is Online Registration</title>
121 <default>0</default>
122 <comment>If true, include registration link on Event Info page.</comment>
123 <add>1.7</add>
124 </field>
125 <field>
126 <name>registration_link_text</name>
127 <type>varchar</type>
128 <title>Event Registration Link Text</title>
129 <length>255</length>
130 <localizable>true</localizable>
131 <comment>Text for link to Event Registration form which is displayed on Event Information screen when is_online_registration is true.</comment>
132 <add>1.7</add>
133 </field>
134 <field>
135 <name>registration_start_date</name>
136 <type>datetime</type>
137 <comment>Date and time that online registration starts.</comment>
138 <add>1.8</add>
139 </field>
140 <field>
141 <name>registration_end_date</name>
142 <type>datetime</type>
143 <comment>Date and time that online registration ends.</comment>
144 <add>1.8</add>
145 </field>
146 <field>
147 <name>max_participants</name>
148 <type>int unsigned</type>
149 <title>Max Participants</title>
150 <default>NULL</default>
151 <comment>Maximum number of registered participants to allow. After max is reached, a custom Event Full message is displayed. If NULL, allow unlimited number of participants.</comment>
152 <add>1.7</add>
153 </field>
154 <field>
155 <name>event_full_text</name>
156 <type>text</type>
157 <title>Event Information</title>
158 <htmlType>textarea</htmlType>
159 <rows>4</rows>
160 <cols>60</cols>
161 <localizable>true</localizable>
162 <comment>Message to display on Event Information page and INSTEAD OF Event Registration form if maximum participants are signed up. Can include email address/info about getting on a waiting list, etc. Text and html allowed.</comment>
163 <add>1.7</add>
164 </field>
165 <field>
166 <name>is_monetary</name>
167 <title>Is this a PAID event?</title>
168 <type>boolean</type>
169 <default>0</default>
170 <comment>If true, one or more fee amounts must be set and a Payment Processor must be configured for Online Event Registration.</comment>
171 <add>1.7</add>
172 </field>
173 <field>
174 <name>contribution_type_id</name>
175 <type>int unsigned</type>
176 <default>0</default>
177 <comment>Contribution type assigned to paid event registrations for this event. Required if is_monetary is true.</comment>
178 <add>1.7</add>
179 <drop>4.3</drop>
180 </field>
181 <field>
182 <name>financial_type_id</name>
183 <type>int unsigned</type>
184 <title>Financial Type ID</title>
185 <default>NULL</default>
186 <comment>Financial type assigned to paid event registrations for this event. Required if is_monetary is true.</comment>
187 <add>4.3</add>
188 </field>
189 <field>
190 <name>payment_processor</name>
191 <type>varchar</type>
192 <length>128</length>
193 <comment>Payment Processors configured for this Event (if is_monetary is true)</comment>
194 <add>1.8</add>
195 </field>
196 <field>
197 <name>is_map</name>
198 <title>Map Enabled</title>
199 <type>boolean</type>
200 <default>0</default>
201 <comment>Include a map block on the Event Information page when geocode info is available and a mapping provider has been specified?</comment>
202 <add>1.7</add>
203 </field>
204 <field>
205 <name>is_active</name>
206 <title>Is Active</title>
207 <type>boolean</type>
208 <default>0</default>
209 <comment>Is this Event enabled or disabled/cancelled?</comment>
210 <add>1.7</add>
211 </field>
212 <field>
213 <name>fee_label</name>
214 <type>varchar</type>
215 <import>true</import>
216 <title>Fee Label</title>
217 <headerPattern>/^fee|(f(ee\s)?label)$/i</headerPattern>
218 <length>255</length>
219 <localizable>true</localizable>
220 <add>1.8</add>
221 </field>
222 <field>
223 <name>is_show_location</name>
224 <type>boolean</type>
225 <title>show location</title>
226 <default>1</default>
227 <comment>If true, show event location.</comment>
228 <add>1.7</add>
229 </field>
230 <field>
231 <name>loc_block_id</name>
232 <type>int unsigned</type>
233 <title>Location Block ID</title>
234 <comment>FK to Location Block ID</comment>
235 <add>2.0</add>
236 </field>
237 <foreignKey>
238 <name>loc_block_id</name>
239 <table>civicrm_loc_block</table>
240 <key>id</key>
241 <onDelete>SET NULL</onDelete>
242 <add>2.0</add>
243 </foreignKey>
244 <field>
245 <name>receipt_text</name>
246 <type>varchar</type>
247 <htmlType>textarea</htmlType>
248 <rows>6</rows>
249 <cols>50</cols>
250 <length>255</length>
251 <comment>Receipt Text for off-line event participation</comment>
252 <add>2.0</add>
253 <drop>2.1</drop>
254 </field>
255 <field>
256 <name>default_role_id</name>
257 <uniqueName>default_role_id</uniqueName>
258 <title>Participant Role</title>
259 <import>true</import>
260 <type>int unsigned</type>
261 <default>1</default>
262 <comment>Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.</comment>
263 <add>2.0</add>
264 </field>
265 <field>
266 <name>intro_text</name>
267 <type>text</type>
268 <htmlType>textarea</htmlType>
269 <rows>6</rows>
270 <cols>50</cols>
271 <title>Introductory Message</title>
272 <localizable>true</localizable>
273 <comment>Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.</comment>
274 <add>1.7</add>
275 </field>
276 <field>
277 <name>footer_text</name>
278 <title>Footer Message</title>
279 <type>text</type>
280 <htmlType>textarea</htmlType>
281 <rows>6</rows>
282 <cols>50</cols>
283 <localizable>true</localizable>
284 <comment>Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.</comment>
285 <add>1.7</add>
286 </field>
287 <field>
288 <name>confirm_title</name>
289 <type>varchar</type>
290 <title>Confirmation Title</title>
291 <length>255</length>
292 <default>NULL</default>
293 <localizable>true</localizable>
294 <comment>Title for Confirmation page.</comment>
295 <add>1.7</add>
296 </field>
297 <field>
298 <name>confirm_text</name>
299 <type>text</type>
300 <htmlType>textarea</htmlType>
301 <rows>6</rows>
302 <cols>50</cols>
303 <title>Confirm Text</title>
304 <localizable>true</localizable>
305 <comment>Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.</comment>
306 <add>1.7</add>
307 </field>
308 <field>
309 <name>confirm_footer_text</name>
310 <type>text</type>
311 <title>Footer Text</title>
312 <htmlType>textarea</htmlType>
313 <rows>6</rows>
314 <cols>50</cols>
315 <localizable>true</localizable>
316 <comment>Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.</comment>
317 <add>1.7</add>
318 </field>
319 <field>
320 <name>is_email_confirm</name>
321 <type>boolean</type>
322 <title>Is confirm email</title>
323 <default>0</default>
324 <comment>If true, confirmation is automatically emailed to contact on successful registration.</comment>
325 <add>1.7</add>
326 </field>
327 <field>
328 <name>confirm_email_text</name>
329 <type>text</type>
330 <title>Confirmation Email Text</title>
331 <htmlType>textarea</htmlType>
332 <rows>4</rows>
333 <cols>50</cols>
334 <localizable>true</localizable>
335 <comment>text to include above standard event info on confirmation email. emails are text-only, so do not allow html for now</comment>
336 <add>1.7</add>
337 </field>
338 <field>
339 <name>confirm_from_name</name>
340 <type>varchar</type>
341 <title>Confirm From Name</title>
342 <length>255</length>
343 <localizable>true</localizable>
344 <comment>FROM email name used for confirmation emails.</comment>
345 <add>1.7</add>
346 </field>
347 <field>
348 <name>confirm_from_email</name>
349 <type>varchar</type>
350 <title>Confirm From Email</title>
351 <length>255</length>
352 <comment>FROM email address used for confirmation emails.</comment>
353 <add>1.7</add>
354 </field>
355 <field>
356 <name>cc_confirm</name>
357 <type>varchar</type>
358 <length>255</length>
359 <comment>comma-separated list of email addresses to cc each time a confirmation is sent</comment>
360 <add>1.7</add>
361 </field>
362 <field>
363 <name>bcc_confirm</name>
364 <type>varchar</type>
365 <length>255</length>
366 <comment>comma-separated list of email addresses to bcc each time a confirmation is sent</comment>
367 <add>1.7</add>
368 </field>
369 <field>
370 <name>default_fee_id</name>
371 <type>int unsigned</type>
372 <title>Default Fee ID</title>
373 <comment>FK to civicrm_option_value.</comment>
374 <add>1.7</add>
375 </field>
376 <field>
377 <name>default_discount_fee_id</name>
378 <type>int unsigned</type>
379 <title>Default Discount Fee ID</title>
380 <comment>FK to civicrm_option_value.</comment>
381 <add>1.7</add>
382 </field>
383 <field>
384 <name>thankyou_title</name>
385 <type>varchar</type>
386 <title>ThankYou Title</title>
387 <length>255</length>
388 <default>NULL</default>
389 <localizable>true</localizable>
390 <comment>Title for ThankYou page.</comment>
391 <add>1.7</add>
392 </field>
393 <field>
394 <name>thankyou_text</name>
395 <type>text</type>
396 <htmlType>textarea</htmlType>
397 <rows>6</rows>
398 <cols>50</cols>
399 <title>ThankYou Text</title>
400 <localizable>true</localizable>
401 <comment>ThankYou Text.</comment>
402 <add>1.7</add>
403 </field>
404 <field>
405 <name>thankyou_footer_text</name>
406 <type>text</type>
407 <title>Footer Text</title>
408 <htmlType>textarea</htmlType>
409 <rows>6</rows>
410 <cols>50</cols>
411 <localizable>true</localizable>
412 <comment>Footer message.</comment>
413 <add>1.7</add>
414 </field>
415 <field>
416 <name>is_pay_later</name>
417 <title>Pay Later Allowed</title>
418 <type>boolean</type>
419 <default>0</default>
420 <comment>if true - allows the user to send payment directly to the org later</comment>
421 <add>2.0</add>
422 </field>
423 <field>
424 <name>pay_later_text</name>
425 <title>Pay Later Text</title>
426 <type>text</type>
427 <localizable>true</localizable>
428 <comment>The text displayed to the user in the main form</comment>
429 <add>2.0</add>
430 </field>
431 <field>
432 <name>pay_later_receipt</name>
433 <title>Pay Later Receipt Text</title>
434 <type>text</type>
435 <localizable>true</localizable>
436 <comment>The receipt sent to the user instead of the normal receipt text</comment>
437 <add>2.0</add>
438 </field>
439 <field>
440 <name>is_partial_payment</name>
441 <title>Partial Payments Enabled</title>
442 <type>boolean</type>
443 <default>0</default>
444 <comment>is partial payment enabled for this event</comment>
445 <add>4.3</add>
446 </field>
447 <field>
448 <name>initial_amount_label</name>
449 <title>Initial Amount Label</title>
450 <type>varchar</type>
451 <length>255</length>
452 <localizable>true</localizable>
453 <comment>Initial amount label for partial payment</comment>
454 <add>4.3</add>
455 </field>
456 <field>
457 <name>initial_amount_help_text</name>
458 <title>Initial Amount Help Text</title>
459 <type>text</type>
460 <localizable>true</localizable>
461 <comment>Initial amount help text for partial payment</comment>
462 <add>4.3</add>
463 </field>
464 <field>
465 <name>min_initial_amount</name>
466 <title>Minimum Initial Amount</title>
467 <type>decimal</type>
468 <comment>Minimum initial amount for partial payment</comment>
469 <add>4.3</add>
470 </field>
471 <field>
472 <name>is_multiple_registrations</name>
473 <title>Allow Multiple Registrations</title>
474 <type>boolean</type>
475 <default>0</default>
476 <comment>if true - allows the user to register multiple participants for event</comment>
477 <add>2.1</add>
478 </field>
479 <field>
480 <name>allow_same_participant_emails</name>
481 <type>boolean</type>
482 <title>Does Event allow multiple registrations from same email address?</title>
483 <default>0</default>
484 <comment>if true - allows the user to register multiple registrations from same email address.</comment>
485 <add>2.2</add>
486 </field>
487 <field>
488 <name>has_waitlist</name>
489 <title>Waitlist Enabled</title>
490 <type>boolean</type>
491 <comment>Whether the event has waitlist support.</comment>
492 <add>3.0</add>
493 </field>
494 <field>
495 <name>requires_approval</name>
496 <type>boolean</type>
497 <comment>Whether participants require approval before they can finish registering.</comment>
498 <add>3.0</add>
499 </field>
500 <field>
501 <name>expiration_time</name>
502 <type>int unsigned</type>
503 <comment>Expire pending but unconfirmed registrations after this many hours.</comment>
504 <add>3.0</add>
505 </field>
506 <field>
507 <name>waitlist_text</name>
508 <type>text</type>
509 <htmlType>textarea</htmlType>
510 <rows>4</rows>
511 <cols>60</cols>
512 <localizable>true</localizable>
513 <comment>Text to display when the event is full, but participants can signup for a waitlist.</comment>
514 <add>3.0</add>
515 </field>
516 <field>
517 <name>approval_req_text</name>
518 <type>text</type>
519 <htmlType>textarea</htmlType>
520 <rows>4</rows>
521 <cols>60</cols>
522 <localizable>true</localizable>
523 <comment>Text to display when the approval is required to complete registration for an event.</comment>
524 <add>3.0</add>
525 </field>
526 <field>
527 <name>is_template</name>
528 <title>Is an Event Template</title>
529 <type>boolean</type>
530 <default>0</default>
531 <comment>whether the event has template</comment>
532 <add>3.0</add>
533 </field>
534 <field>
535 <name>template_title</name>
536 <uniqueName>template_title</uniqueName>
537 <type>varchar</type>
538 <import>true</import>
539 <title>Event Template Title</title>
540 <headerPattern>/(template.)?title$/i</headerPattern>
541 <length>255</length>
542 <localizable>true</localizable>
543 <comment>Event Template Title</comment>
544 <add>3.0</add>
545 </field>
546 <field>
547 <name>created_id</name>
548 <type>int unsigned</type>
549 <title>Created By Contact ID</title>
550 <comment>FK to civicrm_contact, who created this event</comment>
551 <add>3.0</add>
552 </field>
553 <foreignKey>
554 <name>created_id</name>
555 <table>civicrm_contact</table>
556 <key>id</key>
557 <add>3.0</add>
558 <onDelete>SET NULL</onDelete>
559 </foreignKey>
560 <field>
561 <name>created_date</name>
562 <type>datetime</type>
563 <title>Event Created Date</title>
564 <comment>Date and time that event was created.</comment>
565 <add>3.0</add>
566 </field>
567 <field>
568 <name>currency</name>
569 <type>varchar</type>
570 <length>3</length>
571 <import>true</import>
572 <headerPattern>/cur(rency)?/i</headerPattern>
573 <dataPattern>/^[A-Z]{3}$/i</dataPattern>
574 <comment>3 character string, value from config setting or input via user.</comment>
575 <add>3.3</add>
576 </field>
577 <field>
578 <name>campaign_id</name>
579 <type>int unsigned</type>
580 <title>Campaign ID</title>
581 <comment>The campaign for which this event has been created.</comment>
582 <add>3.4</add>
583 </field>
584 <foreignKey>
585 <name>campaign_id</name>
586 <table>civicrm_campaign</table>
587 <key>id</key>
588 <onDelete>SET NULL</onDelete>
589 </foreignKey>
590 <field>
591 <name>is_share</name>
592 <title>Is shared through social media</title>
593 <type>boolean</type>
594 <default>1</default>
595 <comment>Can people share the event through social media?</comment>
596 <add>4.1</add>
597 </field>
598 <field>
599 <name>parent_event_id</name>
600 <type>int unsigned</type>
601 <title>Parent Event ID</title>
602 <default>NULL</default>
603 <comment>Implicit FK to civicrm_event: parent event</comment>
604 <add>4.1</add>
605 </field>
606 <index>
607 <name>index_parent_event_id</name>
608 <fieldName>parent_event_id</fieldName>
609 <add>4.1</add>
610 </index>
611 <field>
612 <name>slot_label_id</name>
613 <type>int unsigned</type>
614 <title>Subevent Slot Label ID</title>
615 <default>NULL</default>
616 <comment>Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.</comment>
617 <add>4.1</add>
618 </field>
619</table>