Merge pull request #19023 from eileenmcnaughton/tt
[civicrm-core.git] / xml / schema / Price / PriceFieldValue.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Price</base>
5 <class>PriceFieldValue</class>
6 <name>civicrm_price_field_value</name>
7 <add>3.3</add>
8 <component>CiviContribute</component>
9 <field>
10 <name>id</name>
11 <title>Price Field Value ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Price Field Value</comment>
15 <add>3.3</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>price_field_id</name>
23 <title>Price Field</title>
24 <type>int unsigned</type>
25 <required>true</required>
26 <comment>FK to civicrm_price_field</comment>
27 <add>3.3</add>
28 </field>
29 <foreignKey>
30 <name>price_field_id</name>
31 <table>civicrm_price_field</table>
32 <key>id</key>
33 <add>3.3</add>
34 </foreignKey>
35 <field>
36 <name>name</name>
37 <type>varchar</type>
38 <title>Name</title>
39 <length>255</length>
40 <comment>Price field option name</comment>
41 <html>
42 <type>Text</type>
43 </html>
44 <add>3.3</add>
45 <default>NULL</default>
46 </field>
47 <field>
48 <name>label</name>
49 <type>varchar</type>
50 <title>Label</title>
51 <length>255</length>
52 <localizable>true</localizable>
53 <comment>Price field option label</comment>
54 <html>
55 <type>Text</type>
56 </html>
57 <add>3.3</add>
58 <default>NULL</default>
59 </field>
60 <field>
61 <name>description</name>
62 <type>text</type>
63 <html>
64 <type>TextArea</type>
65 <rows>2</rows>
66 <cols>60</cols>
67 </html>
68 <default>NULL</default>
69 <localizable>true</localizable>
70 <comment>Price field option description.</comment>
71 <add>3.3</add>
72 </field>
73 <field>
74 <name>help_pre</name>
75 <type>text</type>
76 <html>
77 <type>TextArea</type>
78 <rows>2</rows>
79 <cols>60</cols>
80 </html>
81 <default>NULL</default>
82 <localizable>true</localizable>
83 <comment>Price field option pre help text.</comment>
84 <add>4.7</add>
85 </field>
86 <field>
87 <name>help_post</name>
88 <type>text</type>
89 <html>
90 <type>TextArea</type>
91 <rows>2</rows>
92 <cols>60</cols>
93 </html>
94 <default>NULL</default>
95 <localizable>true</localizable>
96 <comment>Price field option post field help.</comment>
97 <add>4.7</add>
98 </field>
99 <field>
100 <name>amount</name>
101 <type>decimal</type>
102 <title>Amount</title>
103 <length>18,9</length>
104 <html>
105 <type>Text</type>
106 <size>8</size>
107 </html>
108 <required>true</required>
109 <comment>Price field option amount</comment>
110 <add>3.3</add>
111 </field>
112 <field>
113 <name>count</name>
114 <type>int unsigned</type>
115 <default>NULL</default>
116 <comment>Number of participants per field option</comment>
117 <add>3.3</add>
118 <html>
119 <type>Text</type>
120 </html>
121 </field>
122 <field>
123 <name>max_value</name>
124 <type>int unsigned</type>
125 <default>NULL</default>
126 <comment>Max number of participants per field options</comment>
127 <add>3.3</add>
128 <html>
129 <type>Text</type>
130 </html>
131 </field>
132 <field>
133 <name>weight</name>
134 <title>Order</title>
135 <type>int</type>
136 <default>1</default>
137 <comment>Order in which the field options should appear</comment>
138 <add>3.3</add>
139 <html>
140 <type>Text</type>
141 </html>
142 </field>
143 <field>
144 <name>membership_type_id</name>
145 <title>Membership Type</title>
146 <type>int unsigned</type>
147 <default>NULL</default>
148 <comment>FK to Membership Type</comment>
149 <html>
150 <type>Select</type>
151 </html>
152 <add>3.4</add>
153 </field>
154 <foreignKey>
155 <name>membership_type_id</name>
156 <table>civicrm_membership_type</table>
157 <key>id</key>
158 <add>3.4</add>
159 <onDelete>SET NULL</onDelete>
160 </foreignKey>
161 <field>
162 <name>membership_num_terms</name>
163 <type>int unsigned</type>
164 <default>NULL</default>
165 <comment>Number of terms for this membership</comment>
166 <add>4.3</add>
167 <html>
168 <type>Text</type>
169 </html>
170 </field>
171 <field>
172 <name>is_default</name>
173 <title>Is Default Price Field Option?</title>
174 <type>boolean</type>
175 <comment>Is this default price field option</comment>
176 <default>0</default>
177 <add>3.3</add>
178 <html>
179 <type>CheckBox</type>
180 </html>
181 </field>
182 <field>
183 <name>is_active</name>
184 <title>Price Field Value is Active</title>
185 <type>boolean</type>
186 <comment>Is this price field value active</comment>
187 <default>1</default>
188 <add>3.3</add>
189 </field>
190 <field>
191 <name>financial_type_id</name>
192 <title>Financial Type</title>
193 <type>int unsigned</type>
194 <default>NULL</default>
195 <pseudoconstant>
196 <table>civicrm_financial_type</table>
197 <keyColumn>id</keyColumn>
198 <labelColumn>name</labelColumn>
199 </pseudoconstant>
200 <comment>FK to Financial Type.</comment>
201 <add>4.3</add>
202 <html>
203 <type>Select</type>
204 </html>
205 </field>
206 <foreignKey>
207 <name>financial_type_id</name>
208 <table>civicrm_financial_type</table>
209 <key>id</key>
210 <onDelete>SET NULL</onDelete>
211 <add>4.3</add>
212 </foreignKey>
213 <field>
214 <name>non_deductible_amount</name>
215 <title>Non-deductible Amount</title>
216 <type>decimal</type>
217 <default>0.0</default>
218 <headerPattern>/non?.?deduct/i</headerPattern>
219 <dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
220 <required>true</required>
221 <comment>Portion of total amount which is NOT tax deductible.</comment>
222 <add>4.7</add>
223 <html>
224 <type>Text</type>
225 </html>
226 </field>
227 <field>
228 <name>visibility_id</name>
229 <title>Price Field Option Visibility</title>
230 <type>int unsigned</type>
231 <default>1</default>
232 <comment>Implicit FK to civicrm_option_group with name = 'visibility'</comment>
233 <add>4.7</add>
234 <pseudoconstant>
235 <optionGroupName>visibility</optionGroupName>
236 </pseudoconstant>
237 <html>
238 <type>Select</type>
239 </html>
240 </field>
241 </table>