import { BaseSchema } from '@adonisjs/lucid/schema'; export default class extends BaseSchema { tableName = 'games'; async up() { this.schema.createTable(this.tableName, (table) => { table.increments('id'); table.string('name').notNullable(); table.string('icon').notNullable(); table.string('type').notNullable(); table.integer('sort_order').defaultTo(0); table.timestamp('created_at'); table.timestamp('updated_at'); }); } async down() { this.schema.dropTable(this.tableName); } } //# sourceMappingURL=1778591345735_create_games_table.js.map