CRM-15168 stdise whitespace across schema xml to make editing easier
[civicrm-core.git] / xml / schema / Core / Setting.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
5 <class>Setting</class>
6 <name>civicrm_setting</name>
7 <comment>Table to store civicrm settings for civicrm core and components.</comment>
8 <add>4.1</add>
9 <field>
8f069c03 10 <name>id</name>
b05e6d0d 11 <title>Setting ID</title>
8f069c03
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <add>4.1</add>
6a488035
TO
15 </field>
16 <primaryKey>
8f069c03
EM
17 <name>id</name>
18 <autoincrement>true</autoincrement>
6a488035
TO
19 </primaryKey>
20 <field>
8f069c03 21 <name>group_name</name>
b05e6d0d 22 <title>Setting Group</title>
8f069c03
EM
23 <type>varchar</type>
24 <length>64</length>
25 <required>true</required>
26 <comment>group name for setting element, useful in caching setting elements</comment>
27 <add>4.1</add>
6a488035
TO
28 </field>
29 <field>
8f069c03 30 <name>name</name>
b05e6d0d 31 <title>Setting Name</title>
8f069c03
EM
32 <type>varchar</type>
33 <length>255</length>
34 <comment>Unique name for setting</comment>
35 <add>4.1</add>
6a488035
TO
36 </field>
37 <index>
38 <name>index_group_name</name>
39 <fieldName>group_name</fieldName>
40 <fieldName>name</fieldName>
41 <add>4.1</add>
42 </index>
43 <field>
44 <name>value</name>
45 <type>text</type>
46 <comment>data associated with this group / name combo</comment>
47 <add>4.1</add>
48 </field>
49 <field>
8f069c03 50 <name>domain_id</name>
b05e6d0d 51 <title>Setting Domain</title>
8f069c03
EM
52 <type>int unsigned</type>
53 <required>true</required>
54 <pseudoconstant>
55 <table>civicrm_domain</table>
56 <keyColumn>id</keyColumn>
57 <labelColumn>name</labelColumn>
58 </pseudoconstant>
59 <comment>Which Domain is this menu item for</comment>
60 <add>4.1</add>
6a488035
TO
61 </field>
62 <foreignKey>
8f069c03
EM
63 <name>domain_id</name>
64 <table>civicrm_domain</table>
65 <key>id</key>
66 <onDelete>CASCADE</onDelete>
67 <add>4.1</add>
6a488035
TO
68 </foreignKey>
69 <field>
8f069c03 70 <name>contact_id</name>
b05e6d0d 71 <title>Setting Contact</title>
8f069c03
EM
72 <type>int unsigned</type>
73 <comment>FK to Contact ID if the setting is localized to a contact</comment>
74 <add>4.1</add>
6a488035
TO
75 </field>
76 <foreignKey>
8f069c03
EM
77 <name>contact_id</name>
78 <table>civicrm_contact</table>
79 <key>id</key>
80 <onDelete>CASCADE</onDelete>
81 <add>4.1</add>
6a488035
TO
82 </foreignKey>
83 <field>
8f069c03 84 <name>is_domain</name>
b05e6d0d 85 <title>Is Domain Setting?</title>
8f069c03
EM
86 <type>boolean</type>
87 <comment>Is this setting a contact specific or site wide setting?</comment>
88 <add>4.1</add>
6a488035
TO
89 </field>
90 <field>
8f785c9e 91 <name>component_id</name>
b05e6d0d 92 <title>Setting Component</title>
8f785c9e
AS
93 <type>int unsigned</type>
94 <comment>Component that this menu item belongs to</comment>
95 <add>4.1</add>
96 <pseudoconstant>
97 <table>civicrm_component</table>
98 <keyColumn>id</keyColumn>
99 <labelColumn>name</labelColumn>
100 </pseudoconstant>
614d72ec 101 <html>
e0991796 102 <type>Select</type>
614d72ec 103 </html>
6a488035
TO
104 </field>
105 <foreignKey>
8f069c03
EM
106 <name>component_id</name>
107 <table>civicrm_component</table>
108 <key>id</key>
109 <add>4.1</add>
6a488035
TO
110 </foreignKey>
111 <field>
112 <name>created_date</name>
b05e6d0d 113 <title>Setting Created Date</title>
6a488035
TO
114 <type>datetime</type>
115 <comment>When was the setting created</comment>
116 <add>4.1</add>
117 </field>
118 <field>
119 <name>created_id</name>
b05e6d0d 120 <title>Setting Created By</title>
6a488035
TO
121 <type>int unsigned</type>
122 <comment>FK to civicrm_contact, who created this setting</comment>
123 <add>4.1</add>
124 </field>
125 <foreignKey>
126 <name>created_id</name>
127 <table>civicrm_contact</table>
128 <key>id</key>
129 <add>4.1</add>
130 <onDelete>SET NULL</onDelete>
131 </foreignKey>
132</table>