func (m *Note) RelatedEntries(db *Database) Related {
	result := Related{}
	if location := db.FetchFromTable("Location", int(m.LocationID.Int32)); location != nil {
		result.Location = location.(*Location)
	}
	if userMark := db.FetchFromTable("UserMark", int(m.UserMarkID.Int32)); userMark != nil {
		result.UserMark = userMark.(*UserMark)
	}
	return result
}
RelatedEntries returns entries that are related to this one
package model
import (
	"database/sql"
	"encoding/json"
)
type Note struct {
	NoteID          int
	GUID            string
	UserMarkID      sql.NullInt32
	LocationID      sql.NullInt32
	Title           sql.NullString
	Content         sql.NullString
	LastModified    string
	BlockType       int
	BlockIdentifier sql.NullInt32
}
func (m *Note) ID() int {
	return m.NoteID
}
func (m *Note) SetID(id int) {
	m.NoteID = id
}
func (m *Note) UniqueKey() string {
	return m.GUID
}
func (m *Note) Equals(m2 Model) bool {
	if m2, ok := m2.(*Note); ok {
		return m.GUID == m2.GUID &&
			m.Title == m2.Title &&
			m.Content == m2.Content
	}
	return false
}