| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 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> |
| 8 | <add>1.4</add> |
| 9 | <log>true</log> |
| 10 | <component>CiviContribute</component> |
| 11 | <title>Product Premium</title> |
| 12 | <titlePlural>Product Premiums</titlePlural> |
| 13 | <field> |
| 14 | <name>id</name> |
| 15 | <title>Premium Product ID</title> |
| 16 | <type>int unsigned</type> |
| 17 | <required>true</required> |
| 18 | <comment>Contribution ID</comment> |
| 19 | <html> |
| 20 | <type>Number</type> |
| 21 | </html> |
| 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> |
| 30 | <title>Premium ID</title> |
| 31 | <type>int unsigned</type> |
| 32 | <required>true</required> |
| 33 | <comment>Foreign key to premiums settings record.</comment> |
| 34 | <html> |
| 35 | <label>Premium</label> |
| 36 | </html> |
| 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> |
| 47 | <title>Product ID</title> |
| 48 | <type>int unsigned</type> |
| 49 | <required>true</required> |
| 50 | <comment>Foreign key to each product object.</comment> |
| 51 | <html> |
| 52 | <label>Product</label> |
| 53 | </html> |
| 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> |
| 62 | <field> |
| 63 | <name>weight</name> |
| 64 | <title>Order</title> |
| 65 | <type>int unsigned</type> |
| 66 | <required>true</required> |
| 67 | <add>2.0</add> |
| 68 | </field> |
| 69 | <field> |
| 70 | <name>financial_type_id</name> |
| 71 | <title>Financial Type ID</title> |
| 72 | <type>int unsigned</type> |
| 73 | <default>NULL</default> |
| 74 | <pseudoconstant> |
| 75 | <table>civicrm_financial_type</table> |
| 76 | <keyColumn>id</keyColumn> |
| 77 | <labelColumn>name</labelColumn> |
| 78 | </pseudoconstant> |
| 79 | <comment>FK to Financial Type.</comment> |
| 80 | <html> |
| 81 | <label>Financial Type</label> |
| 82 | </html> |
| 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> |
| 89 | <onDelete>SET NULL</onDelete> |
| 90 | <add>4.3</add> |
| 91 | </foreignKey> |
| 92 | </table> |