From 978cc4f2886bbafd8d04ed000f1615600f87eb69 Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Fri, 17 Jun 2022 06:01:11 -0500 Subject: Added Lightning credits to the database model --- db/models/accounts.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/db/models/accounts.js b/db/models/accounts.js index 6f85b771..59e2f1d3 100644 --- a/db/models/accounts.js +++ b/db/models/accounts.js @@ -130,7 +130,7 @@ const attributes = { defaultValue: 0.0, primaryKey: false, autoIncrement: false, - comment: "Credits that can be used towards paying withdrawal fees", + comment: "Credits that can be used towards paying Bitcoin withdrawal fees", field: "btc_credits" }, liquid_credits: { @@ -139,7 +139,16 @@ const attributes = { defaultValue: 0.0, primaryKey: false, autoIncrement: false, - comment: "Credits that can be used towards paying withdrawal fees", + comment: "Credits that can be used towards paying Liquid withdrawal fees", + field: "liquid_credits" + }, + lightning_credits: { + type: DataTypes.DOUBLE, + allowNull: true, + defaultValue: 0.0, + primaryKey: false, + autoIncrement: false, + comment: "Credits that can be used towards paying Lightning withdrawal fees", field: "liquid_credits" }, pending: { -- cgit v1.2.3