<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
    <table name="coursereference_verbose_log" resource="default" engine="innodb" comment="Course Reference Verbose Logs">
        <column xsi:type="int" name="log_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Log ID"/>
        <column name="course_id" nullable="true" xsi:type="varchar" comment="Course ID" length="30"/>
        <column name="coursereference_id" xsi:type="int" padding="10" unsigned="true" nullable="true" comment="Course Reference ID"/>
        <column name="old_price" nullable="true" xsi:type="decimal" scale="4" precision="12" comment="Old Price"/>
        <column name="new_price" nullable="true" xsi:type="decimal" scale="4" precision="12" comment="New Price"/>
        <column name="area" nullable="true" xsi:type="varchar" comment="Area Code" length="20"/>
        <column name="user_info" nullable="true" xsi:type="varchar" comment="User Info" length="255"/>
        <column name="script_name" nullable="true" xsi:type="varchar" comment="Script Name" length="255"/>
        <column name="ip_address" nullable="true" xsi:type="varchar" comment="IP Address" length="50"/>
        <column name="details" nullable="true" xsi:type="text" comment="Full Details / Trace"/>
        <column name="created_at" xsi:type="timestamp" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="log_id"/>
        </constraint>
    </table>
</schema>
