aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-01-29 14:33:51 -0800
committerAdam Soltys <[email protected]>2020-01-29 14:33:51 -0800
commitc3ed4317d37f1c760392d9a89610d07ccd3a7d03 (patch)
tree3c73ea9e8ee04c0585a3dce4eb5de5a8f2634100 /models
parente34f41697eb4b96508dc27197b91ef06bd47a641 (diff)
downloadcoinos-server-c3ed4317d37f1c760392d9a89610d07ccd3a7d03.tar.gz
coinos-server-c3ed4317d37f1c760392d9a89610d07ccd3a7d03.zip
set payment currency
Diffstat (limited to 'models')
-rw-r--r--models/users.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/models/users.js b/models/users.js
index 40eb00f5..c6a88f04 100644
--- a/models/users.js
+++ b/models/users.js
@@ -94,6 +94,15 @@ module.exports = sequelize => {
comment: null,
field: "currency"
},
+ currencies: {
+ type: DataTypes.JSON,
+ allowNull: false,
+ defaultValue: ["USD"],
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "currencies"
+ },
commission: {
type: DataTypes.STRING(255),
allowNull: true,