diff options
| author | Adam Soltys <[email protected]> | 2020-10-09 10:04:27 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-10-09 10:06:02 -0700 |
| commit | d079d8c7c4c1efcb39f05255b2d025605dbbd790 (patch) | |
| tree | 4c2a30e7daf0f410b1b3e0829320fa48f29f41d9 /db/models | |
| parent | 9a06c7883aec135b6d5243caa960d9cb9436b9c0 (diff) | |
| download | coinos-server-d079d8c7c4c1efcb39f05255b2d025605dbbd790.tar.gz coinos-server-d079d8c7c4c1efcb39f05255b2d025605dbbd790.zip | |
proposals -> orders
Diffstat (limited to 'db/models')
| -rw-r--r-- | db/models/orders.js (renamed from db/models/proposals.js) | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/db/models/proposals.js b/db/models/orders.js index 1f93ba06..e9c701a3 100644 --- a/db/models/proposals.js +++ b/db/models/orders.js @@ -64,15 +64,6 @@ const attributes = { comment: null, field: "updatedAt" }, - fee: { - type: DataTypes.DOUBLE, - allowNull: true, - defaultValue: null, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "fee" - }, v1: { type: DataTypes.DOUBLE, allowNull: true, @@ -100,24 +91,6 @@ const attributes = { comment: null, field: "rate" }, - text: { - type: DataTypes.TEXT, - allowNull: false, - defaultValue: false, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "text" - }, - public: { - type: DataTypes.BOOLEAN, - allowNull: false, - defaultValue: false, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "public" - }, accepted: { type: DataTypes.BOOLEAN, allowNull: false, @@ -130,9 +103,9 @@ const attributes = { }; const options = { - tableName: "proposals", + tableName: "orders", comment: "", indexes: [] }; -db.Proposal = db.define("proposals_model", attributes, options); +db.Order = db.define("orders_model", attributes, options); |
