Annotate DAO files with COMPONENT, exclude disabled components' entities from APIv4...
[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 <add>1.4</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>entity_table</name>
24 <title>Premium Entity</title>
25 <type>varchar</type>
26 <length>64</length>
27 <required>true</required>
28 <comment>Joins these premium settings to another object. Always civicrm_contribution_page for now.</comment>
29 <add>1.4</add>
30 </field>
31 <field>
32 <name>entity_id</name>
33 <title>Premium entity ID</title>
34 <type>int unsigned</type>
35 <required>true</required>
36 <add>1.4</add>
37 </field>
38 <dynamicForeignKey>
39 <idColumn>entity_id</idColumn>
40 <typeColumn>entity_table</typeColumn>
41 <add>1.4</add>
42 </dynamicForeignKey>
43 <field>
44 <name>premiums_active </name>
45 <title>Is Premium Active?</title>
46 <type>boolean</type>
47 <default>0</default>
48 <required>true</required>
49 <comment>Is the Premiums feature enabled for this page?</comment>
50 <add>1.4</add>
51 </field>
52 <field>
53 <name>premiums_intro_title</name>
54 <type>varchar</type>
55 <title>Title for Premiums section</title>
56 <length>255</length>
57 <localizable>true</localizable>
58 <comment>Title for Premiums section.</comment>
59 <add>1.4</add>
60 </field>
61 <field>
62 <name>premiums_intro_text</name>
63 <title>Premium Introductory Text</title>
64 <type>text</type>
65 <localizable>true</localizable>
66 <comment>Displayed in &lt;div&gt; at top of Premiums section of page. Text and HTML allowed.</comment>
67 <add>1.4</add>
68 </field>
69 <field>
70 <name>premiums_contact_email</name>
71 <title>Premium Contact Email</title>
72 <type>varchar</type>
73 <length>100</length>
74 <comment>This email address is included in receipts if it is populated and a premium has been selected.</comment>
75 <add>1.4</add>
76 </field>
77 <field>
78 <name>premiums_contact_phone</name>
79 <title>Premiums Contact Phone</title>
80 <type>varchar</type>
81 <length>50</length>
82 <comment>This phone number is included in receipts if it is populated and a premium has been selected.</comment>
83 <add>1.4</add>
84 </field>
85 <field>
86 <name>premiums_display_min_contribution</name>
87 <title>Display Minimum Contribution?</title>
88 <type>boolean</type>
89 <required>true</required>
90 <comment>Boolean. Should we automatically display minimum contribution amount text after the premium descriptions.</comment>
91 <add>1.4</add>
92 </field>
93 <field>
94 <name>premiums_nothankyou_label</name>
95 <title>No Thank-you Text</title>
96 <type>varchar</type>
97 <length>255</length>
98 <localizable>true</localizable>
99 <comment>Label displayed for No Thank-you option in premiums block (e.g. No thank you)</comment>
100 <add>4.3</add>
101 </field>
102 <field>
103 <name>premiums_nothankyou_position</name>
104 <title>No Thank-you Position</title>
105 <type>int unsigned</type>
106 <default>1</default>
107 <add>4.3</add>
108 </field>
109 </table>