diff options
Diffstat (limited to 'database/migrations/1503250034280_token.js')
-rw-r--r-- | database/migrations/1503250034280_token.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/database/migrations/1503250034280_token.js b/database/migrations/1503250034280_token.js deleted file mode 100644 index ad97dba..0000000 --- a/database/migrations/1503250034280_token.js +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | |||
2 | /** @type {import('@adonisjs/lucid/src/Schema')} */ | ||
3 | const Schema = use('Schema'); | ||
4 | |||
5 | class TokensSchema extends Schema { | ||
6 | up() { | ||
7 | this.create('tokens', (table) => { | ||
8 | table.increments(); | ||
9 | table.integer('user_id').unsigned().references('id').inTable('users'); | ||
10 | table.string('token', 255).notNullable().unique().index(); | ||
11 | table.string('type', 80).notNullable(); | ||
12 | table.boolean('is_revoked').defaultTo(false); | ||
13 | table.timestamps(); | ||
14 | }); | ||
15 | } | ||
16 | |||
17 | down() { | ||
18 | this.drop('tokens'); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | module.exports = TokensSchema; | ||