From 072dd8dcce4f28eba78838855f6ae977b868c8b6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 24 Sep 2020 23:49:37 -0700 Subject: order matching --- db/models/proposals.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'db') diff --git a/db/models/proposals.js b/db/models/proposals.js index 6d7ee40e..842101ac 100644 --- a/db/models/proposals.js +++ b/db/models/proposals.js @@ -56,7 +56,7 @@ const attributes = { field: "a2" }, v1: { - type: DataTypes.INTEGER, + type: DataTypes.DOUBLE, allowNull: true, defaultValue: null, primaryKey: false, @@ -65,7 +65,7 @@ const attributes = { field: "v1" }, v2: { - type: DataTypes.INTEGER, + type: DataTypes.DOUBLE, allowNull: true, defaultValue: null, primaryKey: false, @@ -73,6 +73,15 @@ const attributes = { comment: null, field: "v2" }, + rate: { + type: DataTypes.DOUBLE, + allowNull: true, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "rate" + }, text: { type: DataTypes.TEXT, allowNull: false, -- cgit v1.2.3