import { BaseSchema } from '@adonisjs/lucid/schema';
export default class extends BaseSchema {
    tableName = 'scammer_guards';
    async up() {
        this.schema.createTable(this.tableName, (table) => {
            table.increments('id');
            table.string('phone').notNullable();
            table.string('name').nullable();
            table.text('reason').nullable();
            table.enum('action', ['log', 'warn', 'kick', 'block']).notNullable().defaultTo('log');
            table.boolean('is_active').notNullable().defaultTo(true);
            table.integer('added_by').unsigned().nullable().references('id').inTable('users').onDelete('SET NULL');
            table.integer('hit_count').notNullable().defaultTo(0);
            table.timestamp('last_seen_at').nullable();
            table.timestamp('created_at');
            table.timestamp('updated_at');
        });
    }
    async down() {
        this.schema.dropTable(this.tableName);
    }
}
//# sourceMappingURL=1760200000000_create_scammer_guards_table.js.map
