aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-06-29 10:28:58 -0700
committerAdam Soltys <[email protected]>2021-07-07 12:42:19 -0700
commit0fb703b85d99c888d1df971e7c3562f7918e0ff8 (patch)
tree2f167df25b172c3b7166952444e39e7f582e93c4 /db/models
parent9bf4080d67d6342624c8f1fb543acab00191f730 (diff)
downloadcoinos-server-0fb703b85d99c888d1df971e7c3562f7918e0ff8.tar.gz
coinos-server-0fb703b85d99c888d1df971e7c3562f7918e0ff8.zip
add webhooks to invoices
Diffstat (limited to 'db/models')
-rw-r--r--db/models/invoices.js9
-rw-r--r--db/models/payments.js9
2 files changed, 18 insertions, 0 deletions
diff --git a/db/models/invoices.js b/db/models/invoices.js
index e2c499f4..a51ee3f9 100644
--- a/db/models/invoices.js
+++ b/db/models/invoices.js
@@ -145,6 +145,15 @@ const attributes = {
comment: null,
field: "amount"
},
+ webhook: {
+ type: DataTypes.TEXT,
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "webhook"
+ },
tip: {
type: DataTypes.DOUBLE,
allowNull: true,
diff --git a/db/models/payments.js b/db/models/payments.js
index 94050a0b..c315a5a0 100644
--- a/db/models/payments.js
+++ b/db/models/payments.js
@@ -19,6 +19,15 @@ const attributes = {
comment: null,
field: "account_id"
},
+ invoice_id: {
+ type: DataTypes.INTEGER(11),
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "invoice_id"
+ },
user_id: {
type: DataTypes.INTEGER(11),
allowNull: true,