CRM-15168 stdise whitespace across schema xml to make editing easier
[civicrm-core.git] / xml / schema / Event / ParticipantPayment.xml
CommitLineData
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
EM
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>
6a488035 41 </field>
3c7d2158 42 <foreignKey>
8f069c03
EM
43 <name>contribution_id</name>
44 <table>civicrm_contribution</table>
45 <key>id</key>
46 <add>2.0</add>
47 <onDelete>CASCADE</onDelete>
6a488035
TO
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