CRM-13497 - getting there on main tables
[civicrm-core.git] / xml / schema / Price / PriceSet.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Price</base>
9da8dc8c 5 <class>PriceSet</class>
6a488035
TO
6 <name>civicrm_price_set</name>
7 <add>1.8</add>
8 <log>true</log>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Price Set</comment>
14 <add>1.8</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>domain_id</name>
22 <type>int unsigned</type>
23 <comment>Which Domain is this price-set for</comment>
24 <add>3.1</add>
614d72ec 25 <html>
26 <type>Text</type>
27 </html>
6a488035
TO
28 </field>
29 <foreignKey>
30 <name>domain_id</name>
31 <table>civicrm_domain</table>
32 <key>id</key>
33 <add>3.1</add>
34 </foreignKey>
35 <field>
36 <name>name</name>
37 <type>varchar</type>
38 <length>255</length>
39 <required>true</required>
40 <comment>Variable name/programmatic handle for this set of price fields.</comment>
41 <add>1.8</add>
614d72ec 42 <html>
43 <type>Text</type>
44 </html>
6a488035
TO
45 </field>
46 <index>
47 <name>UI_name</name>
48 <fieldName>name</fieldName>
49 <unique>true</unique>
50 <add>1.8</add>
51 </index>
52 <field>
53 <name>title</name>
54 <type>varchar</type>
55 <length>255</length>
56 <required>true</required>
57 <localizable>true</localizable>
58 <comment>Displayed title for the Price Set.</comment>
59 <add>1.8</add>
614d72ec 60 <html>
61 <type>Text</type>
62 </html>
6a488035
TO
63 </field>
64 <field>
65 <name>is_active</name>
66 <type>boolean</type>
67 <default>1</default>
68 <comment>Is this price set active</comment>
69 <add>1.8</add>
614d72ec 70 <html>
71 <type>CheckBox</type>
72 </html>
6a488035
TO
73 </field>
74 <field>
75 <name>help_pre</name>
76 <type>text</type>
77 <localizable>true</localizable>
78 <comment>Description and/or help text to display before fields in form.</comment>
7deea513 79 <html>
80 <type>TextArea</type>
817807ab 81 <rows>4</rows>
82 <cols>80</cols>
7deea513 83 </html>
6a488035
TO
84 <add>1.8</add>
85 </field>
86 <field>
87 <name>help_post</name>
88 <type>text</type>
89 <localizable>true</localizable>
90 <comment>Description and/or help text to display after fields in form.</comment>
7deea513 91 <html>
92 <type>TextArea</type>
817807ab 93 <rows>4</rows>
94 <cols>80</cols>
7deea513 95 </html>
6a488035
TO
96 <add>1.8</add>
97 </field>
98 <field>
99 <name>javascript</name>
100 <type>varchar</type>
101 <length>64</length>
102 <comment>Optional Javascript script function(s) included on the form with this price_set. Can be used for conditional</comment>
103 <add>1.8</add>
614d72ec 104 <html>
105 <type>Text</type>
106 </html>
6a488035
TO
107 </field>
108 <field>
109 <name>extends</name>
110 <type>varchar</type>
111 <length>255</length>
112 <required>true</required>
113 <comment>What components are using this price set?</comment>
114 <add>3.1</add>
614d72ec 115 <html>
116 <type>Text</type>
117 </html>
6a488035 118 </field>
6f3f0f22 119 <field>
120 <name>contribution_type_id</name>
121 <type>int unsigned</type>
6a488035
TO
122 <default>NULL</default>
123 <comment>FK to Contribution Type(for membership price sets only).</comment>
6f3f0f22 124 <add>3.4</add>
125 <drop>4.3</drop>
126 </field>
127 <foreignKey>
128 <name>contribution_type_id</name>
129 <table>civicrm_contribution_type</table>
130 <key>id</key>
131 <add>3.4</add>
132 <drop>4.3</drop>
6a488035
TO
133 <onDelete>SET NULL</onDelete>
134 </foreignKey>
6f3f0f22 135 <field>
136 <name>financial_type_id</name>
6a488035 137 <title>Financial Type</title>
6f3f0f22 138 <type>int unsigned</type>
6a488035
TO
139 <default>NULL</default>
140 <comment>FK to Financial Type(for membership price sets only).</comment>
6f3f0f22 141 <add>4.3</add>
614d72ec 142 <html>
143 <type>Select</type>
144 </html>
6f3f0f22 145 </field>
146 <foreignKey>
147 <name>financial_type_id</name>
148 <table>civicrm_financial_type</table>
149 <key>id</key>
150 <add>4.3</add>
6a488035 151 <onDelete>SET NULL</onDelete>
6f3f0f22 152 </foreignKey>
6a488035
TO
153 <field>
154 <name>is_quick_config</name>
6f3f0f22 155 <type>boolean</type>
6a488035
TO
156 <default>0</default>
157 <comment>Is set if edited on Contribution or Event Page rather than through Manage Price Sets</comment>
614d72ec 158 <html>
159 <type>CheckBox</type>
160 </html>
6a488035
TO
161 <add>4.1</add>
162 </field>
163 <field>
164 <name>is_reserved</name>
165 <type>boolean</type>
166 <default>0</default>
167 <comment>Is this a predefined system price set (i.e. it can not be deleted, edited)?</comment>
168 <add>4.2</add>
614d72ec 169 <html>
170 <type>CheckBox</type>
171 </html>
6a488035
TO
172 </field>
173</table>