func (Note) MakeSlice(mdl []Model) []*Note {
	result := make([]*Note, len(mdl))
	for i := range mdl {
		if mdl[i] != nil {
			result[i] = mdl[i].(*Note)
		}
	}
	return result
}
MakeSlice converts a slice of the generice interface model
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
}
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
}
func (m *Note) PrettyPrint(db *Database) string {
	fields := []string{"Title", "Content", "LastModified"}
	result := prettyPrint(m, fields)
	if location := db.FetchFromTable("Location", int(m.LocationID.Int32)); location != nil {
		result += "\n\n\nRelated Location:\n"
		result += location.PrettyPrint(db)
	}
	if userMark := db.FetchFromTable("UserMark", int(m.UserMarkID.Int32)); userMark != nil {
		result += "\n\n\nRelated UserMark:\n"
		result += userMark.PrettyPrint(db)
	}
	return result
}
func (m Note) MarshalJSON() ([]byte, error) {
	return json.Marshal(&struct {
		Type            string         `json:"type"`
		NoteID          int            `json:"noteId"`
		GUID            string         `json:"guid"`
		UserMarkID      sql.NullInt32  `json:"userMarkId"`
		LocationID      sql.NullInt32  `json:"locationId"`
		Title           sql.NullString `json:"title"`
		Content         sql.NullString `json:"content"`
		LastModified    string         `json:"lastModified"`
		BlockType       int            `json:"blockType"`
		BlockIdentifier sql.NullInt32  `json:"blockIdentifier"`
	}{
		Type:            "Note",
		NoteID:          m.NoteID,
		GUID:            m.GUID,
		UserMarkID:      m.UserMarkID,
		LocationID:      m.LocationID,
		Title:           m.Title,
		Content:         m.Content,
		LastModified:    m.LastModified,
		BlockType:       m.BlockType,
		BlockIdentifier: m.BlockIdentifier,
	})
}
func (m *Note) tableName() string {
	return "Note"
}
func (m *Note) idName() string {
	return "NoteId"
}
func (m *Note) scanRow(rows *sql.Rows) (Model, error) {
	err := rows.Scan(&m.NoteID, &m.GUID, &m.UserMarkID, &m.LocationID, &m.Title, &m.Content,
		&m.LastModified, &m.BlockType, &m.BlockIdentifier)
	return m, err
}