Merge pull request #21944 from masetto/unit_plural
[civicrm-core.git] / xml / schema / Mailing / BouncePattern.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Mailing</base>
5 <class>BouncePattern</class>
6 <name>civicrm_mailing_bounce_pattern</name>
7 <comment>Pseudo-constant table of patterns for bounce classification</comment>
8 <component>CiviMail</component>
9 <field>
10 <name>id</name>
11 <title>Bounce Pattern ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <html>
15 <type>Number</type>
16 </html>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>bounce_type_id</name>
24 <title>Bounce Type ID</title>
25 <type>int unsigned</type>
26 <required>true</required>
27 <comment>Type of bounce</comment>
28 <pseudoconstant>
29 <table>civicrm_mailing_bounce_type</table>
30 <keyColumn>id</keyColumn>
31 <labelColumn>name</labelColumn>
32 </pseudoconstant>
33 <html>
34 <label>Bounce Type</label>
35 </html>
36 </field>
37 <foreignKey>
38 <name>bounce_type_id</name>
39 <table>civicrm_mailing_bounce_type</table>
40 <key>id</key>
41 <onDelete>CASCADE</onDelete>
42 </foreignKey>
43 <field>
44 <name>pattern</name>
45 <title>Pattern</title>
46 <type>varchar</type>
47 <length>255</length>
48 <comment>A regexp to match a message to a bounce type</comment>
49 </field>
50 </table>