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