Merge remote-tracking branch 'upstream/4.6' into 4.6-master-2015-11-16-01-17-32
[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>amount</name>
72 <type>varchar</type>
73 <title>Amount</title>
74 <length>512</length>
75 <html>
76 <type>Text</type>
77 <size>8</size>
78 </html>
79 <required>true</required>
80 <comment>Price field option amount</comment>
81 <add>3.3</add>
82 </field>
83 <field>
84 <name>count</name>
85 <type>int unsigned</type>
86 <default>NULL</default>
87 <comment>Number of participants per field option</comment>
88 <add>3.3</add>
89 <html>
90 <type>Text</type>
91 </html>
92 </field>
93 <field>
94 <name>max_value</name>
95 <type>int unsigned</type>
96 <default>NULL</default>
97 <comment>Max number of participants per field options</comment>
98 <add>3.3</add>
99 <html>
100 <type>Text</type>
101 </html>
102 </field>
103 <field>
104 <name>weight</name>
105 <title>Order</title>
106 <type>int</type>
107 <default>1</default>
108 <comment>Order in which the field options should appear</comment>
109 <add>3.3</add>
110 <html>
111 <type>Text</type>
112 </html>
113 </field>
114 <field>
115 <name>membership_type_id</name>
116 <title>Membership Type</title>
117 <type>int unsigned</type>
118 <default>NULL</default>
119 <comment>FK to Membership Type</comment>
120 <html>
121 <type>Select</type>
122 </html>
123 <add>3.4</add>
124 </field>
125 <foreignKey>
126 <name>membership_type_id</name>
127 <table>civicrm_membership_type</table>
128 <key>id</key>
129 <add>3.4</add>
130 <onDelete>SET NULL</onDelete>
131 </foreignKey>
132 <field>
133 <name>membership_num_terms</name>
134 <type>int unsigned</type>
135 <default>NULL</default>
136 <comment>Number of terms for this membership</comment>
137 <add>4.3</add>
138 <html>
139 <type>Text</type>
140 </html>
141 </field>
142 <field>
143 <name>is_default</name>
144 <title>Is Default Price Field Option?</title>
145 <type>boolean</type>
146 <comment>Is this default price field option</comment>
147 <default>0</default>
148 <add>3.3</add>
149 <html>
150 <type>CheckBox</type>
151 </html>
152 </field>
153 <field>
154 <name>is_active</name>
155 <title>Price Field Value is Active</title>
156 <type>boolean</type>
157 <comment>Is this price field value active</comment>
158 <default>1</default>
159 <add>3.3</add>
160 </field>
161 <field>
162 <name>financial_type_id</name>
163 <title>Financial Type</title>
164 <type>int unsigned</type>
165 <default>NULL</default>
166 <pseudoconstant>
167 <table>civicrm_financial_type</table>
168 <keyColumn>id</keyColumn>
169 <labelColumn>name</labelColumn>
170 </pseudoconstant>
171 <comment>FK to Financial Type.</comment>
172 <add>4.3</add>
173 <html>
174 <type>Select</type>
175 </html>
176 </field>
177 <foreignKey>
178 <name>financial_type_id</name>
179 <table>civicrm_financial_type</table>
180 <key>id</key>
181 <onDelete>SET NULL</onDelete>
182 <add>4.3</add>
183 </foreignKey>
184 <field>
185 <name>deductible_amount</name>
186 <title>Deductible Amount</title>
187 <type>decimal</type>
188 <default>0.0</default>
189 <headerPattern>/unit?.?amoun/i</headerPattern>
190 <dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
191 <required>true</required>
192 <comment>Tax-deductible portion of the amount</comment>
193 <add>4.1</add>
194 <html>
195 <type>Text</type>
196 </html>
197 </field>
198 </table>
199