Merge pull request #19146 from JMAConsulting/issue-2174
[civicrm-core.git] / xml / schema / Price / PriceFieldValue.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Price</base>
9da8dc8c 5 <class>PriceFieldValue</class>
6a488035
TO
6 <name>civicrm_price_field_value</name>
7 <add>3.3</add>
d31fb4e3 8 <component>CiviContribute</component>
6a488035
TO
9 <field>
10 <name>id</name>
021ad66c 11 <title>Price Field Value ID</title>
6a488035
TO
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>
021ad66c 23 <title>Price Field</title>
6a488035
TO
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>
614d72ec 41 <html>
42 <type>Text</type>
43 </html>
6a488035 44 <add>3.3</add>
7154c2c0 45 <default>NULL</default>
6a488035
TO
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>
614d72ec 54 <html>
55 <type>Text</type>
6cc0b7bd 56 </html>
6a488035 57 <add>3.3</add>
7154c2c0 58 <default>NULL</default>
6a488035
TO
59 </field>
60 <field>
61 <name>description</name>
62 <type>text</type>
7deea513 63 <html>
64 <type>TextArea</type>
614d72ec 65 <rows>2</rows>
5435b737 66 <cols>60</cols>
614d72ec 67 </html>
6cc0b7bd 68 <default>NULL</default>
6a488035 69 <localizable>true</localizable>
509c8089 70 <comment>Price field option description.</comment>
6a488035
TO
71 <add>3.3</add>
72 </field>
5bfef8fa
SL
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>
6a488035
TO
99 <field>
100 <name>amount</name>
25e0f950 101 <type>decimal</type>
6a488035 102 <title>Amount</title>
25e0f950 103 <length>18,9</length>
614d72ec 104 <html>
105 <type>Text</type>
54f5e87f 106 <size>8</size>
614d72ec 107 </html>
6a488035
TO
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>
614d72ec 118 <html>
119 <type>Text</type>
120 </html>
6a488035
TO
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>
614d72ec 128 <html>
129 <type>Text</type>
130 </html>
6a488035
TO
131 </field>
132 <field>
133 <name>weight</name>
7ecddde4 134 <title>Order</title>
6a488035
TO
135 <type>int</type>
136 <default>1</default>
137 <comment>Order in which the field options should appear</comment>
138 <add>3.3</add>
614d72ec 139 <html>
140 <type>Text</type>
141 </html>
6a488035
TO
142 </field>
143 <field>
144 <name>membership_type_id</name>
021ad66c 145 <title>Membership Type</title>
6a488035
TO
146 <type>int unsigned</type>
147 <default>NULL</default>
148 <comment>FK to Membership Type</comment>
614d72ec 149 <html>
150 <type>Select</type>
151 </html>
6a488035
TO
152 <add>3.4</add>
153 </field>
6f3f0f22 154 <foreignKey>
155 <name>membership_type_id</name>
156 <table>civicrm_membership_type</table>
6a488035
TO
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>
614d72ec 167 <html>
168 <type>Text</type>
169 </html>
6a488035
TO
170 </field>
171 <field>
172 <name>is_default</name>
021ad66c 173 <title>Is Default Price Field Option?</title>
6a488035
TO
174 <type>boolean</type>
175 <comment>Is this default price field option</comment>
176 <default>0</default>
177 <add>3.3</add>
614d72ec 178 <html>
179 <type>CheckBox</type>
180 </html>
6a488035
TO
181 </field>
182 <field>
183 <name>is_active</name>
021ad66c 184 <title>Price Field Value is Active</title>
6a488035
TO
185 <type>boolean</type>
186 <comment>Is this price field value active</comment>
187 <default>1</default>
188 <add>3.3</add>
189 </field>
6f3f0f22 190 <field>
191 <name>financial_type_id</name>
6a488035 192 <title>Financial Type</title>
6f3f0f22 193 <type>int unsigned</type>
6a488035 194 <default>NULL</default>
6cc0b7bd
EM
195 <pseudoconstant>
196 <table>civicrm_financial_type</table>
197 <keyColumn>id</keyColumn>
198 <labelColumn>name</labelColumn>
199 </pseudoconstant>
6a488035 200 <comment>FK to Financial Type.</comment>
6f3f0f22 201 <add>4.3</add>
614d72ec 202 <html>
203 <type>Select</type>
204 </html>
6f3f0f22 205 </field>
206 <foreignKey>
207 <name>financial_type_id</name>
208 <table>civicrm_financial_type</table>
209 <key>id</key>
6a488035
TO
210 <onDelete>SET NULL</onDelete>
211 <add>4.3</add>
6f3f0f22 212 </foreignKey>
213 <field>
5afce5ad 214 <name>non_deductible_amount</name>
215 <title>Non-deductible Amount</title>
6f3f0f22 216 <type>decimal</type>
6a488035 217 <default>0.0</default>
5afce5ad 218 <headerPattern>/non?.?deduct/i</headerPattern>
6a488035 219 <dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
6f3f0f22 220 <required>true</required>
5afce5ad 221 <comment>Portion of total amount which is NOT tax deductible.</comment>
222 <add>4.7</add>
614d72ec 223 <html>
224 <type>Text</type>
225 </html>
6f3f0f22 226 </field>
2db35bf6
AF
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>
6a488035 241</table>