Merge pull request #20969 from eileenmcnaughton/mem
[civicrm-core.git] / xml / schema / Contribute / Premium.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Contribute</base>
5 <class>Premium</class>
6 <comment>table - settings for the Premiums features for a given contribution page </comment>
7 <name>civicrm_premiums</name>
8 <add>1.4</add>
9 <log>true</log>
10 <component>CiviContribute</component>
11 <field>
12 <name>id</name>
13 <title>Premium ID</title>
14 <type>int unsigned</type>
15 <required>true</required>
16 <html>
17 <type>Number</type>
18 </html>
19 <add>1.4</add>
20 </field>
21 <primaryKey>
22 <name>id</name>
23 <autoincrement>true</autoincrement>
24 </primaryKey>
25 <field>
26 <name>entity_table</name>
27 <title>Premium Entity</title>
28 <type>varchar</type>
29 <length>64</length>
30 <required>true</required>
31 <comment>Joins these premium settings to another object. Always civicrm_contribution_page for now.</comment>
32 <add>1.4</add>
33 </field>
34 <field>
35 <name>entity_id</name>
36 <title>Premium entity ID</title>
37 <type>int unsigned</type>
38 <required>true</required>
39 <add>1.4</add>
40 </field>
41 <dynamicForeignKey>
42 <idColumn>entity_id</idColumn>
43 <typeColumn>entity_table</typeColumn>
44 <add>1.4</add>
45 </dynamicForeignKey>
46 <field>
47 <name>premiums_active </name>
48 <title>Is Premium Active?</title>
49 <type>boolean</type>
50 <default>0</default>
51 <required>true</required>
52 <comment>Is the Premiums feature enabled for this page?</comment>
53 <add>1.4</add>
54 </field>
55 <field>
56 <name>premiums_intro_title</name>
57 <type>varchar</type>
58 <title>Title for Premiums section</title>
59 <length>255</length>
60 <localizable>true</localizable>
61 <comment>Title for Premiums section.</comment>
62 <add>1.4</add>
63 </field>
64 <field>
65 <name>premiums_intro_text</name>
66 <title>Premium Introductory Text</title>
67 <type>text</type>
68 <localizable>true</localizable>
69 <comment>Displayed in &lt;div&gt; at top of Premiums section of page. Text and HTML allowed.</comment>
70 <add>1.4</add>
71 </field>
72 <field>
73 <name>premiums_contact_email</name>
74 <title>Premium Contact Email</title>
75 <type>varchar</type>
76 <length>100</length>
77 <comment>This email address is included in receipts if it is populated and a premium has been selected.</comment>
78 <add>1.4</add>
79 </field>
80 <field>
81 <name>premiums_contact_phone</name>
82 <title>Premiums Contact Phone</title>
83 <type>varchar</type>
84 <length>50</length>
85 <comment>This phone number is included in receipts if it is populated and a premium has been selected.</comment>
86 <add>1.4</add>
87 </field>
88 <field>
89 <name>premiums_display_min_contribution</name>
90 <title>Display Minimum Contribution?</title>
91 <type>boolean</type>
92 <required>true</required>
93 <comment>Boolean. Should we automatically display minimum contribution amount text after the premium descriptions.</comment>
94 <add>1.4</add>
95 </field>
96 <field>
97 <name>premiums_nothankyou_label</name>
98 <title>No Thank-you Text</title>
99 <type>varchar</type>
100 <length>255</length>
101 <localizable>true</localizable>
102 <comment>Label displayed for No Thank-you option in premiums block (e.g. No thank you)</comment>
103 <add>4.3</add>
104 </field>
105 <field>
106 <name>premiums_nothankyou_position</name>
107 <title>No Thank-you Position</title>
108 <type>int unsigned</type>
109 <default>1</default>
110 <add>4.3</add>
111 </field>
112 </table>