aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-11-08 14:56:42 -0800
committerAdam Soltys <[email protected]>2022-11-08 14:56:47 -0800
commit59d76923ddf204cfd3810a4ac356917bd5ce627d (patch)
tree56d13c2d0d04d9086b3e54ef3827a04184465e2d /db/models
parent9b060ad4e907bf2a69d787e4a939ea30df0a3eb2 (diff)
downloadcoinos-server-59d76923ddf204cfd3810a4ac356917bd5ce627d.tar.gz
coinos-server-59d76923ddf204cfd3810a4ac356917bd5ce627d.zip
invoice pending amount
Diffstat (limited to 'db/models')
-rw-r--r--db/models/invoices.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/db/models/invoices.js b/db/models/invoices.js
index b13a9545..82e64427 100644
--- a/db/models/invoices.js
+++ b/db/models/invoices.js
@@ -129,7 +129,7 @@ const attributes = {
field: "address"
},
received: {
- type: DataTypes.STRING(255),
+ type: DataTypes.DOUBLE,
allowNull: false,
defaultValue: 0,
primaryKey: false,
@@ -146,6 +146,15 @@ const attributes = {
comment: null,
field: "amount"
},
+ pending: {
+ type: DataTypes.DOUBLE,
+ allowNull: false,
+ defaultValue: 0,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "pending"
+ },
webhook: {
type: DataTypes.TEXT,
allowNull: true,