<query id="insertSdocument" 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="lang_code" var="lang_code" default="" />
        <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="title_bold" var="title_bold" default="N" />
        <column name="title_color" var="title_color" default="N" />
        <column name="content" var="content" notnull="notnull" />
        <column name="readed_count" var="readed_count" default="0" />
		<column name="blamed_count" var="blamed_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="extra_vars" var="extra_vars" />
        <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="plan_sdate" var="plan_sdate" default="0" />
        <column name="plan_edate" var="plan_edate" default="0" />
        <column name="plan_bgcolor" var="plan_bgcolor" />
        <column name="plan_check" var="plan_check" />
        <column name="plan_period" var="plan_period" />
        <column name="plan_value" var="plan_value" />
        <column name="plan_time" var="plan_time" />
    </columns>
</query>
