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>
30 <callback>CRM_Core_BAO_Note::entityTables
</callback>
35 <name>entity_id
</name>
36 <title>Note Entity ID
</title>
37 <type>int unsigned
</type>
38 <required>true
</required>
39 <comment>Foreign key to the referenced item.
</comment>
43 <idColumn>entity_id
</idColumn>
44 <typeColumn>entity_table
</typeColumn>
48 <name>index_entity
</name>
49 <fieldName>entity_table
</fieldName>
50 <fieldName>entity_id
</fieldName>
57 <comment>Note and/or Comment.
</comment>
64 <headerPattern>/Note|Comment/i
</headerPattern>
65 <dataPattern>//
</dataPattern>
69 <name>contact_id
</name>
70 <title>Note Created By
</title>
71 <type>int unsigned
</type>
72 <comment>FK to Contact ID creator
</comment>
76 <name>contact_id
</name>
77 <table>civicrm_contact
</table>
80 <onDelete>SET NULL
</onDelete>
83 <name>modified_date
</name>
84 <title>Note Modified By
</title>
86 <comment>When was this note last modified/edited
</comment>
91 <title>Subject
</title>
94 <comment>subject of note description
</comment>
103 <title>Privacy
</title>
106 <comment>Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)
</comment>
109 <optionGroupName>note_privacy
</optionGroupName>