<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<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 https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.26.xsd" >
    <changeSet author="Sheldan" id="qrtz_cron_triggers-table">
        <createTable tableName="qrtz_cron_triggers">
            <column name="sched_name" type="VARCHAR(120)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="qrtz_cron_triggers_pkey"/>
            </column>
            <column name="trigger_name" type="VARCHAR(200)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="qrtz_cron_triggers_pkey"/>
            </column>
            <column name="trigger_group" type="VARCHAR(200)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="qrtz_cron_triggers_pkey"/>
            </column>
            <column name="cron_expression" type="VARCHAR(120)">
                <constraints nullable="false"/>
            </column>
            <column name="time_zone_id" type="VARCHAR(80)"/>
        </createTable>
    </changeSet>
    <changeSet author="Sheldan" id="qrtz_cron_triggers-qrtz_cron_triggers_sched_name_trigger_name_trigger_group_fkey">
        <addForeignKeyConstraint baseColumnNames="sched_name,trigger_name,trigger_group" baseTableName="qrtz_cron_triggers" constraintName="qrtz_cron_triggers_sched_name_trigger_name_trigger_group_fkey" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="sched_name,trigger_name,trigger_group" referencedTableName="qrtz_triggers" validate="true"/>
    </changeSet>
</databaseChangeLog>