diff options
| author | Adam Soltys <[email protected]> | 2020-06-08 13:04:02 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-06-08 13:04:02 -0700 |
| commit | 7a3a07bc711ea57fd8a84e809e7ecd0d6e64b5c2 (patch) | |
| tree | b31a06affa4b932990744997c271f6d65502d60c /db/models/payments.js | |
| parent | 298672d3f50938ba06a16f8e04d607b7033703b8 (diff) | |
| download | coinos-server-7a3a07bc711ea57fd8a84e809e7ecd0d6e64b5c2.tar.gz coinos-server-7a3a07bc711ea57fd8a84e809e7ecd0d6e64b5c2.zip | |
reduce network traffic
Diffstat (limited to 'db/models/payments.js')
| -rw-r--r-- | db/models/payments.js | 8 |
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, |
