Merge pull request #15231 from pradpnayak/entityrefHook
[civicrm-core.git] / xml / schema / Mailing / Event / Bounce.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
5435b737
EM
4 <base>CRM/Mailing/Event</base>
5 <class>Bounce</class>
6 <name>civicrm_mailing_event_bounce</name>
7 <comment>Tracks when and why an email bounced.</comment>
8 <archive>true</archive>
9 <field>
10 <name>id</name>
f3ea5182 11 <title>Bounce ID</title>
5435b737
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>event_queue_id</name>
f3ea5182 21 <title>Event Queue</title>
5435b737
EM
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>FK to EventQueue</comment>
25 </field>
26 <foreignKey>
27 <name>event_queue_id</name>
28 <table>civicrm_mailing_event_queue</table>
29 <key>id</key>
30 <onDelete>CASCADE</onDelete>
31 </foreignKey>
32 <field>
33 <name>bounce_type_id</name>
f3ea5182 34 <title>Bounce Type</title>
5435b737
EM
35 <type>int unsigned</type>
36 <comment>What type of bounce was it?</comment>
37 <pseudoconstant>
38 <table>civicrm_mailing_bounce_type</table>
39 <keyColumn>id</keyColumn>
40 <labelColumn>name</labelColumn>
41 </pseudoconstant>
42 <html>
43 <type>Select</type>
44 </html>
45 </field>
46 <field>
47 <name>bounce_reason</name>
f3ea5182 48 <title>Bounce Reason</title>
5435b737
EM
49 <type>varchar</type>
50 <length>255</length>
51 <comment>The reason the email bounced.</comment>
52 </field>
53 <field>
54 <name>time_stamp</name>
f3ea5182 55 <title>Timestamp</title>
4387c66f 56 <type>timestamp</type>
57 <default>CURRENT_TIMESTAMP</default>
5435b737
EM
58 <required>true</required>
59 <comment>When this bounce event occurred.</comment>
60 </field>
6a488035 61</table>