added hash columns for faster sync check calculation

This commit is contained in:
azivner
2018-05-22 00:15:54 -04:00
parent 9fa6c0918c
commit 49a53f7a45
13 changed files with 61 additions and 102 deletions

View File

@@ -7,6 +7,7 @@ const dateUtils = require('../services/date_utils');
class NoteImage extends Entity {
static get tableName() { return "note_images"; }
static get primaryKeyName() { return "noteImageId"; }
static get syncedProperties() { return ["noteImageId", "noteId", "imageId", "isDeleted", "dateModified", "dateCreated"]; }
async getNote() {
return await repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);