import BaseSchema from '@ioc:Adonis/Lucid/Schema'; export default class Roles extends BaseSchema { protected tableName = 'roles'; public async up() { this.schema.createTable(this.tableName, table => { table.increments('id'); table.string('name'); table.string('slug'); table.timestamp('created_at', { useTz: true }); table.timestamp('updated_at', { useTz: true }); }); } public async down() { this.schema.dropTable(this.tableName); } }