Added pseudoconstant for state province
[civicrm-core.git] / xml / schema / Core / ActionLog.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
5 <class>ActionLog</class>
6 <name>civicrm_action_log</name>
7 <comment>Table to store log for the reminder.</comment>
8 <add>3.4</add>
9 <field>
8f069c03 10 <name>id</name>
fa6ace1a 11 <title>Action Schedule ID</title>
8f069c03
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <add>3.4</add>
6a488035
TO
15 </field>
16 <primaryKey>
8f069c03
EM
17 <name>id</name>
18 <autoincrement>true</autoincrement>
6a488035
TO
19 </primaryKey>
20 <field>
8f069c03 21 <name>contact_id</name>
fa6ace1a 22 <title>Action Schedule Contact ID</title>
8f069c03
EM
23 <type>int unsigned</type>
24 <comment>FK to Contact ID</comment>
25 <add>3.4</add>
6a488035
TO
26 </field>
27 <foreignKey>
8f069c03
EM
28 <name>contact_id</name>
29 <table>civicrm_contact</table>
30 <key>id</key>
31 <add>3.4</add>
32 <onDelete>CASCADE</onDelete>
6a488035
TO
33 </foreignKey>
34 <field>
8f069c03 35 <name>entity_id</name>
fa6ace1a 36 <title>Entity ID</title>
8f069c03
EM
37 <type>int unsigned</type>
38 <required>true</required>
39 <comment>FK to id of the entity that the action was performed on. Pseudo - FK.</comment>
40 <add>3.4</add>
6a488035
TO
41 </field>
42 <field>
8f069c03
EM
43 <name>entity_table</name>
44 <type>varchar</type>
fa6ace1a 45 <title>Entity Table</title>
8f069c03
EM
46 <length>255</length>
47 <comment>name of the entity table for the above id, e.g. civicrm_activity, civicrm_participant</comment>
48 <add>3.4</add>
6a488035 49 </field>
71e5aa5c 50 <dynamicForeignKey>
8f069c03
EM
51 <idColumn>entity_id</idColumn>
52 <typeColumn>entity_table</typeColumn>
53 <add>3.4</add>
71e5aa5c 54 </dynamicForeignKey>
6a488035 55 <field>
8f069c03 56 <name>action_schedule_id</name>
fa6ace1a 57 <title>Schedule</title>
8f069c03
EM
58 <type>int unsigned</type>
59 <required>true</required>
60 <comment>FK to the action schedule that this action originated from.</comment>
61 <add>3.4</add>
6a488035
TO
62 </field>
63 <foreignKey>
8f069c03
EM
64 <name>action_schedule_id</name>
65 <table>civicrm_action_schedule</table>
66 <key>id</key>
67 <add>3.4</add>
68 <onDelete>CASCADE</onDelete>
6a488035
TO
69 </foreignKey>
70 <field>
8f069c03 71 <name>action_date_time</name>
fa6ace1a 72 <title>Action Date And Time</title>
8f069c03
EM
73 <type>datetime</type>
74 <comment>date time that the action was performed on.</comment>
75 <add>3.4</add>
6a488035
TO
76 </field>
77 <field>
8f069c03 78 <name>is_error</name>
fa6ace1a 79 <title>Error?</title>
8f069c03
EM
80 <type>boolean</type>
81 <default>0</default>
82 <comment>Was there any error sending the reminder?</comment>
83 <add>3.4</add>
6a488035
TO
84 </field>
85 <field>
8f069c03 86 <name>message</name>
fa6ace1a 87 <title>Message</title>
8f069c03
EM
88 <type>text</type>
89 <comment>Description / text in case there was an error encountered.</comment>
90 <add>3.4</add>
6a488035
TO
91 </field>
92 <field>
8f069c03 93 <name>repetition_number</name>
fa6ace1a 94 <title>Repetition Number</title>
8f069c03
EM
95 <type>int unsigned</type>
96 <comment>Keeps track of the sequence number of this repetition.</comment>
97 <add>3.4</add>
6a488035 98 </field>
5c4d6559 99 <field>
100 <name>reference_date</name>
fa6ace1a 101 <title>Reference Date</title>
e08fae02 102 <type>datetime</type>
5c4d6559 103 <default>NULL</default>
104 <comment>Stores the date from the entity which triggered this reminder action (e.g. membership.end_date for most membership renewal reminders)</comment>
105 <add>4.6</add>
773b5a1c 106 <change>5.17</change>
5c4d6559 107 </field>
6a488035 108</table>