import { BaseSchema } from '@adonisjs/lucid/schema';
export default class extends BaseSchema {
    tableName = 'experience_project';
    async up() {
        this.schema.createTable(this.tableName, (table) => {
            table.increments('id');
            table.integer('project_id').unsigned().references('projects.id').onDelete('CASCADE');
            table.integer('experience_id').unsigned().references('experiences.id').onDelete('CASCADE');
            table.unique(['project_id', 'experience_id']);
            table.timestamp('created_at');
            table.timestamp('updated_at');
        });
    }
    async down() {
        this.schema.dropTable(this.tableName);
    }
}
//# sourceMappingURL=1771413376813_create_create_project_experiences_table.js.map