|
@@ -28,6 +28,7 @@ let init = function(db){
|
|
table.string('username')
|
|
table.string('username')
|
|
table.string('password')
|
|
table.string('password')
|
|
table.string('token')
|
|
table.string('token')
|
|
|
|
+ table.integer('enabled')
|
|
table.integer('timestamp')
|
|
table.integer('timestamp')
|
|
}).then(() => {
|
|
}).then(() => {
|
|
db.table('users').where({username: 'root'}).then((user) => {
|
|
db.table('users').where({username: 'root'}).then((user) => {
|
|
@@ -47,4 +48,4 @@ let init = function(db){
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-module.exports = init
|
|
|
|
|
|
+module.exports = init
|