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



    <!--输出实体[PAY_OPEN_ACCESS]数据结构 -->
    <changeSet author="a_A_5d9d78509" id="tab-pay_open_access-3-1">
        <createTable tableName="IBZOPENACCESS">
                <column name="ACCESSID" remarks="" type="VARCHAR(100)">
                    <constraints primaryKey="true" primaryKeyName="PK_PAY_OPEN_ACCESS_ACCESSID"/>
                </column>
                <column name="ACCESSNAME" remarks="" type="VARCHAR(100)">
                </column>
                <column name="OPEN_TYPE" remarks="" type="VARCHAR(100)">
                </column>
                <column name="ACCESS_KEY" remarks="" type="VARCHAR(100)">
                </column>
                <column name="SECRET_KEY" remarks="" type="VARCHAR(100)">
                </column>
                <column name="REGION_ID" remarks="" type="VARCHAR(100)">
                </column>
                <column name="ACCESS_TOKEN" remarks="" type="VARCHAR(1000)">
                </column>
                <column name="EXPIRES_TIME" remarks="" type="DATETIME">
                </column>
                <column name="DISABLED" remarks="" type="INT">
                </column>
                <column name="REDIRECT_URI" remarks="" type="VARCHAR(500)">
                </column>
                <column name="NOTIFY_URL" remarks="" type="VARCHAR(500)">
                </column>
        </createTable>
    </changeSet>


    <!--输出实体[PAY_TRADE]数据结构 -->
    <changeSet author="a_A_5d9d78509" id="tab-pay_trade-4-2">
        <createTable tableName="IBZPAYTRADE">
                <column name="SUBJECT" remarks="" type="VARCHAR(100)">
                </column>
                <column name="TOTALAMOUNT" remarks="" type="VARCHAR(100)">
                </column>
                <column name="TRADENAME" remarks="" type="VARCHAR(100)">
                </column>
                <column name="TRADETYPE" remarks="" type="VARCHAR(100)">
                </column>
                <column name="TRADESTATUS" remarks="" type="VARCHAR(60)">
                </column>
                <column name="OUTTRADENO" remarks="" type="VARCHAR(100)">
                </column>
                <column name="TRADEID" remarks="" type="VARCHAR(100)">
                    <constraints primaryKey="true" primaryKeyName="PK_PAY_TRADE_TRADEID"/>
                </column>
                <column name="APPID" remarks="" type="VARCHAR(100)">
                </column>
                <column name="ACCESSNAME" remarks="" type="VARCHAR(100)">
                </column>
                <column name="ACCESSID" remarks="" type="VARCHAR(100)">
                </column>
        </createTable>
    </changeSet>

        <!--输出实体[PAY_OPEN_ACCESS]外键关系 -->
        <!--输出实体[PAY_TRADE]外键关系 -->

</databaseChangeLog>
