CRM-15168 stdise whitespace across schema xml to make editing easier
[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
EM
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <add>3.4</add>
6a488035
TO
14 </field>
15 <primaryKey>
8f069c03
EM
16 <name>id</name>
17 <autoincrement>true</autoincrement>
6a488035
TO
18 </primaryKey>
19 <field>
8f069c03
EM
20 <name>contact_id</name>
21 <type>int unsigned</type>
22 <comment>FK to Contact ID</comment>
23 <add>3.4</add>
6a488035
TO
24 </field>
25 <foreignKey>
8f069c03
EM
26 <name>contact_id</name>
27 <table>civicrm_contact</table>
28 <key>id</key>
29 <add>3.4</add>
30 <onDelete>CASCADE</onDelete>
6a488035
TO
31 </foreignKey>
32 <field>
8f069c03
EM
33 <name>entity_id</name>
34 <type>int unsigned</type>
35 <required>true</required>
36 <comment>FK to id of the entity that the action was performed on. Pseudo - FK.</comment>
37 <add>3.4</add>
6a488035
TO
38 </field>
39 <field>
8f069c03
EM
40 <name>entity_table</name>
41 <type>varchar</type>
42 <length>255</length>
43 <comment>name of the entity table for the above id, e.g. civicrm_activity, civicrm_participant</comment>
44 <add>3.4</add>
6a488035 45 </field>
71e5aa5c 46 <dynamicForeignKey>
8f069c03
EM
47 <idColumn>entity_id</idColumn>
48 <typeColumn>entity_table</typeColumn>
49 <add>3.4</add>
71e5aa5c 50 </dynamicForeignKey>
6a488035 51 <field>
8f069c03
EM
52 <name>action_schedule_id</name>
53 <type>int unsigned</type>
54 <required>true</required>
55 <comment>FK to the action schedule that this action originated from.</comment>
56 <add>3.4</add>
6a488035
TO
57 </field>
58 <foreignKey>
8f069c03
EM
59 <name>action_schedule_id</name>
60 <table>civicrm_action_schedule</table>
61 <key>id</key>
62 <add>3.4</add>
63 <onDelete>CASCADE</onDelete>
6a488035
TO
64 </foreignKey>
65 <field>
8f069c03
EM
66 <name>action_date_time</name>
67 <type>datetime</type>
68 <comment>date time that the action was performed on.</comment>
69 <add>3.4</add>
6a488035
TO
70 </field>
71 <field>
8f069c03
EM
72 <name>is_error</name>
73 <type>boolean</type>
74 <default>0</default>
75 <comment>Was there any error sending the reminder?</comment>
76 <add>3.4</add>
6a488035
TO
77 </field>
78 <field>
8f069c03
EM
79 <name>message</name>
80 <type>text</type>
81 <comment>Description / text in case there was an error encountered.</comment>
82 <add>3.4</add>
6a488035
TO
83 </field>
84 <field>
8f069c03
EM
85 <name>repetition_number</name>
86 <type>int unsigned</type>
87 <comment>Keeps track of the sequence number of this repetition.</comment>
88 <add>3.4</add>
6a488035
TO
89 </field>
90</table>