Merge pull request #21307 from civicrm/5.41
[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 <component>CiviContribute</component>
10 <field>
11 <name>id</name>
12 <title>Price Set</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Price Set</comment>
16 <html>
17 <type>Number</type>
18 <label>ID</label>
19 </html>
20 <add>1.8</add>
21 </field>
22 <primaryKey>
23 <name>id</name>
24 <autoincrement>true</autoincrement>
25 </primaryKey>
26 <field>
27 <name>domain_id</name>
28 <title>Domain ID</title>
29 <type>int unsigned</type>
30 <pseudoconstant>
31 <table>civicrm_domain</table>
32 <keyColumn>id</keyColumn>
33 <labelColumn>name</labelColumn>
34 </pseudoconstant>
35 <comment>Which Domain is this price-set for</comment>
36 <add>3.1</add>
37 <html>
38 <type>Text</type>
39 <label>Domain</label>
40 </html>
41 </field>
42 <foreignKey>
43 <name>domain_id</name>
44 <table>civicrm_domain</table>
45 <key>id</key>
46 <add>3.1</add>
47 </foreignKey>
48 <field>
49 <name>name</name>
50 <type>varchar</type>
51 <length>255</length>
52 <required>true</required>
53 <comment>Variable name/programmatic handle for this set of price fields.</comment>
54 <add>1.8</add>
55 <html>
56 <type>Text</type>
57 <label>Name</label>
58 </html>
59 </field>
60 <index>
61 <name>UI_name</name>
62 <fieldName>name</fieldName>
63 <unique>true</unique>
64 <add>1.8</add>
65 </index>
66 <field>
67 <name>title</name>
68 <title>Price Set Title</title>
69 <type>varchar</type>
70 <length>255</length>
71 <required>true</required>
72 <localizable>true</localizable>
73 <comment>Displayed title for the Price Set.</comment>
74 <add>1.8</add>
75 <html>
76 <type>Text</type>
77 </html>
78 </field>
79 <field>
80 <name>is_active</name>
81 <title>Price Set Is Active?</title>
82 <type>boolean</type>
83 <default>1</default>
84 <comment>Is this price set active</comment>
85 <add>1.8</add>
86 <html>
87 <type>CheckBox</type>
88 </html>
89 </field>
90 <field>
91 <name>help_pre</name>
92 <title>Price Set Pre Help</title>
93 <type>text</type>
94 <localizable>true</localizable>
95 <comment>Description and/or help text to display before 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>help_post</name>
105 <title>Price Set Post Help</title>
106 <type>text</type>
107 <localizable>true</localizable>
108 <comment>Description and/or help text to display after fields in form.</comment>
109 <html>
110 <type>TextArea</type>
111 <rows>4</rows>
112 <cols>80</cols>
113 </html>
114 <add>1.8</add>
115 </field>
116 <field>
117 <name>javascript</name>
118 <title>Price Set Javascript</title>
119 <type>varchar</type>
120 <length>64</length>
121 <comment>Optional Javascript script function(s) included on the form with this price_set. Can be used for conditional</comment>
122 <add>1.8</add>
123 <html>
124 <type>Text</type>
125 </html>
126 </field>
127 <field>
128 <name>extends</name>
129 <title>Price Set Extends</title>
130 <type>varchar</type>
131 <length>255</length>
132 <required>true</required>
133 <comment>What components are using this price set?</comment>
134 <pseudoconstant>
135 <table>civicrm_component</table>
136 <keyColumn>id</keyColumn>
137 <labelColumn>name</labelColumn>
138 </pseudoconstant>
139 <add>3.1</add>
140 <html>
141 <type>Text</type>
142 </html>
143 </field>
144 <field>
145 <name>financial_type_id</name>
146 <title>Financial Type ID</title>
147 <type>int unsigned</type>
148 <default>NULL</default>
149 <comment>FK to Financial Type(for membership price sets only).</comment>
150 <add>4.3</add>
151 <pseudoconstant>
152 <table>civicrm_financial_type</table>
153 <keyColumn>id</keyColumn>
154 <labelColumn>name</labelColumn>
155 </pseudoconstant>
156 <html>
157 <type>Select</type>
158 <label>Financial Type</label>
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 <title>Is Price Set Quick Config?</title>
171 <type>boolean</type>
172 <default>0</default>
173 <comment>Is set if edited on Contribution or Event Page rather than through Manage Price Sets</comment>
174 <html>
175 <type>CheckBox</type>
176 </html>
177 <add>4.1</add>
178 </field>
179 <field>
180 <name>is_reserved</name>
181 <title>Price Set Is Reserved</title>
182 <type>boolean</type>
183 <default>0</default>
184 <comment>Is this a predefined system price set (i.e. it can not be deleted, edited)?</comment>
185 <add>4.2</add>
186 <html>
187 <type>CheckBox</type>
188 </html>
189 </field>
190 <field>
191 <name>min_amount</name>
192 <title>Minimum Amount</title>
193 <type>decimal</type>
194 <default>0.0</default>
195 <comment>Minimum Amount required for this set.</comment>
196 <add>4.7</add>
197 <html>
198 <type>Text</type>
199 </html>
200 </field>
201 </table>