diff options
| author | Adam Soltys <[email protected]> | 2020-09-24 23:49:37 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-09-24 23:49:37 -0700 |
| commit | 072dd8dcce4f28eba78838855f6ae977b868c8b6 (patch) | |
| tree | b2cc322a0ee82355460b61a7a7148072eca0086e /db | |
| parent | a6534130b7d6d4f1659e6419b181b7208767ff73 (diff) | |
| download | coinos-server-072dd8dcce4f28eba78838855f6ae977b868c8b6.tar.gz coinos-server-072dd8dcce4f28eba78838855f6ae977b868c8b6.zip | |
order matching
Diffstat (limited to 'db')
| -rw-r--r-- | db/models/proposals.js | 13 |
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, |
