aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-06-08 13:04:02 -0700
committerAdam Soltys <[email protected]>2020-06-08 13:04:02 -0700
commit7a3a07bc711ea57fd8a84e809e7ecd0d6e64b5c2 (patch)
treeb31a06affa4b932990744997c271f6d65502d60c /db/models
parent298672d3f50938ba06a16f8e04d607b7033703b8 (diff)
downloadcoinos-server-7a3a07bc711ea57fd8a84e809e7ecd0d6e64b5c2.tar.gz
coinos-server-7a3a07bc711ea57fd8a84e809e7ecd0d6e64b5c2.zip
reduce network traffic
Diffstat (limited to 'db/models')
-rw-r--r--db/models/payments.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/db/models/payments.js b/db/models/payments.js
index 076a644f..51ef2550 100644
--- a/db/models/payments.js
+++ b/db/models/payments.js
@@ -120,8 +120,8 @@ const attributes = {
},
fee: {
type: DataTypes.DOUBLE,
- allowNull: true,
- defaultValue: null,
+ allowNull: false,
+ defaultValue: 0,
primaryKey: false,
autoIncrement: false,
comment: null,
@@ -129,8 +129,8 @@ const attributes = {
},
tip: {
type: DataTypes.DOUBLE,
- allowNull: true,
- defaultValue: null,
+ allowNull: false,
+ defaultValue: 0,
primaryKey: false,
autoIncrement: false,
comment: null,