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