1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Contribute
</base>
5 <class>PremiumsProduct
</class>
6 <name>civicrm_premiums_product
</name>
7 <comment>joins premiums (settings) to individual product/premium items - determines which products are available for a given contribution page
</comment>
10 <component>CiviContribute
</component>
11 <title>Product Premium
</title>
12 <titlePlural>Product Premiums
</titlePlural>
15 <title>Premium Product ID
</title>
16 <type>int unsigned
</type>
17 <required>true
</required>
18 <comment>Contribution ID
</comment>
23 <autoincrement>true
</autoincrement>
26 <name>premiums_id
</name>
27 <title>Premium
</title>
28 <type>int unsigned
</type>
29 <required>true
</required>
30 <comment>Foreign key to premiums settings record.
</comment>
34 <name>premiums_id
</name>
35 <table>civicrm_premiums
</table>
40 <name>product_id
</name>
41 <title>Product
</title>
42 <type>int unsigned
</type>
43 <required>true
</required>
44 <comment>Foreign key to each product object.
</comment>
48 <name>product_id
</name>
49 <table>civicrm_product
</table>
56 <type>int unsigned
</type>
57 <required>true
</required>
61 <name>financial_type_id
</name>
62 <title>Financial Type
</title>
63 <type>int unsigned
</type>
64 <default>NULL
</default>
66 <table>civicrm_financial_type
</table>
67 <keyColumn>id
</keyColumn>
68 <labelColumn>name
</labelColumn>
70 <comment>FK to Financial Type.
</comment>
74 <name>financial_type_id
</name>
75 <table>civicrm_financial_type
</table>
77 <onDelete>SET NULL
</onDelete>