aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-09-08 07:26:14 -0700
committerAdam Soltys <[email protected]>2020-09-08 07:26:14 -0700
commitb5607df482440b55bd3e802f5bea4ead95e6491e (patch)
tree6b8948fbb703c1feaca1aca10f3ac86c8062768b /db/models
parente40e68f49b10d6ef70546f7128bad891256525c0 (diff)
downloadcoinos-server-b5607df482440b55bd3e802f5bea4ead95e6491e.tar.gz
coinos-server-b5607df482440b55bd3e802f5bea4ead95e6491e.zip
bump account index
Diffstat (limited to 'db/models')
-rw-r--r--db/models/accounts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/models/accounts.js b/db/models/accounts.js
index acd321b2..fc386816 100644
--- a/db/models/accounts.js
+++ b/db/models/accounts.js
@@ -135,8 +135,8 @@ const attributes = {
},
index: {
type: DataTypes.INTEGER(11),
- allowNull: true,
- defaultValue: null,
+ allowNull: false,
+ defaultValue: 0,
primaryKey: false,
autoIncrement: false,
comment: null,