1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
6 <name>civicrm_note
</name>
7 <comment>Notes can be linked to any object in the application.
</comment>
12 <title>Note ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
15 <comment>Note ID
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>entity_table
</name>
24 <title>Note Entity
</title>
27 <required>true
</required>
28 <comment>Name of table where item being referenced is stored.
</comment>
32 <name>entity_id
</name>
33 <title>Note Entity ID
</title>
34 <type>int unsigned
</type>
35 <required>true
</required>
36 <comment>Foreign key to the referenced item.
</comment>
40 <idColumn>entity_id
</idColumn>
41 <typeColumn>entity_table
</typeColumn>
45 <name>index_entity
</name>
46 <fieldName>entity_table
</fieldName>
47 <fieldName>entity_id
</fieldName>
54 <comment>Note and/or Comment.
</comment>
61 <headerPattern>/Note|Comment/i
</headerPattern>
62 <dataPattern>//
</dataPattern>
66 <name>contact_id
</name>
67 <title>Note Created By
</title>
68 <type>int unsigned
</type>
69 <comment>FK to Contact ID creator
</comment>
73 <name>contact_id
</name>
74 <table>civicrm_contact
</table>
77 <onDelete>SET NULL
</onDelete>
80 <name>modified_date
</name>
81 <title>Note Modified By
</title>
83 <comment>When was this note last modified/edited
</comment>
88 <title>Subject
</title>
91 <comment>subject of note description
</comment>
96 <title>Privacy
</title>
99 <comment>Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)
</comment>