Merge pull request #1625 from pradpnayak/CRM-13340
[civicrm-core.git] / xml / schema / Core / Domain.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Domain</class>
6 <name>civicrm_domain</name>
7 <comment>Top-level hierarchy to support multi-org/domain installations. Define domains for multi-org installs, else all contacts belong to one domain.</comment>
8 <add>1.1</add>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Domain 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>Name of Domain / Organization</comment>
25 <add>1.1</add>
26 </field>
27 <field>
28 <name>description</name>
29 <type>varchar</type>
30 <length>255</length>
31 <comment>Description of Domain.</comment>
32 <add>1.1</add>
33 </field>
34 <index>
35 <name>UI_name</name>
36 <fieldName>name</fieldName>
37 <unique>true</unique>
38 <add>1.1</add>
39 </index>
40 <field>
41 <name>contact_name</name>
42 <type>varchar</type>
43 <length>64</length>
44 <comment>Name of the person responsible for this domain</comment>
45 <add>1.1</add>
46 <drop>1.9</drop>
47 </field>
48 <field>
49 <name>email_name</name>
50 <type>varchar</type>
51 <length>255</length>
52 <comment>The default email name that is used in the from address for all outgoing emails</comment>
53 <add>1.9</add>
54 <drop>2.2</drop>
55 </field>
56 <field>
57 <name>email_address</name>
58 <type>varchar</type>
59 <length>255</length>
60 <comment>The default email address that is used as the from address for all outgoing emails</comment>
61 <add>1.9</add>
62 <drop>2.2</drop>
63 </field>
64 <field>
65 <name>email_domain</name>
66 <type>varchar</type>
67 <length>64</length>
68 <comment>The domain from which outgoing email for this domain will appear to originate</comment>
69 <add>1.1</add>
70 <drop>2.2</drop>
71 </field>
72 <field>
73 <name>email_return_path</name>
74 <type>varchar</type>
75 <length>64</length>
76 <comment>The domain from which outgoing email for this domain will appear to originate</comment>
77 <add>1.1</add>
78 <drop>2.2</drop>
79 </field>
80 <field>
81 <name>config_backend</name>
82 <type>text</type>
83 <comment>Backend configuration.</comment>
84 <htmlType>textarea</htmlType>
85 <rows>20</rows>
86 <cols>80</cols>
87 <add>1.6</add>
88 </field>
89 <field>
90 <name>version</name>
91 <type>varchar</type>
92 <length>32</length>
93 <comment>The civicrm version this instance is running</comment>
94 <add>2.0</add>
95 </field>
96 <field>
97 <name>loc_block_id</name>
98 <type>int unsigned</type>
99 <comment>FK to Location Block ID. This is specifically not an FK to avoid circular constraints</comment>
100 <add>2.0</add>
101 <drop>4.3</drop>
102 </field>
103 <field>
104 <name>contact_id</name>
105 <type>int unsigned</type>
106 <comment>FK to Contact ID. This is specifically not an FK to avoid circular constraints</comment>
107 <add>4.3</add>
108 </field>
109 <foreignKey>
110 <name>contact_id</name>
111 <table>civicrm_contact</table>
112 <key>id</key>
113 <add>4.3</add>
114 </foreignKey>
115 <field>
116 <name>locales</name>
117 <type>text</type>
118 <comment>list of locales supported by the current db state (NULL for single-lang install)</comment>
119 <add>2.1</add>
120 </field>
121 <field>
122 <name>locale_custom_strings</name>
123 <type>text</type>
124 <comment>Locale specific string overrides</comment>
125 <htmlType>textarea</htmlType>
126 <rows>20</rows>
127 <cols>80</cols>
128 <add>3.2</add>
129 </field>
130 </table>