Merge pull request #19525 from eileenmcnaughton/member_soft
[civicrm-core.git] / xml / schema / Contribute / PremiumsProduct.xml
CommitLineData
3c7d2158 1<?xml version="1.0" encoding="iso-8859-1" ?>
6a488035 2
3c7d2158 3<table>
4 <base>CRM/Contribute</base>
5 <class>PremiumsProduct</class>
6a488035
TO
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>
3c7d2158 8 <add>1.4</add>
6a488035 9 <log>true</log>
d31fb4e3 10 <component>CiviContribute</component>
65efffdd
ML
11 <title>Product Premium</title>
12 <titlePlural>Product Premiums</titlePlural>
3c7d2158 13 <field>
14 <name>id</name>
f3ea5182 15 <title>Premium Product ID</title>
3c7d2158 16 <type>int unsigned</type>
17 <required>true</required>
18 <comment>Contribution ID</comment>
0481e12c
A
19 <html>
20 <type>Number</type>
21 </html>
3c7d2158 22 <add>1.4</add>
23 </field>
24 <primaryKey>
25 <name>id</name>
26 <autoincrement>true</autoincrement>
27 </primaryKey>
28 <field>
29 <name>premiums_id</name>
57e94608 30 <title>Premium ID</title>
3c7d2158 31 <type>int unsigned</type>
32 <required>true</required>
33 <comment>Foreign key to premiums settings record.</comment>
57e94608
A
34 <html>
35 <label>Premium</label>
36 </html>
3c7d2158 37 <add>1.4</add>
38 </field>
39 <foreignKey>
40 <name>premiums_id</name>
41 <table>civicrm_premiums</table>
42 <key>id</key>
43 <add>1.4</add>
44 </foreignKey>
45 <field>
46 <name>product_id</name>
57e94608 47 <title>Product ID</title>
3c7d2158 48 <type>int unsigned</type>
49 <required>true</required>
50 <comment>Foreign key to each product object.</comment>
57e94608
A
51 <html>
52 <label>Product</label>
53 </html>
3c7d2158 54 <add>1.4</add>
55 </field>
56 <foreignKey>
57 <name>product_id</name>
58 <table>civicrm_product</table>
59 <key>id</key>
60 <add>1.4</add>
61 </foreignKey>
3c7d2158 62 <field>
63 <name>weight</name>
7ecddde4 64 <title>Order</title>
3c7d2158 65 <type>int unsigned</type>
66 <required>true</required>
67 <add>2.0</add>
68 </field>
69 <field>
70 <name>financial_type_id</name>
57e94608 71 <title>Financial Type ID</title>
3c7d2158 72 <type>int unsigned</type>
6a488035 73 <default>NULL</default>
6cc0b7bd
EM
74 <pseudoconstant>
75 <table>civicrm_financial_type</table>
76 <keyColumn>id</keyColumn>
77 <labelColumn>name</labelColumn>
78 </pseudoconstant>
6a488035 79 <comment>FK to Financial Type.</comment>
57e94608
A
80 <html>
81 <label>Financial Type</label>
82 </html>
3c7d2158 83 <add>4.3</add>
84 </field>
85 <foreignKey>
86 <name>financial_type_id</name>
87 <table>civicrm_financial_type</table>
88 <key>id</key>
6a488035
TO
89 <onDelete>SET NULL</onDelete>
90 <add>4.3</add>
3c7d2158 91 </foreignKey>
6a488035 92</table>