Merge branch '5.41' of github.com:civicrm/civicrm-core
[civicrm-core.git] / xml / schema / Event / ParticipantPayment.xml
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 <component>CiviEvent</component>
10 <field>
11 <name>id</name>
12 <title>Payment ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Participant Payment ID</comment>
16 <html>
17 <type>Number</type>
18 </html>
19 <add>1.7</add>
20 </field>
21 <primaryKey>
22 <name>id</name>
23 <autoincrement>true</autoincrement>
24 </primaryKey>
25 <field>
26 <name>participant_id</name>
27 <title>Participant ID</title>
28 <type>int unsigned</type>
29 <required>true</required>
30 <comment>Participant ID (FK)</comment>
31 <html>
32 <label>Participant</label>
33 </html>
34 <add>1.7</add>
35 </field>
36 <foreignKey>
37 <name>participant_id</name>
38 <table>civicrm_participant</table>
39 <key>id</key>
40 <onDelete>CASCADE</onDelete>
41 </foreignKey>
42 <field>
43 <name>contribution_id</name>
44 <title>Contribution ID</title>
45 <type>int unsigned</type>
46 <required>true</required>
47 <comment>FK to contribution table.</comment>
48 <html>
49 <label>Contribution</label>
50 </html>
51 <add>2.0</add>
52 </field>
53 <foreignKey>
54 <name>contribution_id</name>
55 <table>civicrm_contribution</table>
56 <key>id</key>
57 <add>2.0</add>
58 <onDelete>CASCADE</onDelete>
59 </foreignKey>
60 <index>
61 <name>UI_contribution_participant</name>
62 <unique>true</unique>
63 <fieldName>contribution_id</fieldName>
64 <fieldName>participant_id</fieldName>
65 <add>2.0</add>
66 </index>
67 </table>
68