From 42ef398107f182b8d22aa63b4b4c4fc2dc3dfc39 Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 9 Oct 2018 13:18:02 -0500 Subject: [PATCH] User anumeration for bid_state --- server/chainquery/bundle.js | 7 ++----- server/chainquery/models/ClaimModel.js | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/server/chainquery/bundle.js b/server/chainquery/bundle.js index 52802d7f..7661f9f9 100644 --- a/server/chainquery/bundle.js +++ b/server/chainquery/bundle.js @@ -275,6 +275,7 @@ var ClaimModel = (sequelize, { BOOLEAN, DATE, DECIMAL, + ENUM, INTEGER, STRING, TEXT, @@ -378,12 +379,8 @@ var ClaimModel = (sequelize, { type: STRING, set() { }, }, - is_filtered: { - type: BOOLEAN, - set() { }, - }, bid_state: { - type: STRING, + type: ENUM('Active', 'Expired', 'Controlling', 'Spent', 'Accepted'), set() { }, }, created_at: { diff --git a/server/chainquery/models/ClaimModel.js b/server/chainquery/models/ClaimModel.js index 60f08482..0008f457 100644 --- a/server/chainquery/models/ClaimModel.js +++ b/server/chainquery/models/ClaimModel.js @@ -38,6 +38,7 @@ export default (sequelize, { BOOLEAN, DATE, DECIMAL, + ENUM, INTEGER, STRING, TEXT, @@ -142,7 +143,7 @@ export default (sequelize, { set() { }, }, bid_state: { - type: STRING, + type: ENUM('Active', 'Expired', 'Controlling', 'Spent', 'Accepted'), set() { }, }, created_at: {