Merge pull request #6812 from eileenmcnaughton/CRM-17075
[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>
8 <field>
9 <name>id</name>
021ad66c 10 <title>Price Field Value ID</title>
6a488035
TO
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>
021ad66c 22 <title>Price Field</title>
6a488035
TO
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>
614d72ec 40 <html>
41 <type>Text</type>
42 </html>
6a488035
TO
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>
614d72ec 52 <html>
53 <type>Text</type>
6cc0b7bd 54 </html>
6a488035
TO
55 <add>3.3</add>
56 </field>
57 <field>
58 <name>description</name>
59 <type>text</type>
7deea513 60 <html>
61 <type>TextArea</type>
614d72ec 62 <rows>2</rows>
5435b737 63 <cols>60</cols>
614d72ec 64 </html>
6cc0b7bd 65 <default>NULL</default>
6a488035
TO
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>
614d72ec 75 <html>
76 <type>Text</type>
54f5e87f 77 <size>8</size>
614d72ec 78 </html>
6a488035
TO
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>
614d72ec 89 <html>
90 <type>Text</type>
91 </html>
6a488035
TO
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>
614d72ec 99 <html>
100 <type>Text</type>
101 </html>
6a488035
TO
102 </field>
103 <field>
104 <name>weight</name>
7ecddde4 105 <title>Order</title>
6a488035
TO
106 <type>int</type>
107 <default>1</default>
108 <comment>Order in which the field options should appear</comment>
109 <add>3.3</add>
614d72ec 110 <html>
111 <type>Text</type>
112 </html>
6a488035
TO
113 </field>
114 <field>
115 <name>membership_type_id</name>
021ad66c 116 <title>Membership Type</title>
6a488035
TO
117 <type>int unsigned</type>
118 <default>NULL</default>
119 <comment>FK to Membership Type</comment>
614d72ec 120 <html>
121 <type>Select</type>
122 </html>
6a488035
TO
123 <add>3.4</add>
124 </field>
6f3f0f22 125 <foreignKey>
126 <name>membership_type_id</name>
127 <table>civicrm_membership_type</table>
6a488035
TO
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>
614d72ec 138 <html>
139 <type>Text</type>
140 </html>
6a488035
TO
141 </field>
142 <field>
143 <name>is_default</name>
021ad66c 144 <title>Is Default Price Field Option?</title>
6a488035
TO
145 <type>boolean</type>
146 <comment>Is this default price field option</comment>
147 <default>0</default>
148 <add>3.3</add>
614d72ec 149 <html>
150 <type>CheckBox</type>
151 </html>
6a488035
TO
152 </field>
153 <field>
154 <name>is_active</name>
021ad66c 155 <title>Price Field Value is Active</title>
6a488035
TO
156 <type>boolean</type>
157 <comment>Is this price field value active</comment>
158 <default>1</default>
159 <add>3.3</add>
160 </field>
6f3f0f22 161 <field>
162 <name>financial_type_id</name>
6a488035 163 <title>Financial Type</title>
6f3f0f22 164 <type>int unsigned</type>
6a488035 165 <default>NULL</default>
6cc0b7bd
EM
166 <pseudoconstant>
167 <table>civicrm_financial_type</table>
168 <keyColumn>id</keyColumn>
169 <labelColumn>name</labelColumn>
170 </pseudoconstant>
6a488035 171 <comment>FK to Financial Type.</comment>
6f3f0f22 172 <add>4.3</add>
614d72ec 173 <html>
174 <type>Select</type>
175 </html>
6f3f0f22 176 </field>
177 <foreignKey>
178 <name>financial_type_id</name>
179 <table>civicrm_financial_type</table>
180 <key>id</key>
6a488035
TO
181 <onDelete>SET NULL</onDelete>
182 <add>4.3</add>
6f3f0f22 183 </foreignKey>
184 <field>
185 <name>deductible_amount</name>
6a488035 186 <title>Deductible Amount</title>
6f3f0f22 187 <type>decimal</type>
6a488035
TO
188 <default>0.0</default>
189 <headerPattern>/unit?.?amoun/i</headerPattern>
190 <dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
6f3f0f22 191 <required>true</required>
6a488035 192 <comment>Tax-deductible portion of the amount</comment>
6f3f0f22 193 <add>4.1</add>
614d72ec 194 <html>
195 <type>Text</type>
196 </html>
6f3f0f22 197 </field>
6a488035
TO
198</table>
199