remove optionId, closes #117

This commit is contained in:
azivner
2018-06-13 19:10:28 -04:00
parent d67246699a
commit 3d2ef6be01
6 changed files with 148 additions and 122 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 "optionId"; }
static get hashedProperties() { return ["optionId", "name", "value"]; }
static get primaryKeyName() { return "name"; }
static get hashedProperties() { return ["name", "value"]; }
beforeSaving() {
super.beforeSaving();