Add @searchable annotation to denote which API entities should be visible in Search...
[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>
9 <field>
10 <name>id</name>
0d94665e 11 <title>Mailing Subscribe ID</title>
5435b737
EM
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>
0d94665e 21 <title>Mailing Subscribe Group</title>
5435b737
EM
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>
0d94665e 42 <title>Mailing Subscribe Contact</title>
5435b737
EM
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>
0d94665e 55 <title>Mailing Subscribe Hash</title>
5435b737
EM
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>
0d94665e 63 <title>Mailing Subscribe Timestamp</title>
4387c66f 64 <type>timestamp</type>
65 <default>CURRENT_TIMESTAMP</default>
5435b737
EM
66 <required>true</required>
67 <comment>When this subscription event occurred.</comment>
68 </field>
6a488035 69</table>