aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-06-17 06:01:11 -0500
committerAdrien Hopkins <[email protected]>2022-06-17 06:01:11 -0500
commit978cc4f2886bbafd8d04ed000f1615600f87eb69 (patch)
tree402ef3825b166791e223d9da07d5d56be2c876d8 /db/models
parent67e2ec07cf90cfbd1b5c1cbed18c4dffe38ea4aa (diff)
downloadcoinos-server-978cc4f2886bbafd8d04ed000f1615600f87eb69.tar.gz
coinos-server-978cc4f2886bbafd8d04ed000f1615600f87eb69.zip
Added Lightning credits to the database model
Diffstat (limited to 'db/models')
-rw-r--r--db/models/accounts.js13
1 files 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: {