aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-01 22:17:58 -0700
committerAdam Soltys <[email protected]>2022-08-01 22:17:58 -0700
commit99b7b4fbeb64e2e4512211c9c2a4a085bacd96d8 (patch)
treeb2b6b97328cb9ea4b86d7b32e89aa805af29b04b /db
parent82f9acc60b7edbdfee96f1553d0fb1dcc705b866 (diff)
downloadcoinos-server-99b7b4fbeb64e2e4512211c9c2a4a085bacd96d8.tar.gz
coinos-server-99b7b4fbeb64e2e4512211c9c2a4a085bacd96d8.zip
record invoice status
Diffstat (limited to 'db')
-rw-r--r--db/models/invoices.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/models/invoices.js b/db/models/invoices.js
index 324da9ad..d985ce82 100644
--- a/db/models/invoices.js
+++ b/db/models/invoices.js
@@ -154,6 +154,15 @@ const attributes = {
comment: null,
field: "webhook"
},
+ status: {
+ type: DataTypes.TEXT,
+ allowNull: true,
+ defaultValue: "unpaid",
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "status"
+ },
tip: {
type: DataTypes.DOUBLE,
allowNull: true,