Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-04-30-12-58-23
[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 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Contact Type ID</comment>
14 <add>1.1</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>name</name>
22 <type>varchar</type>
23 <length>64</length>
24 <comment>Internal name of Contact Type (or Subtype).</comment>
25 <add>3.1</add>
26 </field>
27 <index>
28 <name>contact_type</name>
29 <fieldName>name</fieldName>
30 <unique>true</unique>
31 <add>3.1</add>
32 </index>
33 <field>
34 <name>label</name>
35 <type>varchar</type>
36 <length>64</length>
37 <comment>localized Name of Contact Type.</comment>
38 <localizable>true</localizable>
39 <add>3.1</add>
40 </field>
41 <field>
42 <name>description</name>
43 <type>text</type>
44 <html>
45 <type>TextArea</type>
46 <rows>2</rows>
47 <cols>60</cols>
48 </html>
49 <comment>localized Optional verbose description of the type.</comment>
50 <localizable>true</localizable>
51 <add>3.1</add>
52 </field>
53 <field>
54 <name>image_URL</name>
55 <type>varchar</type>
56 <length>255</length>
57 <comment>URL of image if any.</comment>
58 <add>3.1</add>
59 </field>
60 <field>
61 <name>parent_id</name>
62 <type>int unsigned</type>
63 <comment>Optional FK to parent contact type.</comment>
64 <add>3.1</add>
65 </field>
66 <foreignKey>
67 <name>parent_id</name>
68 <table>civicrm_contact_type</table>
69 <key>id</key>
70 <add>3.1</add>
71 </foreignKey>
72 <field>
73 <name>is_active</name>
74 <type>boolean</type>
75 <comment>Is this entry active?</comment>
76 <add>3.1</add>
77 </field>
78 <field>
79 <name>is_reserved</name>
80 <type>boolean</type>
81 <comment>Is this contact type a predefined system type</comment>
82 <add>3.1</add>
83 </field>
84 </table>