diff options
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, |
