Merge pull request #6 from alanaasmaa/patch-1

FIX: Added type table
This commit is contained in:
Romain Lanz 2017-10-30 17:52:21 +01:00 committed by GitHub
commit 1941a71971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ class TokensSchema extends Schema {
table.increments() table.increments()
table.integer('user_id').unsigned().references('id').inTable('users') table.integer('user_id').unsigned().references('id').inTable('users')
table.string('token', 40).notNullable().unique() table.string('token', 40).notNullable().unique()
table.string('type', 80).notNullable()
table.boolean('is_revoked').defaultTo(false) table.boolean('is_revoked').defaultTo(false)
table.timestamps() table.timestamps()
}) })