Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-05-28-14-04-12
[civicrm-core.git] / xml / schema / Price / FieldValue.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Price</base>
5 <class>FieldValue</class>
6 <name>civicrm_price_field_value</name>
7 <add>3.3</add>
8 <field>
9 <name>id</name>
10 <type>int unsigned</type>
11 <required>true</required>
12 <comment>Price Field Value</comment>
13 <add>3.3</add>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>price_field_id</name>
21 <type>int unsigned</type>
22 <required>true</required>
23 <comment>FK to civicrm_price_field</comment>
24 <add>3.3</add>
25 </field>
26 <foreignKey>
27 <name>price_field_id</name>
28 <table>civicrm_price_field</table>
29 <key>id</key>
30 <add>3.3</add>
31 </foreignKey>
32 <field>
33 <name>name</name>
34 <type>varchar</type>
35 <title>Name</title>
36 <length>255</length>
37 <comment>Price field option name</comment>
38 <add>3.3</add>
39 </field>
40 <field>
41 <name>label</name>
42 <type>varchar</type>
43 <title>Label</title>
44 <length>255</length>
45 <localizable>true</localizable>
46 <comment>Price field option label</comment>
47 <add>3.3</add>
48 </field>
49 <field>
50 <name>description</name>
51 <type>text</type>
52 <htmlType>textarea</htmlType>
53 <default>NULL</default>
54 <rows>2</rows>
55 <cols>60</cols>
56 <localizable>true</localizable>
57 <comment>>Price field option description.</comment>
58 <add>3.3</add>
59 </field>
60 <field>
61 <name>amount</name>
62 <type>varchar</type>
63 <title>Amount</title>
64 <length>512</length>
65 <size>EIGHT</size>
66 <required>true</required>
67 <comment>Price field option amount</comment>
68 <add>3.3</add>
69 </field>
70 <field>
71 <name>count</name>
72 <type>int unsigned</type>
73 <default>NULL</default>
74 <comment>Number of participants per field option</comment>
75 <add>3.3</add>
76 </field>
77 <field>
78 <name>max_value</name>
79 <type>int unsigned</type>
80 <default>NULL</default>
81 <comment>Max number of participants per field options</comment>
82 <add>3.3</add>
83 </field>
84 <field>
85 <name>weight</name>
86 <type>int</type>
87 <default>1</default>
88 <comment>Order in which the field options should appear</comment>
89 <add>3.3</add>
90 </field>
91 <field>
92 <name>membership_type_id</name>
93 <type>int unsigned</type>
94 <default>NULL</default>
95 <comment>FK to Membership Type</comment>
96 <add>3.4</add>
97 </field>
98 <foreignKey>
99 <name>membership_type_id</name>
100 <table>civicrm_membership_type</table>
101 <key>id</key>
102 <add>3.4</add>
103 <onDelete>SET NULL</onDelete>
104 </foreignKey>
105 <field>
106 <name>membership_num_terms</name>
107 <type>int unsigned</type>
108 <default>NULL</default>
109 <comment>Number of terms for this membership</comment>
110 <add>4.3</add>
111 </field>
112 <field>
113 <name>is_default</name>
114 <type>boolean</type>
115 <comment>Is this default price field option</comment>
116 <default>0</default>
117 <add>3.3</add>
118 </field>
119 <field>
120 <name>is_active</name>
121 <type>boolean</type>
122 <comment>Is this price field value active</comment>
123 <default>1</default>
124 <add>3.3</add>
125 </field>
126 <field>
127 <name>financial_type_id</name>
128 <title>Financial Type</title>
129 <type>int unsigned</type>
130 <default>NULL</default>
131 <comment>FK to Financial Type.</comment>
132 <add>4.3</add>
133 </field>
134 <foreignKey>
135 <name>financial_type_id</name>
136 <table>civicrm_financial_type</table>
137 <key>id</key>
138 <onDelete>SET NULL</onDelete>
139 <add>4.3</add>
140 </foreignKey>
141 <field>
142 <name>deductible_amount</name>
143 <title>Deductible Amount</title>
144 <type>decimal</type>
145 <default>0.0</default>
146 <headerPattern>/unit?.?amoun/i</headerPattern>
147 <dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
148 <required>true</required>
149 <comment>Tax-deductible portion of the amount</comment>
150 <add>4.1</add>
151 </field>
152 </table>
153