aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-01 22:17:58 -0700
committerAdam Soltys <[email protected]>2022-08-01 22:18:18 -0700
commit52de78167f0a9a4f28e06c8e4d2883305a6046d5 (patch)
treeb017df9219bc1572426cdcc3bc337897a7f68b4c /db/models
parentf88165f8ffd3f3d39e7ca32af4197462924c84b4 (diff)
downloadcoinos-server-52de78167f0a9a4f28e06c8e4d2883305a6046d5.tar.gz
coinos-server-52de78167f0a9a4f28e06c8e4d2883305a6046d5.zip
record invoice status
Diffstat (limited to 'db/models')
-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,