Commit | Line | Data |
---|---|---|
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> | |
0481e12c A |
15 | <html> |
16 | <type>Number</type> | |
17 | </html> | |
4cc2ccac | 18 | <add>1.1</add> |
6a488035 TO |
19 | </field> |
20 | <primaryKey> | |
4cc2ccac EM |
21 | <name>id</name> |
22 | <autoincrement>true</autoincrement> | |
6a488035 TO |
23 | </primaryKey> |
24 | <field> | |
4cc2ccac EM |
25 | <name>name</name> |
26 | <type>varchar</type> | |
27 | <length>64</length> | |
28 | <comment>Internal name of Contact Type (or Subtype).</comment> | |
1662d426 A |
29 | <html> |
30 | <label>Name</label> | |
31 | </html> | |
4cc2ccac | 32 | <add>3.1</add> |
351e8d47 | 33 | <required>true</required> |
6a488035 TO |
34 | </field> |
35 | <index> | |
36 | <name>contact_type</name> | |
37 | <fieldName>name</fieldName> | |
38 | <unique>true</unique> | |
39 | <add>3.1</add> | |
40 | </index> | |
41 | <field> | |
4cc2ccac | 42 | <name>label</name> |
7cd3d797 | 43 | <title>Contact Type Label</title> |
4cc2ccac EM |
44 | <type>varchar</type> |
45 | <length>64</length> | |
46 | <comment>localized Name of Contact Type.</comment> | |
47 | <localizable>true</localizable> | |
48 | <add>3.1</add> | |
6a488035 TO |
49 | </field> |
50 | <field> | |
4cc2ccac | 51 | <name>description</name> |
7cd3d797 | 52 | <title>Contact Type Description</title> |
4cc2ccac EM |
53 | <type>text</type> |
54 | <html> | |
55 | <type>TextArea</type> | |
56 | <rows>2</rows> | |
57 | <cols>60</cols> | |
58 | </html> | |
59 | <comment>localized Optional verbose description of the type.</comment> | |
60 | <localizable>true</localizable> | |
61 | <add>3.1</add> | |
6a488035 TO |
62 | </field> |
63 | <field> | |
4cc2ccac | 64 | <name>image_URL</name> |
7cd3d797 | 65 | <title>Contact Type Image URL</title> |
4cc2ccac EM |
66 | <type>varchar</type> |
67 | <length>255</length> | |
68 | <comment>URL of image if any.</comment> | |
69 | <add>3.1</add> | |
6a488035 | 70 | </field> |
033dcbb6 CW |
71 | <field> |
72 | <name>icon</name> | |
73 | <title>Icon</title> | |
74 | <type>varchar</type> | |
75 | <length>255</length> | |
76 | <default>NULL</default> | |
77 | <comment>crm-i icon class representing this contact type</comment> | |
78 | <add>5.49</add> | |
79 | </field> | |
6a488035 | 80 | <field> |
4cc2ccac | 81 | <name>parent_id</name> |
047c5009 | 82 | <title>Parent ID</title> |
4cc2ccac EM |
83 | <type>int unsigned</type> |
84 | <comment>Optional FK to parent contact type.</comment> | |
27dd6252 E |
85 | <pseudoconstant> |
86 | <table>civicrm_contact_type</table> | |
87 | <keyColumn>id</keyColumn> | |
88 | <labelColumn>label</labelColumn> | |
89 | <condition>parent_id IS NULL</condition> | |
90 | </pseudoconstant> | |
57e94608 | 91 | <html> |
047c5009 | 92 | <label>Parent</label> |
57e94608 | 93 | </html> |
4cc2ccac | 94 | <add>3.1</add> |
6a488035 TO |
95 | </field> |
96 | <foreignKey> | |
4cc2ccac EM |
97 | <name>parent_id</name> |
98 | <table>civicrm_contact_type</table> | |
99 | <key>id</key> | |
100 | <add>3.1</add> | |
6a488035 TO |
101 | </foreignKey> |
102 | <field> | |
4cc2ccac | 103 | <name>is_active</name> |
7cd3d797 | 104 | <title>Contact Type Is Active?</title> |
4cc2ccac | 105 | <type>boolean</type> |
351e8d47 | 106 | <default>1</default> |
c1e814c7 | 107 | <required>true</required> |
4cc2ccac EM |
108 | <comment>Is this entry active?</comment> |
109 | <add>3.1</add> | |
6a488035 TO |
110 | </field> |
111 | <field> | |
112 | <name>is_reserved</name> | |
7cd3d797 | 113 | <title>Contact Type is Reserved?</title> |
6a488035 | 114 | <type>boolean</type> |
351e8d47 | 115 | <default>0</default> |
c1e814c7 | 116 | <required>true</required> |
6a488035 TO |
117 | <comment>Is this contact type a predefined system type</comment> |
118 | <add>3.1</add> | |
119 | </field> | |
4cc2ccac | 120 | </table> |