CRM-13497 - getting there on main tables
[civicrm-core.git] / xml / schema / Contact / Contact.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Contact</base>
5 <class>Contact</class>
6 <name>civicrm_contact</name>
7 <comment>Contact objects are defined by a civicrm_contact record plus a related civicrm_contact_type record.</comment>
8 <add>1.1</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <title>Internal Contact ID</title>
14 <import>true</import>
15 <headerPattern>/internal|contact?|id$/i</headerPattern>
16 <required>true</required>
17 <comment>Unique Contact ID</comment>
18 <add>1.1</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>contact_type</name>
26 <title>Contact Type</title>
27 <type>varchar</type>
28 <length>64</length>
29 <comment>Type of Contact.</comment>
30 <export>true</export>
31 <pseudoconstant>
32 <table>civicrm_contact_type</table>
33 <keyColumn>name</keyColumn>
34 <labelColumn>label</labelColumn>
35 <condition>parent_id IS NULL</condition>
36 </pseudoconstant>
37 <html>
38 <type>Select></type>
39 </html>
40 <add>1.1</add>
41 <change>3.1</change>
42 </field>
43 <index>
44 <name>index_contact_type</name>
45 <fieldName>contact_type</fieldName>
46 <add>2.1</add>
47 </index>
48 <field>
49 <name>contact_sub_type</name>
50 <title>Contact Subtype</title>
51 <type>varchar</type>
52 <length>255</length>
53 <export>true</export>
54 <import>true</import>
55 <headerPattern>/C(ontact )?(subtype|sub-type|sub type)/i</headerPattern>
56 <comment>May be used to over-ride contact view and edit templates.</comment>
57 <pseudoconstant>
58 <table>civicrm_contact_type</table>
59 <keyColumn>name</keyColumn>
60 <labelColumn>label</labelColumn>
61 <condition>parent_id IS NOT NULL</condition>
62 </pseudoconstant>
63 <html>
64 <type>Multi-Select</type>
65 </html>
66 <add>1.5</add>
67 </field>
68 <index>
69 <name>index_contact_sub_type</name>
70 <fieldName>contact_sub_type</fieldName>
71 <html>
72 <type>Multi-Select</type>
73 </html>
74 <add>2.1</add>
75 </index>
76 <field>
77 <name>do_not_email</name>
78 <type>boolean</type>
79 <import>true</import>
80 <headerPattern>/d(o )?(not )?(email)/i</headerPattern>
81 <dataPattern>/^\d{1,}$/</dataPattern>
82 <default>0</default>
83 <html>
84 <type>CheckBox</type>
85 </html>
86 <add>1.1</add>
87 </field>
88 <field>
89 <name>do_not_phone</name>
90 <type>boolean</type>
91 <default>0</default>
92 <import>true</import>
93 <headerPattern>/d(o )?(not )?(call|phone)/i</headerPattern>
94 <dataPattern>/^\d{1,}$/</dataPattern>
95 <add>1.1</add>
96 <html>
97 <type>CheckBox</type>
98 </html>
99 </field>
100 <field>
101 <name>do_not_mail</name>
102 <type>boolean</type>
103 <import>true</import>
104 <headerPattern>/^(d(o\s)?n(ot\s)?mail)|(\w*)?bulk\s?(\w*)$/i</headerPattern>
105 <dataPattern>/^\d{1,}$/</dataPattern>
106 <default>0</default>
107 <add>1.1</add>
108 <html>
109 <type>CheckBox</type>
110 </html>
111 </field>
112 <field>
113 <name>do_not_sms</name>
114 <type>boolean</type>
115 <import>true</import>
116 <headerPattern>/d(o )?(not )?(sms)/i</headerPattern>
117 <dataPattern>/^\d{1,}$/</dataPattern>
118 <default>0</default>
119 <add>3.0</add>
120 <html>
121 <type>CheckBox</type>
122 </html>
123 </field>
124 <field>
125 <name>do_not_trade</name>
126 <type>boolean</type>
127 <import>true</import>
128 <headerPattern>/d(o )?(not )?(trade)/i</headerPattern>
129 <dataPattern>/^\d{1,}$/</dataPattern>
130 <default>0</default>
131 <add>1.1</add>
132 <html>
133 <type>CheckBox</type>
134 </html>
135 </field>
136 <field>
137 <name>is_opt_out</name>
138 <type>boolean</type>
139 <title>No Bulk Emails (User Opt Out)</title>
140 <default>0</default>
141 <import>true</import>
142 <required>true</required>
143 <comment>Has the contact opted out from receiving all bulk email from the organization or site domain?</comment>
144 <add>1.1</add>
145 <html>
146 <type>CheckBox</type>
147 </html>
148 </field>
149 <field>
150 <name>legal_identifier</name>
151 <type>varchar</type>
152 <length>32</length>
153 <import>true</import>
154 <headerPattern>/legal\s?id/i</headerPattern>
155 <dataPattern>/\w+?\d{5,}/</dataPattern>
156 <comment>May be used for SSN, EIN/TIN, Household ID (census) or other applicable unique legal/government ID.</comment>
157 <add>1.1</add>
158 <html>
159 <type>Text</type>
160 </html>
161 </field>
162 <field>
163 <name>external_identifier</name>
164 <type>varchar</type>
165 <length>32</length>
166 <html>
167 <type>Text</type>
168 <size>EIGHT</size>
169 </html>
170
171 <import>true</import>
172 <headerPattern>/external\s?id/i</headerPattern>
173 <dataPattern>/^\d{11,}$/</dataPattern>
174 <comment>Unique trusted external ID (generally from a legacy app/datasource). Particularly useful for deduping operations.</comment>
175 <add>1.1</add>
176 </field>
177 <index>
178 <name>UI_external_identifier</name>
179 <unique>true</unique>
180 <fieldName>external_identifier</fieldName>
181 <add>1.7</add>
182 </index>
183 <field>
184 <name>sort_name</name>
185 <title>Sort Name</title>
186 <type>varchar</type>
187 <length>128</length>
188 <html>
189 <type>Text</type>
190 <size>BIG</size>
191 </html>
192
193 <export>true</export>
194 <comment>Name used for sorting different contact types</comment>
195 <add>1.1</add>
196 </field>
197 <index>
198 <name>index_sort_name</name>
199 <fieldName>sort_name</fieldName>
200 <add>2.1</add>
201 </index>
202 <field>
203 <name>display_name</name>
204 <title>Display Name</title>
205 <type>varchar</type>
206 <length>128</length>
207 <html>
208 <type>Text</type>
209 <size>BIG</size>
210 </html>
211
212 <export>true</export>
213 <comment>Formatted name representing preferred format for display/print/other output.</comment>
214 <add>1.1</add>
215 </field>
216 <field>
217 <name>nick_name</name>
218 <title>Nickname</title>
219 <type>varchar</type>
220 <length>128</length>
221 <html>
222 <type>Text</type>
223 <size>BIG</size>
224 </html>
225
226 <import>true</import>
227 <headerPattern>/n(ick\s)name|nick$/i</headerPattern>
228 <dataPattern>/^\w+$/</dataPattern>
229 <comment>Nickname.</comment>
230 <fulltext/>
231 <add>1.1</add>
232 </field>
233 <field>
234 <name>legal_name</name>
235 <type>varchar</type>
236 <length>128</length>
237 <html>
238 <type>Text</type>
239 <size>BIG</size>
240 </html>
241
242 <import>true</import>
243 <headerPattern>/^legal|(l(egal\s)?name)$/i</headerPattern>
244 <comment>Legal Name.</comment>
245 <fulltext/>
246 <add>1.1</add>
247 </field>
248 <field>
249 <name>home_URL</name>
250 <rule>url</rule>
251 <title>Website</title>
252 <type>varchar</type>
253 <length>128</length>
254 <html>
255 <type>Text</type>
256 <size>BIG</size>
257 </html>
258
259 <import>true</import>
260 <headerPattern>/^(home\sURL)|URL|web|site/i</headerPattern>
261 <dataPattern>/^[\w\/\:\.]+$/</dataPattern>
262 <comment>optional "home page" URL for this contact.</comment>
263 <add>1.1</add>
264 <drop>3.2</drop>
265 </field>
266 <field>
267 <name>image_URL</name>
268 <type>varchar</type>
269 <length>255</length>
270 <import>true</import>
271 <comment>optional URL for preferred image (photo, logo, etc.) to display for this contact.</comment>
272 <add>1.1</add>
273 <html>
274 <type>Text</type>
275 </html>
276 </field>
277 <field>
278 <name>preferred_communication_method</name>
279 <title>Preferred Communication Method</title>
280 <type>varchar</type>
281 <length>255</length>
282 <import>true</import>
283 <headerPattern>/^p(ref\w*\s)?c(omm\w*)|( meth\w*)$/i</headerPattern>
284 <dataPattern>/^\w+$/</dataPattern>
285 <comment>What is the preferred mode of communication.</comment>
286 <add>1.1</add>
287 <pseudoconstant>
288 <optionGroupName>preferred_communication_method</optionGroupName>
289 </pseudoconstant>
290 <html>
291 <type>Select></type>
292 </html>
293 </field>
294 <index>
295 <name>index_preferred_communication_method</name>
296 <fieldName>preferred_communication_method</fieldName>
297 <add>1.6</add>
298 </index>
299 <field>
300 <name>preferred_language</name>
301 <title>Preferred Language</title>
302 <type>varchar</type>
303 <length>5</length>
304 <comment>Which language is preferred for communication. FK to languages in civicrm_option_value.</comment>
305 <headerPattern>/^lang/i</headerPattern>
306 <import>true</import>
307 <pseudoconstant>
308 <optionGroupName>languages</optionGroupName>
309 <keyColumn>name</keyColumn>
310 </pseudoconstant>
311 <html>
312 <type>Select></type>
313 </html>
314 <add>3.2</add>
315 </field>
316 <field>
317 <name>preferred_mail_format</name>
318 <type>enum</type>
319 <values>Text, HTML, Both</values>
320 <default>"Both"</default>
321 <import>true</import>
322 <headerPattern>/^p(ref\w*\s)?m(ail\s)?f(orm\w*)$/i</headerPattern>
323 <comment>What is the preferred mode of sending an email.</comment>
324 <add>1.1</add>
325 <html>
326 <type>Select</type>
327 </html>
328 </field>
329 <field>
330 <name>hash</name>
331 <title>Contact Hash</title>
332 <type>varchar</type>
333 <length>32</length>
334 <comment>Key for validating requests related to this contact.</comment>
335 <add>1.1</add>
336 <change>1.5</change>
337 <export>true</export>
338 </field>
339 <index>
340 <name>index_hash</name>
341 <fieldName>hash</fieldName>
342 <add>2.1</add>
343 </index>
344 <field>
345 <name>api_key</name>
346 <type>varchar</type>
347 <length>32</length>
348 <comment>API Key for validating requests related to this contact.</comment>
349 <add>2.2</add>
350 </field>
351 <index>
352 <name>index_api_key</name>
353 <fieldName>api_key</fieldName>
354 <add>2.1</add>
355 </index>
356 <field>
357 <name>source</name>
358 <title>Source of Contact Data</title>
359 <uniqueName>contact_source</uniqueName>
360 <type>varchar</type>
361 <length>255</length>
362 <html>
363 <type>Text</type>
364 <size>BIG</size>
365 </html>
366
367 <import>true</import>
368 <headerPattern>/(S(ource\s)?o(f\s)?C(ontact\s)?Data)$/i</headerPattern>
369 <comment>where contact come from, e.g. import, donate module insert...</comment>
370 <add>1.1</add>
371 </field>
372 <field>
373 <name>first_name</name>
374 <type>varchar</type>
375 <length>64</length>
376 <html>
377 <type>Text</type>
378 <size>BIG</size>
379 </html>
380 <import>true</import>
381 <headerPattern>/^first|(f(irst\s)?name)$/i</headerPattern>
382 <dataPattern>/^\w+$/</dataPattern>
383 <fulltext/>
384 <comment>First Name.</comment>
385 <add>1.1</add>
386 </field>
387 <index>
388 <name>index_first_name</name>
389 <fieldName>first_name</fieldName>
390 <add>1.8</add>
391 </index>
392 <field>
393 <name>middle_name</name>
394 <type>varchar</type>
395 <length>64</length>
396 <html>
397 <type>Text</type>
398 <size>MEDIUM</size>
399 </html>
400 <import>true</import>
401 <headerPattern>/^middle|(m(iddle\s)?name)$/i</headerPattern>
402 <dataPattern>/^\w+$/</dataPattern>
403 <fulltext/>
404 <comment>Middle Name.</comment>
405 <add>1.1</add>
406 </field>
407 <field>
408 <name>last_name</name>
409 <type>varchar</type>
410 <length>64</length>
411 <html>
412 <type>Text</type>
413 <size>BIG</size>
414 </html>
415 <import>true</import>
416 <headerPattern>/^last|(l(ast\s)?name)$/i</headerPattern>
417 <dataPattern>/^\w+(\s\w+)?+$/</dataPattern>
418 <comment>Last Name.</comment>
419 <fulltext/>
420 <add>1.1</add>
421 </field>
422 <index>
423 <name>index_last_name</name>
424 <fieldName>last_name</fieldName>
425 <add>1.8</add>
426 <html>
427 <type>Text</type>
428 </html>
429 </index>
430 <field>
431 <name>prefix_id</name>
432 <title>Individual Prefix</title>
433 <type>int unsigned</type>
434 <comment>Prefix or Title for name (Ms, Mr...). FK to prefix ID</comment>
435 <pseudoconstant>
436 <optionGroupName>individual_prefix</optionGroupName>
437 </pseudoconstant>
438 <html>
439 <type>Select></type>
440 </html>
441 <headerPattern>/^(prefix|title)/i</headerPattern>
442 <dataPattern>/^(mr|ms|mrs|sir|dr)\.?$/i</dataPattern>
443 <import>true</import>
444 <add>1.2</add>
445 </field>
446 <index>
447 <name>UI_prefix</name>
448 <fieldName>prefix_id</fieldName>
449 <add>1.6</add>
450 </index>
451 <field>
452 <name>suffix_id</name>
453 <title>Individual Suffix</title>
454 <type>int unsigned</type>
455 <pseudoconstant>
456 <optionGroupName>individual_suffix</optionGroupName>
457 </pseudoconstant>
458 <html>
459 <type>Select></type>
460 </html>
461 <import>true</import>
462 <comment>Suffix for name (Jr, Sr...). FK to suffix ID</comment>
463 <headerPattern>/^suffix$/i</headerPattern>
464 <dataPattern>/^(sr|jr)\.?|i{2,}$/</dataPattern>
465 <add>1.2</add>
466 </field>
467 <index>
468 <name>UI_suffix</name>
469 <fieldName>suffix_id</fieldName>
470 <add>1.6</add>
471 </index>
472 <field>
473 <name>greeting_type</name>
474 <type>varchar</type>
475 <length>128</length>
476 <import>true</import>
477 <comment>Preferred greeting format.</comment>
478 <add>1.1</add>
479 <drop>2.2</drop>
480 </field>
481 <field>
482 <name>greeting_type_id</name>
483 <title>Greeting Type</title>
484 <type>int unsigned</type>
485 <comment>FK to civicrm_option_value.id, that has to be valid, registered Greeting type.</comment>
486 <add>2.2</add>
487 <drop>3.0</drop>
488 </field>
489 <field>
490 <name>custom_greeting</name>
491 <type>varchar</type>
492 <length>128</length>
493 <import>true</import>
494 <comment>Custom greeting message.</comment>
495 <add>1.1</add>
496 <drop>3.0</drop>
497 </field>
498 <field>
499 <name>email_greeting_id</name>
500 <type>int unsigned</type>
501 <title>Email Greeting ID</title>
502 <comment>FK to civicrm_option_value.id, that has to be valid registered Email Greeting.</comment>
503 <add>3.0</add>
504 </field>
505 <field>
506 <name>email_greeting_custom</name>
507 <type>varchar</type>
508 <length>128</length>
509 <import>true</import>
510 <export>false</export>
511 <comment>Custom Email Greeting.</comment>
512 <add>3.0</add>
513 <html>
514 <type>Text</type>
515 </html>
516 </field>
517 <field>
518 <name>email_greeting_display</name>
519 <title>Email Greeting</title>
520 <type>varchar</type>
521 <length>255</length>
522 <comment>Cache Email Greeting.</comment>
523 <add>3.0</add>
524 <html>
525 <type>Text</type>
526 </html>
527 </field>
528 <field>
529 <name>postal_greeting_id</name>
530 <type>int unsigned</type>
531 <title>Postal Greeting ID</title>
532 <comment>FK to civicrm_option_value.id, that has to be valid registered Postal Greeting.</comment>
533 <add>3.0</add>
534 <html>
535 <type>Text</type>
536 </html>
537 </field>
538 <field>
539 <name>postal_greeting_custom</name>
540 <type>varchar</type>
541 <length>128</length>
542 <import>true</import>
543 <export>false</export>
544 <comment>Custom Postal greeting.</comment>
545 <add>3.0</add>
546 <html>
547 <type>Text</type>
548 </html>
549 </field>
550 <field>
551 <name>postal_greeting_display</name>
552 <title>Postal Greeting</title>
553 <type>varchar</type>
554 <length>255</length>
555 <comment>Cache Postal greeting.</comment>
556 <add>3.0</add>
557 <html>
558 <type>Text</type>
559 </html>
560 </field>
561 <field>
562 <name>addressee_id</name>
563 <type>int unsigned</type>
564 <title>Addressee ID</title>
565 <comment>FK to civicrm_option_value.id, that has to be valid registered Addressee.</comment>
566 <add>3.0</add>
567 </field>
568 <field>
569 <name>addressee_custom</name>
570 <type>varchar</type>
571 <length>128</length>
572 <import>true</import>
573 <export>false</export>
574 <comment>Custom Addressee.</comment>
575 <add>3.0</add>
576 <html>
577 <type>Text</type>
578 </html>
579 </field>
580 <field>
581 <name>addressee_display</name>
582 <title>Addressee</title>
583 <type>varchar</type>
584 <length>255</length>
585 <comment>Cache Addressee.</comment>
586 <add>3.0</add>
587 <html>
588 <type>Text</type>
589 </html>
590 </field>
591 <field>
592 <name>job_title</name>
593 <type>varchar</type>
594 <length>255</length>
595 <html>
596 <type>Text</type>
597 <size>MEDIUM</size>
598 </html>
599 <import>true</import>
600 <headerPattern>/^job|(j(ob\s)?title)$/i</headerPattern>
601 <dataPattern>//</dataPattern>
602 <comment>Job Title</comment>
603 <add>1.1</add>
604 </field>
605 <field>
606 <name>gender_id</name>
607 <title>Gender</title>
608 <type>int unsigned</type>
609 <pseudoconstant>
610 <optionGroupName>gender</optionGroupName>
611 </pseudoconstant>
612 <html>
613 <type>Select></type>
614 </html>
615 <headerPattern>/^gender$/i</headerPattern>
616 <comment>FK to gender ID</comment>
617 <import>true</import>
618 <add>1.2</add>
619 </field>
620 <index>
621 <name>UI_gender</name>
622 <fieldName>gender_id</fieldName>
623 <add>1.6</add>
624 <html>
625 <type>Select</type>
626 </html>
627 </index>
628 <field>
629 <name>birth_date</name>
630 <type>date</type>
631 <import>true</import>
632 <headerPattern>/^birth|(b(irth\s)?date)|D(\W*)O(\W*)B(\W*)$/i</headerPattern>
633 <dataPattern>/\d{4}-?\d{2}-?\d{2}/</dataPattern>
634 <comment>Date of birth</comment>
635 <add>1.1</add>
636 <html>
637 <type>Select Date</type>
638 </html>
639 </field>
640 <field>
641 <name>is_deceased</name>
642 <title>Is Deceased</title>
643 <import>true</import>
644 <export>true</export>
645 <headerPattern>/i(s\s)?d(eceased)$/i</headerPattern>
646 <type>boolean</type>
647 <default>0</default>
648 <add>1.1</add>
649 <html>
650 <type>CheckBox</type>
651 </html>
652 </field>
653 <field>
654 <name>deceased_date</name>
655 <type>date</type>
656 <import>true</import>
657 <export>true</export>
658 <headerPattern>/^deceased|(d(eceased\s)?date)$/i</headerPattern>
659 <comment>Date of deceased</comment>
660 <add>1.5</add>
661 <html>
662 <type>Select Date</type>
663 </html>
664 </field>
665 <field>
666 <name>mail_to_household_id</name>
667 <title>Mail to Household ID</title>
668 <type>int unsigned</type>
669 <comment>OPTIONAL FK to civicrm_contact_household record. If NOT NULL, direct mail communications to household rather than individual location.</comment>
670 <export>true</export>
671 <add>1.1</add>
672 <drop>3.3</drop>
673 </field>
674 <foreignKey>
675 <name>mail_to_household_id</name>
676 <table>civicrm_contact</table>
677 <key>id</key>
678 <add>2.1</add>
679 <onDelete>SET NULL</onDelete>
680 <drop>3.3</drop>
681 </foreignKey>
682 <field>
683 <name>household_name</name>
684 <type>varchar</type>
685 <length>128</length>
686 <html>
687 <type>Text</type>
688 <size>BIG</size>
689 </html>
690 <import>true</import>
691 <headerPattern>/^household|(h(ousehold\s)?name)$/i</headerPattern>
692 <dataPattern>/^\w+$/</dataPattern>
693 <comment>Household Name.</comment>
694 <fulltext/>
695 <add>1.1</add>
696 </field>
697 <index>
698 <name>index_household_name</name>
699 <fieldName>household_name</fieldName>
700 <add>1.8</add>
701 </index>
702 <field>
703 <name>primary_contact_id</name>
704 <type>int unsigned</type>
705 <title>Household Primary Contact ID</title>
706 <comment>Optional FK to Primary Contact for this household.</comment>
707 <add>1.1</add>
708 <html>
709 <type>Select</type>
710 </html>
711 </field>
712 <foreignKey>
713 <name>primary_contact_id</name>
714 <table>civicrm_contact</table>
715 <key>id</key>
716 <add>1.1</add>
717 <onDelete>SET NULL</onDelete>
718 </foreignKey>
719 <field>
720 <name>organization_name</name>
721 <type>varchar</type>
722 <length>128</length>
723 <html>
724 <type>Text</type>
725 <size>BIG</size>
726 </html>
727 <import>true</import>
728 <headerPattern>/^organization|(o(rganization\s)?name)$/i</headerPattern>
729 <dataPattern>/^\w+$/</dataPattern>
730 <comment>Organization Name.</comment>
731 <fulltext/>
732 <add>1.1</add>
733 </field>
734 <index>
735 <name>index_organization_name</name>
736 <fieldName>organization_name</fieldName>
737 <add>1.8</add>
738 </index>
739 <field>
740 <name>sic_code</name>
741 <type>varchar</type>
742 <length>8</length>
743 <import>true</import>
744 <headerPattern>/^sic|(s(ic\s)?code)$/i</headerPattern>
745 <comment>Standard Industry Classification Code.</comment>
746 <add>1.1</add>
747 <html>
748 <type>Text</type>
749 </html>
750 </field>
751 <field>
752 <name>user_unique_id</name>
753 <rule>url</rule>
754 <title>Unique ID (OpenID)</title>
755 <type>varchar</type>
756 <length>255</length>
757 <import>true</import>
758 <headerPattern>/^Open\s?ID|u(niq\w*)?\s?ID/i</headerPattern>
759 <dataPattern>/^[\w\/\:\.]+$/</dataPattern>
760 <comment>the OpenID (or OpenID-style http://username.domain/) unique identifier for this contact mainly used for logging in to CiviCRM</comment>
761 <add>2.0</add>
762 <html>
763 <type>Text</type>
764 </html>
765 </field>
766 <field>
767 <name>employer_id</name>
768 <title>Current Employer ID</title>
769 <uniqueName>current_employer_id</uniqueName>
770 <type>int unsigned</type>
771 <comment>OPTIONAL FK to civicrm_contact record.</comment>
772 <export>true</export>
773 <add>2.1</add>
774 <html>
775 <type>Autocomplete-Select</type>
776 </html>
777 </field>
778 <foreignKey>
779 <name>employer_id</name>
780 <table>civicrm_contact</table>
781 <key>id</key>
782 <add>2.1</add>
783 <onDelete>SET NULL</onDelete>
784 </foreignKey>
785 <field>
786 <name>is_deleted</name>
787 <title>Contact is in Trash</title>
788 <uniqueName>contact_is_deleted</uniqueName>
789 <type>boolean</type>
790 <default>0</default>
791 <required>true</required>
792 <export>true</export>
793 <add>3.2</add>
794 <html>
795 <type>CheckBox</type>
796 </html>
797 </field>
798 <index>
799 <name>index_is_deleted</name>
800 <fieldName>is_deleted</fieldName>
801 <add>3.2</add>
802 <drop>4.4</drop>
803 </index>
804 <index>
805 <name>index_is_deleted_sort_name</name>
806 <fieldName>is_deleted</fieldName>
807 <fieldName>sort_name</fieldName>
808 <fieldName>id</fieldName>
809 <add>4.4</add>
810 </index>
811 <field>
812 <name>created_date</name>
813 <type>timestamp</type>
814 <comment>When was the contact was created.</comment>
815 <required>false</required>
816 <default>NULL</default>
817 <add>4.3</add>
818 </field>
819 <field>
820 <name>modified_date</name>
821 <type>timestamp</type>
822 <comment>When was the contact (or closely related entity) was created or modified or deleted.</comment>
823 <required>false</required>
824 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default>
825 <add>4.3</add>
826 </field>
827 </table>