| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/Pledge</base> |
| 5 | <class>PledgePayment</class> |
| 6 | <name>civicrm_pledge_payment</name> |
| 7 | <comment>Pledge Payment</comment> |
| 8 | <add>2.1</add> |
| 9 | <log>true</log> |
| 10 | <field> |
| 11 | <name>id</name> |
| 12 | <uniqueName>pledge_payment_id</uniqueName> |
| 13 | <title>Payment ID</title> |
| 14 | <type>int unsigned</type> |
| 15 | <required>true</required> |
| 16 | <import>true</import> |
| 17 | <add>2.1</add> |
| 18 | </field> |
| 19 | <primaryKey> |
| 20 | <name>id</name> |
| 21 | <autoincrement>true</autoincrement> |
| 22 | </primaryKey> |
| 23 | <field> |
| 24 | <name>pledge_id</name> |
| 25 | <title>Pledge</title> |
| 26 | <type>int unsigned</type> |
| 27 | <required>true</required> |
| 28 | <comment>FK to Pledge table</comment> |
| 29 | <add>2.1</add> |
| 30 | </field> |
| 31 | <foreignKey> |
| 32 | <name>pledge_id</name> |
| 33 | <table>civicrm_pledge</table> |
| 34 | <key>id</key> |
| 35 | <add>2.1</add> |
| 36 | <onDelete>CASCADE</onDelete> |
| 37 | </foreignKey> |
| 38 | <field> |
| 39 | <name>contribution_id</name> |
| 40 | <title>Contribution</title> |
| 41 | <type>int unsigned</type> |
| 42 | <comment>FK to contribution table.</comment> |
| 43 | <add>2.1</add> |
| 44 | </field> |
| 45 | <foreignKey> |
| 46 | <name>contribution_id</name> |
| 47 | <table>civicrm_contribution</table> |
| 48 | <key>id</key> |
| 49 | <add>2.1</add> |
| 50 | <onDelete>CASCADE</onDelete> |
| 51 | </foreignKey> |
| 52 | <index> |
| 53 | <name>index_contribution_pledge</name> |
| 54 | <fieldName>contribution_id</fieldName> |
| 55 | <fieldName>pledge_id</fieldName> |
| 56 | <add>2.1</add> |
| 57 | </index> |
| 58 | <field> |
| 59 | <name>scheduled_amount</name> |
| 60 | <uniqueName>pledge_payment_scheduled_amount</uniqueName> |
| 61 | <title>Scheduled Amount</title> |
| 62 | <import>true</import> |
| 63 | <type>decimal</type> |
| 64 | <required>true</required> |
| 65 | <comment>Pledged amount for this payment (the actual contribution amount might be different).</comment> |
| 66 | <add>2.1</add> |
| 67 | </field> |
| 68 | <field> |
| 69 | <name>actual_amount</name> |
| 70 | <uniqueName>pledge_payment_actual_amount</uniqueName> |
| 71 | <title>Actual Amount</title> |
| 72 | <import>true</import> |
| 73 | <type>decimal</type> |
| 74 | <comment>Actual amount that is paid as the Pledged installment amount.</comment> |
| 75 | <add>3.2</add> |
| 76 | </field> |
| 77 | <field> |
| 78 | <name>currency</name> |
| 79 | <title>Currency</title> |
| 80 | <type>varchar</type> |
| 81 | <length>3</length> |
| 82 | <default>NULL</default> |
| 83 | <comment>3 character string, value from config setting or input via user.</comment> |
| 84 | <add>3.2</add> |
| 85 | <pseudoconstant> |
| 86 | <table>civicrm_currency</table> |
| 87 | <keyColumn>name</keyColumn> |
| 88 | <labelColumn>full_name</labelColumn> |
| 89 | <nameColumn>numeric_code</nameColumn> |
| 90 | </pseudoconstant> |
| 91 | <html> |
| 92 | <type>Select</type> |
| 93 | </html> |
| 94 | </field> |
| 95 | <field> |
| 96 | <name>scheduled_date</name> |
| 97 | <uniqueName>pledge_payment_scheduled_date</uniqueName> |
| 98 | <title>Scheduled Date</title> |
| 99 | <import>true</import> |
| 100 | <type>datetime</type> |
| 101 | <required>true</required> |
| 102 | <comment>The date the pledge payment is supposed to happen.</comment> |
| 103 | <add>2.1</add> |
| 104 | </field> |
| 105 | <field> |
| 106 | <name>reminder_date</name> |
| 107 | <uniqueName>pledge_payment_reminder_date</uniqueName> |
| 108 | <title>Last Reminder</title> |
| 109 | <import>true</import> |
| 110 | <type>datetime</type> |
| 111 | <comment>The date that the most recent payment reminder was sent.</comment> |
| 112 | <add>2.1</add> |
| 113 | </field> |
| 114 | <field> |
| 115 | <name>reminder_count</name> |
| 116 | <uniqueName>pledge_payment_reminder_count</uniqueName> |
| 117 | <title>Reminders Sent</title> |
| 118 | <import>true</import> |
| 119 | <type>int unsigned</type> |
| 120 | <default>0</default> |
| 121 | <comment>The number of payment reminders sent.</comment> |
| 122 | <add>2.1</add> |
| 123 | </field> |
| 124 | <field> |
| 125 | <name>status_id</name> |
| 126 | <title>Payment Status</title> |
| 127 | <uniqueName>pledge_payment_status_id</uniqueName> |
| 128 | <import>true</import> |
| 129 | <export>false</export> |
| 130 | <type>int unsigned</type> |
| 131 | <add>2.1</add> |
| 132 | </field> |
| 133 | <index> |
| 134 | <name>index_status</name> |
| 135 | <fieldName>status_id</fieldName> |
| 136 | <add>2.1</add> |
| 137 | </index> |
| 138 | </table> |