CRM-13497 - Move rows and cols
[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>
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>
7deea513 52 <html>
53 <type>TextArea</type>
54 </html>
55
6a488035
TO
56 <default>NULL</default>
57 <rows>2</rows>
58 <cols>60</cols>
59 <localizable>true</localizable>
60 <comment>>Price field option description.</comment>
61 <add>3.3</add>
62 </field>
63 <field>
64 <name>amount</name>
65 <type>varchar</type>
66 <title>Amount</title>
67 <length>512</length>
68 <size>EIGHT</size>
69 <required>true</required>
70 <comment>Price field option amount</comment>
71 <add>3.3</add>
72 </field>
73 <field>
74 <name>count</name>
75 <type>int unsigned</type>
76 <default>NULL</default>
77 <comment>Number of participants per field option</comment>
78 <add>3.3</add>
79 </field>
80 <field>
81 <name>max_value</name>
82 <type>int unsigned</type>
83 <default>NULL</default>
84 <comment>Max number of participants per field options</comment>
85 <add>3.3</add>
86 </field>
87 <field>
88 <name>weight</name>
89 <type>int</type>
90 <default>1</default>
91 <comment>Order in which the field options should appear</comment>
92 <add>3.3</add>
93 </field>
94 <field>
95 <name>membership_type_id</name>
96 <type>int unsigned</type>
97 <default>NULL</default>
98 <comment>FK to Membership Type</comment>
99 <add>3.4</add>
100 </field>
6f3f0f22 101 <foreignKey>
102 <name>membership_type_id</name>
103 <table>civicrm_membership_type</table>
6a488035
TO
104 <key>id</key>
105 <add>3.4</add>
106 <onDelete>SET NULL</onDelete>
107 </foreignKey>
108 <field>
109 <name>membership_num_terms</name>
110 <type>int unsigned</type>
111 <default>NULL</default>
112 <comment>Number of terms for this membership</comment>
113 <add>4.3</add>
114 </field>
115 <field>
116 <name>is_default</name>
117 <type>boolean</type>
118 <comment>Is this default price field option</comment>
119 <default>0</default>
120 <add>3.3</add>
121 </field>
122 <field>
123 <name>is_active</name>
124 <type>boolean</type>
125 <comment>Is this price field value active</comment>
126 <default>1</default>
127 <add>3.3</add>
128 </field>
6f3f0f22 129 <field>
130 <name>financial_type_id</name>
6a488035 131 <title>Financial Type</title>
6f3f0f22 132 <type>int unsigned</type>
6a488035
TO
133 <default>NULL</default>
134 <comment>FK to Financial Type.</comment>
6f3f0f22 135 <add>4.3</add>
136 </field>
137 <foreignKey>
138 <name>financial_type_id</name>
139 <table>civicrm_financial_type</table>
140 <key>id</key>
6a488035
TO
141 <onDelete>SET NULL</onDelete>
142 <add>4.3</add>
6f3f0f22 143 </foreignKey>
144 <field>
145 <name>deductible_amount</name>
6a488035 146 <title>Deductible Amount</title>
6f3f0f22 147 <type>decimal</type>
6a488035
TO
148 <default>0.0</default>
149 <headerPattern>/unit?.?amoun/i</headerPattern>
150 <dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
6f3f0f22 151 <required>true</required>
6a488035 152 <comment>Tax-deductible portion of the amount</comment>
6f3f0f22 153 <add>4.1</add>
154 </field>
6a488035
TO
155</table>
156