<query id="insertDocument" action="insert">
    <tables>
        <table name="documents" />
    </tables>
    <columns>
        <column name="document_srl" var="document_srl" filter="number" notnull="notnull" />
        <column name="module_srl" var="module_srl" filter="number" default="0" />
        <column name="category_srl" var="category_srl" filter="number" default="0" />
        <column name="is_notice" var="is_notice" notnull="notnull" default="N" />
        <column name="is_secret" var="is_secret" notnull="notnull" default="N" />
        <column name="title" var="title" notnull="notnull" minlength="1" maxlength="250" />
        <column name="content" var="content" notnull="notnull" />
        <column name="readed_count" var="readed_count" default="0" />
        <column name="voted_count" var="voted_count" default="0" />
        <column name="comment_count" var="comment_count" default="0" />
        <column name="trackback_count" var="trackback_count" default="0" />
        <column name="uploaded_count" var="uploaded_count" default="0" />
        <column name="password" var="password" minlength="2" maxlength="60" />
        <column name="nick_name" var="nick_name" notnull="notnull" minlength="1" maxlength="40" />
        <column name="member_srl" var="member_srl" default="0" filter="number" />
        <column name="user_id" var="user_id" default="" />
        <column name="user_name" var="user_name" default="" />
        <column name="email_address" var="email_address" filter="email" maxlength="250" />
        <column name="homepage" var="homepage" filter="homepage" maxlength="250" />
        <column name="tags" var="tags" />
        <column name="regdate" var="regdate" default="curdate()" />
        <column name="last_update" var="last_update" default="curdate()" />
        <column name="ipaddress" var="ipaddress" default="ipaddress()" />
        <column name="list_order" var="list_order" default="0" />
        <column name="update_order" var="update_order" default="0" />
        <column name="allow_comment" var="allow_comment" default="Y" />
        <column name="lock_comment" var="lock_comment" default="N" />
        <column name="allow_trackback" var="allow_trackback" default="Y" />
        <column name="notify_message" var="notify_message" default="N" />
        <column name="extra_vars1" var="extra_vars1" />
        <column name="extra_vars2" var="extra_vars2" />
        <column name="extra_vars3" var="extra_vars3" />
        <column name="extra_vars4" var="extra_vars4" />
        <column name="extra_vars5" var="extra_vars5" />
        <column name="extra_vars6" var="extra_vars6" />
        <column name="extra_vars7" var="extra_vars7" />
        <column name="extra_vars8" var="extra_vars8" />
        <column name="extra_vars9" var="extra_vars9" />
        <column name="extra_vars10" var="extra_vars10" />
        <column name="extra_vars11" var="extra_vars11" />
        <column name="extra_vars12" var="extra_vars12" />
        <column name="extra_vars13" var="extra_vars13" />
        <column name="extra_vars14" var="extra_vars14" />
        <column name="extra_vars15" var="extra_vars15" />
        <column name="extra_vars16" var="extra_vars16" />
        <column name="extra_vars17" var="extra_vars17" />
        <column name="extra_vars18" var="extra_vars18" />
        <column name="extra_vars19" var="extra_vars19" />
        <column name="extra_vars20" var="extra_vars20" />
    </columns>
</query>
