Merge pull request #17131 from eileenmcnaughton/batch
[civicrm-core.git] / xml / schema / Core / Log.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
5 <class>Log</class>
6 <name>civicrm_log</name>
7 <comment>Log can be linked to any object in the application.</comment>
8 <add>1.5</add>
9 <field>
8f069c03 10 <name>id</name>
f3ea5182 11 <title>Log ID</title>
8f069c03
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Log ID</comment>
15 <add>1.5</add>
6a488035
TO
16 </field>
17 <primaryKey>
8f069c03
EM
18 <name>id</name>
19 <autoincrement>true</autoincrement>
6a488035
TO
20 </primaryKey>
21 <field>
8f069c03 22 <name>entity_table</name>
f3ea5182 23 <title>Entity Table</title>
8f069c03
EM
24 <type>varchar</type>
25 <length>64</length>
26 <required>true</required>
27 <comment>Name of table where item being referenced is stored.</comment>
28 <add>1.5</add>
6a488035
TO
29 </field>
30 <field>
8f069c03 31 <name>entity_id</name>
f3ea5182 32 <title>Entity ID </title>
8f069c03
EM
33 <type>int unsigned</type>
34 <required>true</required>
35 <comment>Foreign key to the referenced item.</comment>
36 <add>1.5</add>
6a488035 37 </field>
71e5aa5c 38 <dynamicForeignKey>
8f069c03
EM
39 <idColumn>entity_id</idColumn>
40 <typeColumn>entity_table</typeColumn>
41 <add>1.5</add>
71e5aa5c 42 </dynamicForeignKey>
6a488035 43 <index>
8f069c03
EM
44 <name>index_entity</name>
45 <add>1.5</add>
46 <fieldName>entity_table</fieldName>
47 <fieldName>entity_id</fieldName>
48 <add>1.5</add>
6a488035
TO
49 </index>
50 <field>
8f069c03 51 <name>data</name>
f3ea5182 52 <title>Data</title>
8f069c03
EM
53 <type>text</type>
54 <comment>Updates does to this object if any.</comment>
55 <add>1.5</add>
6a488035
TO
56 </field>
57 <field>
8f069c03 58 <name>modified_id</name>
f3ea5182 59 <title>Modified By</title>
8f069c03
EM
60 <type>int unsigned</type>
61 <comment>FK to Contact ID of person under whose credentials this data modification was made.</comment>
62 <add>1.5</add>
6a488035
TO
63 </field>
64 <foreignKey>
8f069c03
EM
65 <name>modified_id</name>
66 <table>civicrm_contact</table>
67 <key>id</key>
68 <add>1.5</add>
69 <onDelete>CASCADE</onDelete>
6a488035
TO
70 </foreignKey>
71 <field>
8f069c03 72 <name>modified_date</name>
f3ea5182 73 <title>Modified Date</title>
8f069c03
EM
74 <type>datetime</type>
75 <comment>When was the referenced entity created or modified or deleted.</comment>
76 <add>1.5</add>
6a488035
TO
77 </field>
78</table>