Commit | Line | Data |
---|---|---|
3c7d2158 | 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> | |
6a488035 | 8 | <log>true</log> |
3c7d2158 | 9 | <field> |
8f069c03 EM |
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> | |
3c7d2158 | 16 | </field> |
17 | <primaryKey> | |
8f069c03 EM |
18 | <name>id</name> |
19 | <autoincrement>true</autoincrement> | |
3c7d2158 | 20 | </primaryKey> |
21 | <field> | |
8f069c03 EM |
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> | |
6a488035 | 28 | </field> |
3c7d2158 | 29 | <foreignKey> |
8f069c03 EM |
30 | <name>participant_id</name> |
31 | <table>civicrm_participant</table> | |
32 | <key>id</key> | |
33 | <onDelete>CASCADE</onDelete> | |
6a488035 | 34 | </foreignKey> |
3c7d2158 | 35 | <field> |
8f069c03 | 36 | <name>contribution_id</name> |
0d94665e | 37 | <title>Contribution</title> |
8f069c03 EM |
38 | <type>int unsigned</type> |
39 | <required>true</required> | |
40 | <comment>FK to contribution table.</comment> | |
41 | <add>2.0</add> | |
6a488035 | 42 | </field> |
3c7d2158 | 43 | <foreignKey> |
8f069c03 EM |
44 | <name>contribution_id</name> |
45 | <table>civicrm_contribution</table> | |
46 | <key>id</key> | |
47 | <add>2.0</add> | |
48 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
49 | </foreignKey> |
50 | <index> | |
51 | <name>UI_contribution_participant</name> | |
52 | <unique>true</unique> | |
53 | <fieldName>contribution_id</fieldName> | |
54 | <fieldName>participant_id</fieldName> | |
55 | <add>2.0</add> | |
56 | </index> | |
57 | </table> | |
58 |