<?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_job_details-table">
        <createTable tableName="qrtz_job_details">
            <column name="sched_name" type="VARCHAR(120)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="qrtz_job_details_pkey"/>
            </column>
            <column name="job_name" type="VARCHAR(200)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="qrtz_job_details_pkey"/>
            </column>
            <column name="job_group" type="VARCHAR(200)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="qrtz_job_details_pkey"/>
            </column>
            <column name="description" type="VARCHAR(250)"/>
            <column name="job_class_name" type="VARCHAR(250)">
                <constraints nullable="false"/>
            </column>
            <column name="is_durable" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="is_nonconcurrent" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="is_update_data" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="requests_recovery" type="BOOLEAN">
                <constraints nullable="false"/>
            </column>
            <column name="job_data" type="BYTEA"/>
        </createTable>
    </changeSet>

    <changeSet author="Sheldan" id="qrtz_job_details-index1">
        <createIndex indexName="idx_qrtz_j_grp" tableName="qrtz_job_details">
            <column name="sched_name"/>
            <column name="job_group"/>
        </createIndex>
    </changeSet>
    <changeSet author="Sheldan" id="qrtz_job_details-index2">
        <createIndex indexName="idx_qrtz_j_req_recovery" tableName="qrtz_job_details">
            <column name="sched_name"/>
            <column name="requests_recovery"/>
        </createIndex>
    </changeSet>
</databaseChangeLog>