aboutsummaryrefslogtreecommitdiffstats
path: root/db/models/accounts.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-06-14 12:15:58 -0700
committerAdam Soltys <[email protected]>2022-06-14 12:15:58 -0700
commitffbd27b2e9ddcb52a37febc0855e16b4fe09dbdc (patch)
treeffb85f6472fc52e253f9c88ae87b23bdf7f78218 /db/models/accounts.js
parentf37c8ba68418a2a325f45a7a36c139cb5bc696aa (diff)
downloadcoinos-server-ffbd27b2e9ddcb52a37febc0855e16b4fe09dbdc.tar.gz
coinos-server-ffbd27b2e9ddcb52a37febc0855e16b4fe09dbdc.zip
add multiple credits columns
Diffstat (limited to 'db/models/accounts.js')
-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 88ad2d44..6f85b771 100644
--- a/db/models/accounts.js
+++ b/db/models/accounts.js
@@ -124,14 +124,23 @@ const attributes = {
comment: null,
field: "balance"
},
- fee_credits: {
+ btc_credits: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: 0.0,
primaryKey: false,
autoIncrement: false,
comment: "Credits that can be used towards paying withdrawal fees",
- field: "fee_credits"
+ field: "btc_credits"
+ },
+ liquid_credits: {
+ type: DataTypes.DOUBLE,
+ allowNull: true,
+ defaultValue: 0.0,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: "Credits that can be used towards paying withdrawal fees",
+ field: "liquid_credits"
},
pending: {
type: DataTypes.DOUBLE,