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> | |
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> | |
6a488035 TO |
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> | |
4cc2ccac | 35 | <name>label</name> |
7cd3d797 | 36 | <title>Contact Type Label</title> |
4cc2ccac EM |
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> | |
6a488035 TO |
42 | </field> |
43 | <field> | |
4cc2ccac | 44 | <name>description</name> |
7cd3d797 | 45 | <title>Contact Type Description</title> |
4cc2ccac EM |
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> | |
6a488035 TO |
55 | </field> |
56 | <field> | |
4cc2ccac | 57 | <name>image_URL</name> |
7cd3d797 | 58 | <title>Contact Type Image URL</title> |
4cc2ccac EM |
59 | <type>varchar</type> |
60 | <length>255</length> | |
61 | <comment>URL of image if any.</comment> | |
62 | <add>3.1</add> | |
6a488035 TO |
63 | </field> |
64 | <field> | |
4cc2ccac | 65 | <name>parent_id</name> |
7cd3d797 | 66 | <title>Contact Type Parent</title> |
4cc2ccac EM |
67 | <type>int unsigned</type> |
68 | <comment>Optional FK to parent contact type.</comment> | |
27dd6252 E |
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> | |
4cc2ccac | 75 | <add>3.1</add> |
6a488035 TO |
76 | </field> |
77 | <foreignKey> | |
4cc2ccac EM |
78 | <name>parent_id</name> |
79 | <table>civicrm_contact_type</table> | |
80 | <key>id</key> | |
81 | <add>3.1</add> | |
6a488035 TO |
82 | </foreignKey> |
83 | <field> | |
4cc2ccac | 84 | <name>is_active</name> |
7cd3d797 | 85 | <title>Contact Type Is Active?</title> |
4cc2ccac EM |
86 | <type>boolean</type> |
87 | <comment>Is this entry active?</comment> | |
88 | <add>3.1</add> | |
6a488035 TO |
89 | </field> |
90 | <field> | |
91 | <name>is_reserved</name> | |
7cd3d797 | 92 | <title>Contact Type is Reserved?</title> |
6a488035 TO |
93 | <type>boolean</type> |
94 | <comment>Is this contact type a predefined system type</comment> | |
95 | <add>3.1</add> | |
96 | </field> | |
4cc2ccac | 97 | </table> |