Merge pull request #14082 from pradpnayak/caseReport
[civicrm-core.git] / xml / schema / Contact / ContactType.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Contact</base>
5 <class>ContactType</class>
6 <name>civicrm_contact_type</name>
7 <comment>Provide type information for contacts</comment>
8 <add>3.1</add>
9 <field>
10 <name>id</name>
11 <title>Contact Type ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Contact Type ID</comment>
15 <add>1.1</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>name</name>
23 <type>varchar</type>
24 <length>64</length>
25 <comment>Internal name of Contact Type (or Subtype).</comment>
26 <add>3.1</add>
27 </field>
28 <index>
29 <name>contact_type</name>
30 <fieldName>name</fieldName>
31 <unique>true</unique>
32 <add>3.1</add>
33 </index>
34 <field>
35 <name>label</name>
36 <title>Contact Type Label</title>
37 <type>varchar</type>
38 <length>64</length>
39 <comment>localized Name of Contact Type.</comment>
40 <localizable>true</localizable>
41 <add>3.1</add>
42 </field>
43 <field>
44 <name>description</name>
45 <title>Contact Type Description</title>
46 <type>text</type>
47 <html>
48 <type>TextArea</type>
49 <rows>2</rows>
50 <cols>60</cols>
51 </html>
52 <comment>localized Optional verbose description of the type.</comment>
53 <localizable>true</localizable>
54 <add>3.1</add>
55 </field>
56 <field>
57 <name>image_URL</name>
58 <title>Contact Type Image URL</title>
59 <type>varchar</type>
60 <length>255</length>
61 <comment>URL of image if any.</comment>
62 <add>3.1</add>
63 </field>
64 <field>
65 <name>parent_id</name>
66 <title>Contact Type Parent</title>
67 <type>int unsigned</type>
68 <comment>Optional FK to parent contact type.</comment>
69 <pseudoconstant>
70 <table>civicrm_contact_type</table>
71 <keyColumn>id</keyColumn>
72 <labelColumn>label</labelColumn>
73 <condition>parent_id IS NULL</condition>
74 </pseudoconstant>
75 <add>3.1</add>
76 </field>
77 <foreignKey>
78 <name>parent_id</name>
79 <table>civicrm_contact_type</table>
80 <key>id</key>
81 <add>3.1</add>
82 </foreignKey>
83 <field>
84 <name>is_active</name>
85 <title>Contact Type Is Active?</title>
86 <type>boolean</type>
87 <comment>Is this entry active?</comment>
88 <add>3.1</add>
89 </field>
90 <field>
91 <name>is_reserved</name>
92 <title>Contact Type is Reserved?</title>
93 <type>boolean</type>
94 <comment>Is this contact type a predefined system type</comment>
95 <add>3.1</add>
96 </field>
97 </table>