import { BaseSchema } from '@adonisjs/lucid/schema' export default class extends BaseSchema { protected tableName = 'installed_tiers' async up() { this.schema.createTable(this.tableName, (table) => { table.increments('id').primary() table.string('category_slug').notNullable().unique() table.string('tier_slug').notNullable() table.timestamp('created_at') table.timestamp('updated_at') }) } async down() { this.schema.dropTable(this.tableName) } }