aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-09-25 12:48:47 -0700
committerAdam Soltys <[email protected]>2020-09-25 12:48:47 -0700
commitc97ede8b3a29e5f742ac73542c83e6d170326760 (patch)
tree86c5b2c93699fd55c4dc180d25d79cfdd9b84130 /db/models
parent072dd8dcce4f28eba78838855f6ae977b868c8b6 (diff)
downloadcoinos-server-c97ede8b3a29e5f742ac73542c83e6d170326760.tar.gz
coinos-server-c97ede8b3a29e5f742ac73542c83e6d170326760.zip
record trade completion time
Diffstat (limited to 'db/models')
-rw-r--r--db/models/proposals.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/models/proposals.js b/db/models/proposals.js
index 842101ac..ca3de8eb 100644
--- a/db/models/proposals.js
+++ b/db/models/proposals.js
@@ -19,6 +19,15 @@ const attributes = {
comment: null,
field: "user_id"
},
+ completedAt: {
+ type: DataTypes.DATE,
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "completedAt"
+ },
createdAt: {
type: DataTypes.DATE,
allowNull: false,