<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
        http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">

    <include file="db/changelog/changes/001-create-user-management-schema.xml"/>
    <include file="db/changelog/changes/002-seed-roles-and-permissions.xml"/>
    <include file="db/changelog/changes/003-create-audit-logs-table.xml"/>
    <include file="db/changelog/changes/004-seed-admin-user.xml" context="dev"/>
    <include file="db/changelog/changes/005-create-masterdata-schema.xml"/>
    <include file="db/changelog/changes/006-create-supplier-schema.xml"/>
    <include file="db/changelog/changes/007-create-customer-schema.xml"/>
    <include file="db/changelog/changes/008-add-masterdata-permissions.xml"/>
    <include file="db/changelog/changes/009-create-storage-location-schema.xml"/>
    <include file="db/changelog/changes/010-create-recipe-schema.xml"/>
    <include file="db/changelog/changes/011-create-recipe-ingredients-table.xml"/>
    <include file="db/changelog/changes/012-create-recipe-production-steps-table.xml"/>
    <include file="db/changelog/changes/013-create-stock-schema.xml"/>
    <include file="db/changelog/changes/014-create-stock-batches-table.xml"/>
    <include file="db/changelog/changes/015-create-batches-table.xml"/>
    <include file="db/changelog/changes/016-create-batch-number-sequences-table.xml"/>
    <include file="db/changelog/changes/017-timestamps-to-timestamptz.xml"/>
    <include file="db/changelog/changes/018-add-article-id-to-recipes.xml"/>
    <include file="db/changelog/changes/019-create-batch-consumptions-table.xml"/>
    <include file="db/changelog/changes/020-add-version-to-batches.xml"/>
    <include file="db/changelog/changes/021-add-completion-fields-to-batches.xml"/>
    <include file="db/changelog/changes/022-add-cancellation-fields-to-batches.xml"/>
    <include file="db/changelog/changes/023-add-batch-cancel-permission.xml"/>
    <include file="db/changelog/changes/024-create-production-orders-table.xml"/>
    <include file="db/changelog/changes/025-seed-production-order-permissions.xml"/>
    <include file="db/changelog/changes/026-create-reservations-schema.xml"/>
    <include file="db/changelog/changes/027-add-released-status-to-production-orders.xml"/>
    <include file="db/changelog/changes/028-create-stock-movements-table.xml"/>
    <include file="db/changelog/changes/029-seed-stock-movement-permissions.xml"/>
    <include file="db/changelog/changes/030-add-batch-id-index-to-stock-movements.xml"/>

    <include file="db/changelog/changes/032-add-batch-id-to-production-orders.xml"/>
    <include file="db/changelog/changes/033-add-cancelled-reason-to-production-orders.xml"/>

    <include file="db/changelog/changes/034-create-inventory-counts-schema.xml"/>
    <include file="db/changelog/changes/035-seed-inventory-count-permissions.xml"/>
    <include file="db/changelog/changes/036-add-inventory-counts-composite-index.xml"/>
    <include file="db/changelog/changes/037-add-completed-by-to-inventory-counts.xml"/>
    <include file="db/changelog/changes/038-add-cancellation-reason-to-inventory-counts.xml"/>

</databaseChangeLog>
