From 59d76923ddf204cfd3810a4ac356917bd5ce627d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 8 Nov 2022 14:56:42 -0800 Subject: invoice pending amount --- db/models/invoices.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'db') 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, -- cgit v1.2.3