"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: 'm_supply_pushes',
    schema: 'logs'
};
async function up(query) {
    await query.createTable(TABLE, {
        id: {
            type: _sequelize.DataTypes.UUID,
            allowNull: false,
            primaryKey: true,
            defaultValue: _sequelize.Sequelize.fn('uuid_generate_v4')
        },
        created_at: {
            type: _sequelize.DataTypes.DATE,
            allowNull: false
        },
        updated_at: {
            type: _sequelize.DataTypes.DATE,
            allowNull: false
        },
        deleted_at: {
            type: _sequelize.DataTypes.DATE,
            allowNull: true
        },
        status: {
            type: _sequelize.DataTypes.TEXT,
            allowNull: false
        },
        message: {
            type: _sequelize.DataTypes.TEXT,
            allowNull: true
        },
        items: {
            type: _sequelize.DataTypes.JSONB,
            allowNull: true
        },
        min_medication_created_at: {
            type: _sequelize.DataTypes.DATE,
            allowNull: false
        },
        max_medication_created_at: {
            type: _sequelize.DataTypes.DATE,
            allowNull: false
        },
        min_medication_id: {
            type: _sequelize.DataTypes.TEXT,
            allowNull: false
        },
        max_medication_id: {
            type: _sequelize.DataTypes.TEXT,
            allowNull: false
        }
    });
}
async function down(query) {
    await query.dropTable(TABLE);
}

//# sourceMappingURL=1769456144965-createMSupplyLogging.js.map