import { BaseSchema } from '@adonisjs/lucid/schema' export default class extends BaseSchema { protected tableName = 'images' async up() { this.schema.createTable(this.tableName, (table) => { table.increments('id') table.string('file_path').notNullable() table.string('description').nullable() table.boolean('is_visible').defaultTo(true) table.timestamp('created_at') table.timestamp('updated_at') }) } async down() { this.schema.dropTable(this.tableName) } }