commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / 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 <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 <title>Contribution</title>
38 <type>int unsigned</type>
39 <required>true</required>
40 <comment>FK to contribution table.</comment>
41 <add>2.0</add>
42 </field>
43 <foreignKey>
44 <name>contribution_id</name>
45 <table>civicrm_contribution</table>
46 <key>id</key>
47 <add>2.0</add>
48 <onDelete>CASCADE</onDelete>
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