Merge pull request #12728 from pradpnayak/MailingComponent
[civicrm-core.git] / xml / schema / Mailing / TrackableURL.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Mailing</base>
5 <class>TrackableURL</class>
6 <name>civicrm_mailing_trackable_url</name>
7 <comment>Stores URLs for which we should track click-throughs from mailings</comment>
8 <archive>true</archive>
9 <field>
10 <name>id</name>
11 <title>Trackable URL ID</title>
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>url</name>
21 <title>Url</title>
22 <type>text</type>
23 <required>true</required>
24 <comment>The URL to be tracked.</comment>
25 </field>
26 <field>
27 <name>mailing_id</name>
28 <title>Mailing</title>
29 <type>int unsigned</type>
30 <required>true</required>
31 <comment>FK to the mailing</comment>
32 </field>
33 <foreignKey>
34 <name>mailing_id</name>
35 <table>civicrm_mailing</table>
36 <key>id</key>
37 <onDelete>CASCADE</onDelete>
38 </foreignKey>
39 </table>