<?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-3.5.xsd">

    <!-- initial JHipster tables (user etc.) -->
    <include file="config/liquibase/changelog/00000000000000_initial_schema.xml" relativeToChangelogFile="false"/>

    <!-- historicization for initial JHipster tables -->
    <include file="config/liquibase/historicization/historicization.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/historicization/historicization_User.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/historicization/historicization_UserAuthority.xml" relativeToChangelogFile="false"/>

    <!-- sample data. comes after historicization triggers, thus historicization applies -->
    <include file="config/liquibase/sample-data/users.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/sample-data/users_authorities.xml" relativeToChangelogFile="false"/>

    <!-- JHipster generated entity table changesets -->
    <include file="config/liquibase/changelog/20190507105332_added_entity_Customer.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105333_added_entity_Membership.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105334_added_entity_Share.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105335_added_entity_Asset.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105336_added_entity_SepaMandate.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105342_added_entity_UserRoleAssignment.xml" relativeToChangelogFile="false"/>
    <!-- jhipster-needle-liquibase-add-changelog - JHipster will add liquibase changelogs here -->

    <!-- JHipster generated constraints changesets -->
    <include file="config/liquibase/changelog/20190507105333_added_entity_constraints_Membership.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105334_added_entity_constraints_Share.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105335_added_entity_constraints_Asset.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105336_added_entity_constraints_SepaMandate.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/20190507105342_added_entity_constraints_UserRoleAssignment.xml" relativeToChangelogFile="false"/>
    <!-- jhipster-needle-liquibase-add-constraints-changelog - JHipster will add liquibase constraints changelogs here -->

    <!-- additional constraint changesets, not generated by JHipster -->
    <include file="config/liquibase/changelog/constraints_UserRoleAssignment.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/changelog/constraints_Membership.xml" relativeToChangelogFile="false"/>

    <!-- historicization for hsadmin specific tables -->
    <include file="config/liquibase/historicization/historicization_UserRoleAssignment.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/historicization/historicization_Customer.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/historicization/historicization_Membership.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/historicization/historicization_SepaMandate.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/historicization/historicization_Share.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/historicization/historicization_Asset.xml" relativeToChangelogFile="false"/>

    <!-- sample data. comes after historicization triggers, historicization applies -->
    <include file="config/liquibase/sample-data/user_role_assignments.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/sample-data/customers.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/sample-data/memberships.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/sample-data/shares.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/sample-data/assets.xml" relativeToChangelogFile="false"/>
    <include file="config/liquibase/sample-data/sepamandates.xml" relativeToChangelogFile="false"/>

</databaseChangeLog>
