aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-09-24 23:49:37 -0700
committerAdam Soltys <[email protected]>2020-09-24 23:49:37 -0700
commit072dd8dcce4f28eba78838855f6ae977b868c8b6 (patch)
treeb2cc322a0ee82355460b61a7a7148072eca0086e /db
parenta6534130b7d6d4f1659e6419b181b7208767ff73 (diff)
downloadcoinos-server-072dd8dcce4f28eba78838855f6ae977b868c8b6.tar.gz
coinos-server-072dd8dcce4f28eba78838855f6ae977b868c8b6.zip
order matching
Diffstat (limited to 'db')
-rw-r--r--db/models/proposals.js13
1 files changed, 11 insertions, 2 deletions
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,