Refactored Contact Page Summary tab to use CRM_Core_DAO::buildOptions() method. CRM...
[civicrm-core.git] / xml / schema / Contact / SubscriptionHistory.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Contact</base>
5 <class>SubscriptionHistory</class>
6 <name>civicrm_subscription_history</name>
7 <comment>History information of subscribe/unsubscribe actions</comment>
8 <add>1.1</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Internal Id</comment>
15 <add>1.1</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>contact_id</name>
23 <type>int unsigned</type>
24 <required>true</required>
25 <comment>Contact Id</comment>
26 <add>1.1</add>
27 </field>
28 <foreignKey>
29 <name>contact_id</name>
30 <table>civicrm_contact</table>
31 <key>id</key>
32 <add>1.1</add>
33 <onDelete>CASCADE</onDelete>
34 </foreignKey>
35 <field>
36 <name>group_id</name>
37 <type>int unsigned</type>
38 <comment>Group Id</comment>
39 <add>1.1</add>
40 </field>
41 <foreignKey>
42 <name>group_id</name>
43 <table>civicrm_group</table>
44 <key>id</key>
45 <add>1.1</add>
46 <onDelete>CASCADE</onDelete>
47 </foreignKey>
48 <field>
49 <name>date</name>
50 <type>datetime</type>
51 <required>true</required>
52 <comment>Date of the (un)subscription</comment>
53 <add>1.1</add>
54 </field>
55 <field>
56 <name>method</name>
57 <type>enum</type>
58 <values>Admin, Email, Web, API</values>
59 <comment>How the (un)subscription was triggered</comment>
60 <add>1.1</add>
61 </field>
62 <field>
63 <name>status</name>
64 <type>enum</type>
65 <values>Added, Removed, Pending, Deleted</values>
66 <comment>The state of the contact within the group</comment>
67 <add>1.1</add>
68 </field>
69 <field>
70 <name>tracking</name>
71 <type>varchar</type>
72 <length>255</length>
73 <comment>IP address or other tracking info</comment>
74 <add>1.1</add>
75 </field>
76</table>