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>
10 <icon>fa-sticky-note
</icon>
13 <title>Note ID
</title>
14 <type>int unsigned
</type>
15 <required>true
</required>
16 <comment>Note ID
</comment>
21 <autoincrement>true
</autoincrement>
24 <name>entity_table
</name>
25 <title>Note Entity
</title>
28 <required>true
</required>
29 <comment>Name of table where item being referenced is stored.
</comment>
31 <callback>CRM_Core_BAO_Note::entityTables
</callback>
36 <name>entity_id
</name>
37 <title>Note Entity ID
</title>
38 <type>int unsigned
</type>
39 <required>true
</required>
40 <comment>Foreign key to the referenced item.
</comment>
44 <idColumn>entity_id
</idColumn>
45 <typeColumn>entity_table
</typeColumn>
49 <name>index_entity
</name>
50 <fieldName>entity_table
</fieldName>
51 <fieldName>entity_id
</fieldName>
58 <comment>Note and/or Comment.
</comment>
65 <headerPattern>/Note|Comment/i
</headerPattern>
66 <dataPattern>//
</dataPattern>
70 <name>contact_id
</name>
71 <title>Note Created By
</title>
72 <type>int unsigned
</type>
73 <comment>FK to Contact ID creator
</comment>
77 <name>contact_id
</name>
78 <table>civicrm_contact
</table>
81 <onDelete>SET NULL
</onDelete>
84 <name>modified_date
</name>
85 <title>Note Modified By
</title>
86 <type>timestamp
</type>
87 <comment>When was this note last modified/edited
</comment>
88 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
</default>
93 <title>Subject
</title>
96 <comment>subject of note description
</comment>
105 <title>Privacy
</title>
108 <comment>Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)
</comment>
114 <optionGroupName>note_privacy
</optionGroupName>