Added pseudoconstant for state province
[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 <add>1.5</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>entity_table</name>
23 <title>Entity Table</title>
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>
29 </field>
30 <field>
31 <name>entity_id</name>
32 <title>Entity ID </title>
33 <type>int unsigned</type>
34 <required>true</required>
35 <comment>Foreign key to the referenced item.</comment>
36 <add>1.5</add>
37 </field>
38 <dynamicForeignKey>
39 <idColumn>entity_id</idColumn>
40 <typeColumn>entity_table</typeColumn>
41 <add>1.5</add>
42 </dynamicForeignKey>
43 <index>
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>
49 </index>
50 <field>
51 <name>data</name>
52 <title>Data</title>
53 <type>text</type>
54 <comment>Updates does to this object if any.</comment>
55 <add>1.5</add>
56 </field>
57 <field>
58 <name>modified_id</name>
59 <title>Modified By</title>
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>
63 </field>
64 <foreignKey>
65 <name>modified_id</name>
66 <table>civicrm_contact</table>
67 <key>id</key>
68 <add>1.5</add>
69 <onDelete>CASCADE</onDelete>
70 </foreignKey>
71 <field>
72 <name>modified_date</name>
73 <title>Modified Date</title>
74 <type>datetime</type>
75 <comment>When was the referenced entity created or modified or deleted.</comment>
76 <add>1.5</add>
77 </field>
78 </table>