import { belongsTo, column } from '@adonisjs/lucid/orm';
export const belongsToWithIdColumn = (model, options, idColumnOptions) => {
    return (target, propertyKey) => {
        belongsTo(model, options)(target, propertyKey);
        const foreignKey = `${propertyKey}Id`;
        column(idColumnOptions)(target, foreignKey);
    };
};
//# sourceMappingURL=belong_to_with_id_column.js.map