import BaseSchema from '@ioc:Adonis/Lucid/Schema' export default class {{name}} extends BaseSchema { protected tableName = '{{tableName}}' public async up() { this.schema.createTable(this.tableName, (table) => { if (process.env.NODE_ENV === 'test') { table.uuid('test_id').notNullable() } table.uuid('id').primary() table.string('name').notNullable() table.timestamp('created_at', { useTz: true }).notNullable() table.timestamp('updated_at', { useTz: true }).notNullable() }) } public async down() { this.schema.dropTable(this.tableName) } }