Add html tag to all files in xml/schema
[civicrm-core.git] / xml / schema / Mailing / Event / Subscribe.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>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>
d31fb4e3 9 <component>CiviMail</component>
5435b737
EM
10 <field>
11 <name>id</name>
0d94665e 12 <title>Mailing Subscribe ID</title>
5435b737
EM
13 <type>int unsigned</type>
14 <required>true</required>
0481e12c
A
15 <html>
16 <type>Number</type>
17 </html>
5435b737
EM
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>group_id</name>
0d94665e 25 <title>Mailing Subscribe Group</title>
5435b737
EM
26 <type>int unsigned</type>
27 <required>true</required>
28 <comment>FK to Group</comment>
29 <pseudoconstant>
30 <table>civicrm_group</table>
31 <keyColumn>id</keyColumn>
32 <labelColumn>title</labelColumn>
33 </pseudoconstant>
34 <html>
35 <type>Select</type>
36 </html>
37 </field>
38 <foreignKey>
39 <name>group_id</name>
40 <table>civicrm_group</table>
41 <key>id</key>
42 <onDelete>CASCADE</onDelete>
43 </foreignKey>
44 <field>
45 <name>contact_id</name>
0d94665e 46 <title>Mailing Subscribe Contact</title>
5435b737
EM
47 <type>int unsigned</type>
48 <required>true</required>
49 <comment>FK to Contact</comment>
50 </field>
51 <foreignKey>
52 <name>contact_id</name>
53 <table>civicrm_contact</table>
54 <key>id</key>
55 <onDelete>CASCADE</onDelete>
56 </foreignKey>
57 <field>
58 <name>hash</name>
0d94665e 59 <title>Mailing Subscribe Hash</title>
5435b737
EM
60 <type>varchar</type>
61 <length>255</length>
62 <required>true</required>
63 <comment>Security hash</comment>
64 </field>
65 <field>
66 <name>time_stamp</name>
0d94665e 67 <title>Mailing Subscribe Timestamp</title>
4387c66f 68 <type>timestamp</type>
69 <default>CURRENT_TIMESTAMP</default>
5435b737
EM
70 <required>true</required>
71 <comment>When this subscription event occurred.</comment>
72 </field>
6a488035 73</table>