Merge pull request #18365 from eileenmcnaughton/member
[civicrm-core.git] / xml / schema / Core / Domain.xml
CommitLineData
6a488035
TO
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>
83396bf9 11 <title>Domain ID</title>
6a488035
TO
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Domain ID</comment>
15 <add>1.1</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>name</name>
23 <type>varchar</type>
83396bf9 24 <title>Domain Name</title>
6a488035
TO
25 <length>64</length>
26 <comment>Name of Domain / Organization</comment>
27 <add>1.1</add>
a104f8f5
TM
28 <html>
29 <type>Text</type>
30 </html>
6a488035
TO
31 </field>
32 <field>
33 <name>description</name>
34 <type>varchar</type>
83396bf9 35 <title>Domain Description</title>
6a488035
TO
36 <length>255</length>
37 <comment>Description of Domain.</comment>
38 <add>1.1</add>
a104f8f5
TM
39 <html>
40 <type>Text</type>
41 </html>
6a488035
TO
42 </field>
43 <index>
44 <name>UI_name</name>
45 <fieldName>name</fieldName>
46 <unique>true</unique>
47 <add>1.1</add>
48 </index>
6a488035
TO
49 <field>
50 <name>config_backend</name>
51 <type>text</type>
83396bf9 52 <title>Domain Configuration</title>
6a488035 53 <comment>Backend configuration.</comment>
2a5c9b4d 54 <serialize>PHP</serialize>
6a488035 55 <add>1.6</add>
00178bf2 56 <drop>5.23</drop>
6a488035
TO
57 </field>
58 <field>
59 <name>version</name>
60 <type>varchar</type>
83396bf9 61 <title>CiviCRM Version</title>
6a488035
TO
62 <length>32</length>
63 <comment>The civicrm version this instance is running</comment>
64 <add>2.0</add>
65 </field>
6a488035
TO
66 <field>
67 <name>contact_id</name>
68 <type>int unsigned</type>
83396bf9 69 <title>Domain Contact</title>
6a488035
TO
70 <comment>FK to Contact ID. This is specifically not an FK to avoid circular constraints</comment>
71 <add>4.3</add>
72 </field>
3c7d2158 73 <foreignKey>
74 <name>contact_id</name>
75 <table>civicrm_contact</table>
76 <key>id</key>
77 <add>4.3</add>
78 </foreignKey>
6a488035
TO
79 <field>
80 <name>locales</name>
81 <type>text</type>
83396bf9 82 <title>Supported Languages</title>
6a488035 83 <comment>list of locales supported by the current db state (NULL for single-lang install)</comment>
1be376e5 84 <serialize>SEPARATOR_TRIMMED</serialize>
6a488035
TO
85 <add>2.1</add>
86 </field>
87 <field>
88 <name>locale_custom_strings</name>
89 <type>text</type>
83396bf9 90 <title>Language Customizations</title>
6a488035 91 <comment>Locale specific string overrides</comment>
2a5c9b4d 92 <serialize>PHP</serialize>
6a488035
TO
93 <add>3.2</add>
94 </field>
95</table>