<query id="insertFile" action="insert">
    <tables>
        <table name="files" />
    </tables>
    <columns>
        <column name="file_srl" var="file_srl" notnull="notnull" />
        <column name="upload_target_srl" var="upload_target_srl" filter="number" default="0" notnull="notnull" />
        <column name="sid" var="sid" />
        <column name="module_srl" var="module_srl" filter="number" default="0" notnull="notnull" />
        <column name="source_filename" var="source_filename" notnull="notnull" minlength="1" maxlength="250" />
        <column name="uploaded_filename" var="uploaded_filename" notnull="notnull" minlength="1" maxlength="250" />
        <column name="file_size" var="file_size" notnull="notnull" default="0" />
        <column name="direct_download" var="direct_download" notnull="notnull" default="N" />
        <column name="comment" var="comment" />
        <column name="download_count" var="download_count" default="0" />
        <column name="member_srl" var="member_srl" default="0" />
        <column name="regdate" var="regdate" default="curdate()" />
        <column name="ipaddress" var="ipaddress" default="ipaddress()" />
        <column name="isvalid" var="isvalid" default="N" />
    </columns>
</query>
