initialization and schema fixes, closes #111

This commit is contained in:
azivner
2018-06-01 22:26:37 -04:00
parent c07785be67
commit fc6669d254
4 changed files with 41 additions and 30 deletions

View File

@@ -5,8 +5,8 @@ const dateUtils = require('../services/date_utils');
class Option extends Entity {
static get tableName() { return "options"; }
static get primaryKeyName() { return "name"; }
static get hashedProperties() { return ["name", "value"]; }
static get primaryKeyName() { return "optionId"; }
static get hashedProperties() { return ["optionId", "name", "value"]; }
beforeSaving() {
super.beforeSaving();