aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-06-13 16:16:37 -0500
committerAdrien Hopkins <[email protected]>2022-06-13 16:16:37 -0500
commitf37c8ba68418a2a325f45a7a36c139cb5bc696aa (patch)
tree98759089e8015931030877fb064507150ade7c36 /db
parent9527f8a68f6a0a329c82dd8350703d10070437d5 (diff)
parent1c02aa63933a234faa45eecbfdc82dae7f6e174c (diff)
downloadcoinos-server-f37c8ba68418a2a325f45a7a36c139cb5bc696aa.tar.gz
coinos-server-f37c8ba68418a2a325f45a7a36c139cb5bc696aa.zip
Merge branch 'feature-withdrawal-fee'
Diffstat (limited to 'db')
-rw-r--r--db/models/accounts.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/models/accounts.js b/db/models/accounts.js
index 12fef548..88ad2d44 100644
--- a/db/models/accounts.js
+++ b/db/models/accounts.js
@@ -124,6 +124,15 @@ const attributes = {
comment: null,
field: "balance"
},
+ fee_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"
+ },
pending: {
type: DataTypes.DOUBLE,
allowNull: true,