Merge pull request #19722 from civicrm/5.35
[civicrm-core.git] / xml / schema / Core / Log.xml
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>
10 <name>id</name>
11 <title>Log ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Log ID</comment>
15 <html>
16 <type>Number</type>
17 </html>
18 <add>1.5</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>entity_table</name>
26 <title>Entity Table</title>
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>
32 </field>
33 <field>
34 <name>entity_id</name>
35 <title>Entity ID </title>
36 <type>int unsigned</type>
37 <required>true</required>
38 <comment>Foreign key to the referenced item.</comment>
39 <add>1.5</add>
40 </field>
41 <dynamicForeignKey>
42 <idColumn>entity_id</idColumn>
43 <typeColumn>entity_table</typeColumn>
44 <add>1.5</add>
45 </dynamicForeignKey>
46 <index>
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>
52 </index>
53 <field>
54 <name>data</name>
55 <title>Data</title>
56 <type>text</type>
57 <comment>Updates does to this object if any.</comment>
58 <add>1.5</add>
59 </field>
60 <field>
61 <name>modified_id</name>
62 <title>Modified By Contact ID</title>
63 <type>int unsigned</type>
64 <comment>FK to Contact ID of person under whose credentials this data modification was made.</comment>
65 <html>
66 <label>Modified By</label>
67 </html>
68 <add>1.5</add>
69 </field>
70 <foreignKey>
71 <name>modified_id</name>
72 <table>civicrm_contact</table>
73 <key>id</key>
74 <add>1.5</add>
75 <onDelete>CASCADE</onDelete>
76 </foreignKey>
77 <field>
78 <name>modified_date</name>
79 <title>Modified Date</title>
80 <type>datetime</type>
81 <comment>When was the referenced entity created or modified or deleted.</comment>
82 <add>1.5</add>
83 </field>
84 </table>