aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
Diffstat (limited to 'db/models')
-rw-r--r--db/models/invoices.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/models/invoices.js b/db/models/invoices.js
index d93e9214..b13a9545 100644
--- a/db/models/invoices.js
+++ b/db/models/invoices.js
@@ -130,8 +130,8 @@ const attributes = {
},
received: {
type: DataTypes.STRING(255),
- allowNull: true,
- defaultValue: null,
+ allowNull: false,
+ defaultValue: 0,
primaryKey: false,
autoIncrement: false,
comment: null,