| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/Event</base> |
| 5 | <class>ParticipantPayment</class> |
| 6 | <name>civicrm_participant_payment</name> |
| 7 | <add>1.7</add> |
| 8 | <log>true</log> |
| 9 | <field> |
| 10 | <name>id</name> |
| 11 | <title>Payment ID</title> |
| 12 | <type>int unsigned</type> |
| 13 | <required>true</required> |
| 14 | <comment>Participant Payment Id</comment> |
| 15 | <add>1.7</add> |
| 16 | </field> |
| 17 | <primaryKey> |
| 18 | <name>id</name> |
| 19 | <autoincrement>true</autoincrement> |
| 20 | </primaryKey> |
| 21 | <field> |
| 22 | <name>participant_id</name> |
| 23 | <title>Participant ID</title> |
| 24 | <type>int unsigned</type> |
| 25 | <required>true</required> |
| 26 | <comment>Participant Id (FK)</comment> |
| 27 | <add>1.7</add> |
| 28 | </field> |
| 29 | <foreignKey> |
| 30 | <name>participant_id</name> |
| 31 | <table>civicrm_participant</table> |
| 32 | <key>id</key> |
| 33 | <onDelete>CASCADE</onDelete> |
| 34 | </foreignKey> |
| 35 | <field> |
| 36 | <name>contribution_id</name> |
| 37 | <type>int unsigned</type> |
| 38 | <required>true</required> |
| 39 | <comment>FK to contribution table.</comment> |
| 40 | <add>2.0</add> |
| 41 | </field> |
| 42 | <foreignKey> |
| 43 | <name>contribution_id</name> |
| 44 | <table>civicrm_contribution</table> |
| 45 | <key>id</key> |
| 46 | <add>2.0</add> |
| 47 | <onDelete>CASCADE</onDelete> |
| 48 | </foreignKey> |
| 49 | <index> |
| 50 | <name>UI_contribution_participant</name> |
| 51 | <unique>true</unique> |
| 52 | <fieldName>contribution_id</fieldName> |
| 53 | <fieldName>participant_id</fieldName> |
| 54 | <add>2.0</add> |
| 55 | </index> |
| 56 | </table> |
| 57 | |