From 8fcd976a04d1cfffdf84306c39a4d6c526aa0a22 Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Mon, 6 Jun 2022 14:51:48 -0500 Subject: Added withdrawal fee credits, which can pay withdrawal fees --- db/models/accounts.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'db/models') 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, -- cgit v1.2.3