Merge pull request #23210 from eileenmcnaughton/cancel
[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>
0481e12c
A
15 <html>
16 <type>Number</type>
17 </html>
8f069c03 18 <add>1.5</add>
6a488035
TO
19 </field>
20 <primaryKey>
8f069c03
EM
21 <name>id</name>
22 <autoincrement>true</autoincrement>
6a488035
TO
23 </primaryKey>
24 <field>
8f069c03 25 <name>entity_table</name>
f3ea5182 26 <title>Entity Table</title>
8f069c03
EM
27 <type>varchar</type>
28 <length>64</length>
29 <required>true</required>
30 <comment>Name of table where item being referenced is stored.</comment>
31 <add>1.5</add>
6a488035
TO
32 </field>
33 <field>
8f069c03 34 <name>entity_id</name>
f3ea5182 35 <title>Entity ID </title>
8f069c03
EM
36 <type>int unsigned</type>
37 <required>true</required>
38 <comment>Foreign key to the referenced item.</comment>
39 <add>1.5</add>
6a488035 40 </field>
71e5aa5c 41 <dynamicForeignKey>
8f069c03
EM
42 <idColumn>entity_id</idColumn>
43 <typeColumn>entity_table</typeColumn>
44 <add>1.5</add>
71e5aa5c 45 </dynamicForeignKey>
6a488035 46 <index>
8f069c03
EM
47 <name>index_entity</name>
48 <add>1.5</add>
49 <fieldName>entity_table</fieldName>
50 <fieldName>entity_id</fieldName>
51 <add>1.5</add>
6a488035
TO
52 </index>
53 <field>
8f069c03 54 <name>data</name>
f3ea5182 55 <title>Data</title>
8f069c03
EM
56 <type>text</type>
57 <comment>Updates does to this object if any.</comment>
58 <add>1.5</add>
6a488035
TO
59 </field>
60 <field>
8f069c03 61 <name>modified_id</name>
57e94608 62 <title>Modified By Contact ID</title>
8f069c03
EM
63 <type>int unsigned</type>
64 <comment>FK to Contact ID of person under whose credentials this data modification was made.</comment>
57e94608
A
65 <html>
66 <label>Modified By</label>
67 </html>
8f069c03 68 <add>1.5</add>
6a488035
TO
69 </field>
70 <foreignKey>
8f069c03
EM
71 <name>modified_id</name>
72 <table>civicrm_contact</table>
73 <key>id</key>
74 <add>1.5</add>
75 <onDelete>CASCADE</onDelete>
6a488035
TO
76 </foreignKey>
77 <field>
8f069c03 78 <name>modified_date</name>
f3ea5182 79 <title>Modified Date</title>
8f069c03
EM
80 <type>datetime</type>
81 <comment>When was the referenced entity created or modified or deleted.</comment>
82 <add>1.5</add>
6a488035
TO
83 </field>
84</table>