Rework migrations schemes

This commit is contained in:
2021-08-16 22:32:08 +02:00
parent e22e0b55c5
commit 09e5b2f76f
11 changed files with 32 additions and 37 deletions

View File

@@ -9,7 +9,10 @@ export default class Users extends BaseSchema {
table.increments('id').primary()
table.string('username', 255).notNullable()
table.string('email', 255).notNullable()
table.string('password', 180).defaultTo(this.randomPassword()).notNullable()
table
.string('password', 180)
.defaultTo(this.randomPassword())
.notNullable()
table.boolean('is_confirmed').defaultTo(false).notNullable()
table.string('remember_me_token').defaultTo(null).nullable()
table.string('confirmation_token').defaultTo(null).nullable()