Merge pull request #19280 from eileenmcnaughton/params
[civicrm-core.git] / xml / schema / Contact / ContactType.xml
CommitLineData
6a488035
TO
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>
4cc2ccac 10 <name>id</name>
7cd3d797 11 <title>Contact Type ID</title>
4cc2ccac
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Contact Type ID</comment>
15 <add>1.1</add>
6a488035
TO
16 </field>
17 <primaryKey>
4cc2ccac
EM
18 <name>id</name>
19 <autoincrement>true</autoincrement>
6a488035
TO
20 </primaryKey>
21 <field>
4cc2ccac
EM
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>
351e8d47 27 <required>true</required>
6a488035
TO
28 </field>
29 <index>
30 <name>contact_type</name>
31 <fieldName>name</fieldName>
32 <unique>true</unique>
33 <add>3.1</add>
34 </index>
35 <field>
4cc2ccac 36 <name>label</name>
7cd3d797 37 <title>Contact Type Label</title>
4cc2ccac
EM
38 <type>varchar</type>
39 <length>64</length>
40 <comment>localized Name of Contact Type.</comment>
41 <localizable>true</localizable>
42 <add>3.1</add>
6a488035
TO
43 </field>
44 <field>
4cc2ccac 45 <name>description</name>
7cd3d797 46 <title>Contact Type Description</title>
4cc2ccac
EM
47 <type>text</type>
48 <html>
49 <type>TextArea</type>
50 <rows>2</rows>
51 <cols>60</cols>
52 </html>
53 <comment>localized Optional verbose description of the type.</comment>
54 <localizable>true</localizable>
55 <add>3.1</add>
6a488035
TO
56 </field>
57 <field>
4cc2ccac 58 <name>image_URL</name>
7cd3d797 59 <title>Contact Type Image URL</title>
4cc2ccac
EM
60 <type>varchar</type>
61 <length>255</length>
62 <comment>URL of image if any.</comment>
63 <add>3.1</add>
6a488035
TO
64 </field>
65 <field>
4cc2ccac 66 <name>parent_id</name>
7cd3d797 67 <title>Contact Type Parent</title>
4cc2ccac
EM
68 <type>int unsigned</type>
69 <comment>Optional FK to parent contact type.</comment>
27dd6252
E
70 <pseudoconstant>
71 <table>civicrm_contact_type</table>
72 <keyColumn>id</keyColumn>
73 <labelColumn>label</labelColumn>
74 <condition>parent_id IS NULL</condition>
75 </pseudoconstant>
4cc2ccac 76 <add>3.1</add>
6a488035
TO
77 </field>
78 <foreignKey>
4cc2ccac
EM
79 <name>parent_id</name>
80 <table>civicrm_contact_type</table>
81 <key>id</key>
82 <add>3.1</add>
6a488035
TO
83 </foreignKey>
84 <field>
4cc2ccac 85 <name>is_active</name>
7cd3d797 86 <title>Contact Type Is Active?</title>
4cc2ccac 87 <type>boolean</type>
351e8d47 88 <default>1</default>
4cc2ccac
EM
89 <comment>Is this entry active?</comment>
90 <add>3.1</add>
6a488035
TO
91 </field>
92 <field>
93 <name>is_reserved</name>
7cd3d797 94 <title>Contact Type is Reserved?</title>
6a488035 95 <type>boolean</type>
351e8d47 96 <default>0</default>
6a488035
TO
97 <comment>Is this contact type a predefined system type</comment>
98 <add>3.1</add>
99 </field>
4cc2ccac 100</table>