CRM-15168 add some additional titles to schema
[civicrm-core.git] / xml / schema / Mailing / Event / Subscribe.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Mailing/Event</base>
5 <class>Subscribe</class>
6 <name>civicrm_mailing_event_subscribe</name>
7 <comment>Tracks when a (new) contact subscribes to a group by email</comment>
8 <archive>true</archive>
9 <field>
10 <name>id</name>
11 <title>Mailing Subscribe 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>group_id</name>
21 <title>Mailing Subscribe Group</title>
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>FK to Group</comment>
25 <pseudoconstant>
26 <table>civicrm_group</table>
27 <keyColumn>id</keyColumn>
28 <labelColumn>title</labelColumn>
29 </pseudoconstant>
30 <html>
31 <type>Select</type>
32 </html>
33 </field>
34 <foreignKey>
35 <name>group_id</name>
36 <table>civicrm_group</table>
37 <key>id</key>
38 <onDelete>CASCADE</onDelete>
39 </foreignKey>
40 <field>
41 <name>contact_id</name>
42 <title>Mailing Subscribe Contact</title>
43 <type>int unsigned</type>
44 <required>true</required>
45 <comment>FK to Contact</comment>
46 </field>
47 <foreignKey>
48 <name>contact_id</name>
49 <table>civicrm_contact</table>
50 <key>id</key>
51 <onDelete>CASCADE</onDelete>
52 </foreignKey>
53 <field>
54 <name>hash</name>
55 <title>Mailing Subscribe Hash</title>
56 <type>varchar</type>
57 <length>255</length>
58 <required>true</required>
59 <comment>Security hash</comment>
60 </field>
61 <field>
62 <name>time_stamp</name>
63 <title>Mailing Subscribe Timestamp</title>
64 <type>datetime</type>
65 <required>true</required>
66 <comment>When this subscription event occurred.</comment>
67 </field>
68 </table>