Merge pull request #3617 from eileenmcnaughton/CRM-14946
[civicrm-core.git] / xml / schema / Price / PriceSet.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Price</base>
5 <class>PriceSet</class>
6 <name>civicrm_price_set</name>
7 <add>1.8</add>
8 <log>true</log>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Price Set</comment>
14 <add>1.8</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>domain_id</name>
22 <type>int unsigned</type>
23 <pseudoconstant>
24 <table>civicrm_domain</table>
25 <keyColumn>id</keyColumn>
26 <labelColumn>name</labelColumn>
27 </pseudoconstant>
28 <comment>Which Domain is this price-set for</comment>
29 <add>3.1</add>
30 <html>
31 <type>Text</type>
32 </html>
33 </field>
34 <foreignKey>
35 <name>domain_id</name>
36 <table>civicrm_domain</table>
37 <key>id</key>
38 <add>3.1</add>
39 </foreignKey>
40 <field>
41 <name>name</name>
42 <type>varchar</type>
43 <length>255</length>
44 <required>true</required>
45 <comment>Variable name/programmatic handle for this set of price fields.</comment>
46 <add>1.8</add>
47 <html>
48 <type>Text</type>
49 </html>
50 </field>
51 <index>
52 <name>UI_name</name>
53 <fieldName>name</fieldName>
54 <unique>true</unique>
55 <add>1.8</add>
56 </index>
57 <field>
58 <name>title</name>
59 <type>varchar</type>
60 <length>255</length>
61 <required>true</required>
62 <localizable>true</localizable>
63 <comment>Displayed title for the Price Set.</comment>
64 <add>1.8</add>
65 <html>
66 <type>Text</type>
67 </html>
68 </field>
69 <field>
70 <name>is_active</name>
71 <type>boolean</type>
72 <default>1</default>
73 <comment>Is this price set active</comment>
74 <add>1.8</add>
75 <html>
76 <type>CheckBox</type>
77 </html>
78 </field>
79 <field>
80 <name>help_pre</name>
81 <type>text</type>
82 <localizable>true</localizable>
83 <comment>Description and/or help text to display before fields in form.</comment>
84 <html>
85 <type>TextArea</type>
86 <rows>4</rows>
87 <cols>80</cols>
88 </html>
89 <add>1.8</add>
90 </field>
91 <field>
92 <name>help_post</name>
93 <type>text</type>
94 <localizable>true</localizable>
95 <comment>Description and/or help text to display after fields in form.</comment>
96 <html>
97 <type>TextArea</type>
98 <rows>4</rows>
99 <cols>80</cols>
100 </html>
101 <add>1.8</add>
102 </field>
103 <field>
104 <name>javascript</name>
105 <type>varchar</type>
106 <length>64</length>
107 <comment>Optional Javascript script function(s) included on the form with this price_set. Can be used for conditional</comment>
108 <add>1.8</add>
109 <html>
110 <type>Text</type>
111 </html>
112 </field>
113 <field>
114 <name>extends</name>
115 <type>varchar</type>
116 <length>255</length>
117 <required>true</required>
118 <comment>What components are using this price set?</comment>
119 <pseudoconstant>
120 <table>civicrm_component</table>
121 <keyColumn>id</keyColumn>
122 <labelColumn>name</labelColumn>
123 </pseudoconstant>
124 <add>3.1</add>
125 <html>
126 <type>Text</type>
127 </html>
128 </field>
129 <field>
130 <name>contribution_type_id</name>
131 <type>int unsigned</type>
132 <default>NULL</default>
133 <comment>FK to Contribution Type(for membership price sets only).</comment>
134 <add>3.4</add>
135 <drop>4.3</drop>
136 </field>
137 <foreignKey>
138 <name>contribution_type_id</name>
139 <table>civicrm_contribution_type</table>
140 <key>id</key>
141 <add>3.4</add>
142 <drop>4.3</drop>
143 <onDelete>SET NULL</onDelete>
144 </foreignKey>
145 <field>
146 <name>financial_type_id</name>
147 <title>Financial Type</title>
148 <type>int unsigned</type>
149 <default>NULL</default>
150 <comment>FK to Financial Type(for membership price sets only).</comment>
151 <add>4.3</add>
152 <pseudoconstant>
153 <table>civicrm_financial_type</table>
154 <keyColumn>id</keyColumn>
155 <labelColumn>name</labelColumn>
156 </pseudoconstant>
157 <html>
158 <type>Select</type>
159 </html>
160 </field>
161 <foreignKey>
162 <name>financial_type_id</name>
163 <table>civicrm_financial_type</table>
164 <key>id</key>
165 <add>4.3</add>
166 <onDelete>SET NULL</onDelete>
167 </foreignKey>
168 <field>
169 <name>is_quick_config</name>
170 <type>boolean</type>
171 <default>0</default>
172 <comment>Is set if edited on Contribution or Event Page rather than through Manage Price Sets</comment>
173 <html>
174 <type>CheckBox</type>
175 </html>
176 <add>4.1</add>
177 </field>
178 <field>
179 <name>is_reserved</name>
180 <type>boolean</type>
181 <default>0</default>
182 <comment>Is this a predefined system price set (i.e. it can not be deleted, edited)?</comment>
183 <add>4.2</add>
184 <html>
185 <type>CheckBox</type>
186 </html>
187 </field>
188 </table>