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> | |
69 | <add>3.1</add> | |
6a488035 TO |
70 | </field> |
71 | <foreignKey> | |
4cc2ccac EM |
72 | <name>parent_id</name> |
73 | <table>civicrm_contact_type</table> | |
74 | <key>id</key> | |
75 | <add>3.1</add> | |
6a488035 TO |
76 | </foreignKey> |
77 | <field> | |
4cc2ccac | 78 | <name>is_active</name> |
7cd3d797 | 79 | <title>Contact Type Is Active?</title> |
4cc2ccac EM |
80 | <type>boolean</type> |
81 | <comment>Is this entry active?</comment> | |
82 | <add>3.1</add> | |
6a488035 TO |
83 | </field> |
84 | <field> | |
85 | <name>is_reserved</name> | |
7cd3d797 | 86 | <title>Contact Type is Reserved?</title> |
6a488035 TO |
87 | <type>boolean</type> |
88 | <comment>Is this contact type a predefined system type</comment> | |
89 | <add>3.1</add> | |
90 | </field> | |
4cc2ccac | 91 | </table> |