aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
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,