revert Menu.is_public requiredness
[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>
d31fb4e3 9 <component>CiviEvent</component>
3c7d2158 10 <field>
8f069c03
EM
11 <name>id</name>
12 <title>Payment ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
047c5009 15 <comment>Participant Payment ID</comment>
0481e12c
A
16 <html>
17 <type>Number</type>
18 </html>
8f069c03 19 <add>1.7</add>
3c7d2158 20 </field>
21 <primaryKey>
8f069c03
EM
22 <name>id</name>
23 <autoincrement>true</autoincrement>
3c7d2158 24 </primaryKey>
25 <field>
8f069c03
EM
26 <name>participant_id</name>
27 <title>Participant ID</title>
28 <type>int unsigned</type>
29 <required>true</required>
047c5009 30 <comment>Participant ID (FK)</comment>
57e94608
A
31 <html>
32 <label>Participant</label>
33 </html>
8f069c03 34 <add>1.7</add>
6a488035 35 </field>
3c7d2158 36 <foreignKey>
8f069c03
EM
37 <name>participant_id</name>
38 <table>civicrm_participant</table>
39 <key>id</key>
40 <onDelete>CASCADE</onDelete>
6a488035 41 </foreignKey>
3c7d2158 42 <field>
8f069c03 43 <name>contribution_id</name>
57e94608 44 <title>Contribution ID</title>
8f069c03
EM
45 <type>int unsigned</type>
46 <required>true</required>
47 <comment>FK to contribution table.</comment>
57e94608
A
48 <html>
49 <label>Contribution</label>
50 </html>
8f069c03 51 <add>2.0</add>
6a488035 52 </field>
3c7d2158 53 <foreignKey>
8f069c03
EM
54 <name>contribution_id</name>
55 <table>civicrm_contribution</table>
56 <key>id</key>
57 <add>2.0</add>
58 <onDelete>CASCADE</onDelete>
6a488035
TO
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