CRM-15168 stdise whitespace across schema xml to make editing easier
[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 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Log ID</comment>
14 <add>1.5</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>entity_table</name>
22 <type>varchar</type>
23 <length>64</length>
24 <required>true</required>
25 <comment>Name of table where item being referenced is stored.</comment>
26 <add>1.5</add>
27 </field>
28 <field>
29 <name>entity_id</name>
30 <type>int unsigned</type>
31 <required>true</required>
32 <comment>Foreign key to the referenced item.</comment>
33 <add>1.5</add>
34 </field>
35 <dynamicForeignKey>
36 <idColumn>entity_id</idColumn>
37 <typeColumn>entity_table</typeColumn>
38 <add>1.5</add>
39 </dynamicForeignKey>
40 <index>
41 <name>index_entity</name>
42 <add>1.5</add>
43 <fieldName>entity_table</fieldName>
44 <fieldName>entity_id</fieldName>
45 <add>1.5</add>
46 </index>
47 <field>
48 <name>data</name>
49 <type>text</type>
50 <comment>Updates does to this object if any.</comment>
51 <add>1.5</add>
52 </field>
53 <field>
54 <name>modified_id</name>
55 <type>int unsigned</type>
56 <comment>FK to Contact ID of person under whose credentials this data modification was made.</comment>
57 <add>1.5</add>
58 </field>
59 <foreignKey>
60 <name>modified_id</name>
61 <table>civicrm_contact</table>
62 <key>id</key>
63 <add>1.5</add>
64 <onDelete>CASCADE</onDelete>
65 </foreignKey>
66 <field>
67 <name>modified_date</name>
68 <type>datetime</type>
69 <comment>When was the referenced entity created or modified or deleted.</comment>
70 <add>1.5</add>
71 </field>
72 </table>