<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="upload_target_type" var="upload_target_type" />
		<column name="sid" var="sid" />
		<column name="module_srl" var="module_srl" filter="number" default="0" notnull="notnull" />
		<column name="member_srl" var="member_srl" default="0" />
		<column name="download_count" var="download_count" default="0" />
		<column name="direct_download" var="direct_download" notnull="notnull" default="N" />
		<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="thumbnail_filename" var="thumbnail_filename" />
		<column name="file_size" var="file_size" notnull="notnull" default="0" />
		<column name="mime_type" var="mime_type" notnull="notnull" />
		<column name="original_type" var="original_type" />
		<column name="width" var="width" />
		<column name="height" var="height" />
		<column name="duration" var="duration" />
		<column name="comment" var="comment" />
		<column name="isvalid" var="isvalid" default="N" />
		<column name="cover_image" var="is_cover" default="N" />
		<column name="regdate" var="regdate" default="curdate()" />
		<column name="ipaddress" var="ipaddress" default="ipaddress()" />
	</columns>
</query>
