From 0fb703b85d99c888d1df971e7c3562f7918e0ff8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 29 Jun 2021 10:28:58 -0700 Subject: add webhooks to invoices --- db/models/invoices.js | 9 +++++++++ db/models/payments.js | 9 +++++++++ 2 files changed, 18 insertions(+) (limited to 'db/models') 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, -- cgit v1.2.3