"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get down () {
        return down;
    },
    get up () {
        return up;
    }
});
const _sequelize = require("sequelize");
const TABLE = {
    tableName: 'medication_dispenses',
    schema: 'public'
};
const COLUMN = 'medication_preset_label_id';
async function up(query) {
    await query.addColumn(TABLE, COLUMN, {
        type: _sequelize.DataTypes.STRING,
        allowNull: true,
        references: {
            model: 'reference_data',
            key: 'id'
        },
        onDelete: 'SET NULL'
    });
}
async function down(query) {
    // DESTRUCTIVE: removes recorded preset selections from existing dispenses.
    await query.removeColumn(TABLE, COLUMN);
}

//# sourceMappingURL=1780009546262-addMedicationPresetLabelFkToMedicationDispenses.js.map