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

@@ -8,6 +8,7 @@ const sql = require('../services/sql');
class Branch extends Entity {
static get tableName() { return "branches"; }
static get primaryKeyName() { return "branchId"; }
static get syncedProperties() { return ["branchId", "noteId", "parentNoteId", "notePosition", "dateModified", "isDeleted", "prefix"]; }
async getNote() {
return await repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);