Merge pull request #21138 from civicrm/5.41
[civicrm-core.git] / xml / schema / Contribute / Premium.xml
CommitLineData
3c7d2158 1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Contribute</base>
6a488035
TO
5 <class>Premium</class>
6 <comment>table - settings for the Premiums features for a given contribution page </comment>
3c7d2158 7 <name>civicrm_premiums</name>
8 <add>1.4</add>
6a488035 9 <log>true</log>
d31fb4e3 10 <component>CiviContribute</component>
3c7d2158 11 <field>
f84ce22c 12 <name>id</name>
0d94665e 13 <title>Premium ID</title>
f84ce22c
EM
14 <type>int unsigned</type>
15 <required>true</required>
0481e12c
A
16 <html>
17 <type>Number</type>
18 </html>
f84ce22c 19 <add>1.4</add>
3c7d2158 20 </field>
21 <primaryKey>
f84ce22c
EM
22 <name>id</name>
23 <autoincrement>true</autoincrement>
3c7d2158 24 </primaryKey>
6a488035 25 <field>
f84ce22c 26 <name>entity_table</name>
0d94665e 27 <title>Premium Entity</title>
f84ce22c
EM
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>
6a488035
TO
33 </field>
34 <field>
f84ce22c 35 <name>entity_id</name>
0d94665e 36 <title>Premium entity ID</title>
f84ce22c
EM
37 <type>int unsigned</type>
38 <required>true</required>
39 <add>1.4</add>
6a488035 40 </field>
71e5aa5c 41 <dynamicForeignKey>
f84ce22c
EM
42 <idColumn>entity_id</idColumn>
43 <typeColumn>entity_table</typeColumn>
44 <add>1.4</add>
71e5aa5c 45 </dynamicForeignKey>
3c7d2158 46 <field>
f84ce22c 47 <name>premiums_active </name>
0d94665e 48 <title>Is Premium Active?</title>
f84ce22c
EM
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>
3c7d2158 54 </field>
55 <field>
f84ce22c
EM
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>
3c7d2158 63 </field>
64 <field>
f84ce22c 65 <name>premiums_intro_text</name>
0d94665e 66 <title>Premium Introductory Text</title>
f84ce22c
EM
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>
3c7d2158 71 </field>
f84ce22c
EM
72 <field>
73 <name>premiums_contact_email</name>
0d94665e 74 <title>Premium Contact Email</title>
f84ce22c
EM
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>
3c7d2158 79 </field>
80 <field>
f84ce22c
EM
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>
6a488035 87 </field>
3c7d2158 88 <field>
f84ce22c 89 <name>premiums_display_min_contribution</name>
0d94665e 90 <title>Display Minimum Contribution?</title>
f84ce22c
EM
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>
6a488035
TO
95 </field>
96 <field>
f84ce22c
EM
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>
6a488035
TO
104 </field>
105 <field>
f84ce22c
EM
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>
6a488035
TO
111 </field>
112</table>