Commit | Line | Data |
---|---|---|
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 EM |
10 | <name>id</name> |
11 | <type>int unsigned</type> | |
12 | <required>true</required> | |
13 | <comment>Log ID</comment> | |
14 | <add>1.5</add> | |
6a488035 TO |
15 | </field> |
16 | <primaryKey> | |
8f069c03 EM |
17 | <name>id</name> |
18 | <autoincrement>true</autoincrement> | |
6a488035 TO |
19 | </primaryKey> |
20 | <field> | |
8f069c03 EM |
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> | |
6a488035 TO |
27 | </field> |
28 | <field> | |
8f069c03 EM |
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> | |
6a488035 | 34 | </field> |
71e5aa5c | 35 | <dynamicForeignKey> |
8f069c03 EM |
36 | <idColumn>entity_id</idColumn> |
37 | <typeColumn>entity_table</typeColumn> | |
38 | <add>1.5</add> | |
71e5aa5c | 39 | </dynamicForeignKey> |
6a488035 | 40 | <index> |
8f069c03 EM |
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> | |
6a488035 TO |
46 | </index> |
47 | <field> | |
8f069c03 EM |
48 | <name>data</name> |
49 | <type>text</type> | |
50 | <comment>Updates does to this object if any.</comment> | |
51 | <add>1.5</add> | |
6a488035 TO |
52 | </field> |
53 | <field> | |
8f069c03 EM |
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> | |
6a488035 TO |
58 | </field> |
59 | <foreignKey> | |
8f069c03 EM |
60 | <name>modified_id</name> |
61 | <table>civicrm_contact</table> | |
62 | <key>id</key> | |
63 | <add>1.5</add> | |
64 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
65 | </foreignKey> |
66 | <field> | |
8f069c03 EM |
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> | |
6a488035 TO |
71 | </field> |
72 | </table> |