Merge pull request #20394 from eileenmcnaughton/entry
[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 <component>CiviMail</component>
10 <field>
11 <name>id</name>
12 <title>Trackable URL ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <html>
16 <type>Number</type>
17 </html>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>url</name>
25 <title>Url</title>
26 <type>text</type>
27 <required>true</required>
28 <comment>The URL to be tracked.</comment>
29 </field>
30 <field>
31 <name>mailing_id</name>
32 <title>Mailing ID</title>
33 <type>int unsigned</type>
34 <required>true</required>
35 <html>
36 <label>Mailing</label>
37 </html>
38 <comment>FK to the mailing</comment>
39 </field>
40 <foreignKey>
41 <name>mailing_id</name>
42 <table>civicrm_mailing</table>
43 <key>id</key>
44 <onDelete>CASCADE</onDelete>
45 </foreignKey>
46 </table>