<?xml version="1.0" encoding="ISO-8859-1" ?>
<database>
	<name>*dbname*</name>
	<create>true</create>
	<overwrite>false</overwrite>
	<charset>utf8</charset>
	<table>
		<name>*dbprefix*retention</name>
		<declaration>
			<field>
				<name>id</name>
				<type>integer</type>
				<default>0</default>
				<notnull>true</notnull>
				<autoincrement>1</autoincrement>
				<length>4</length>
			</field>
			<field>
				<name>tag_id</name>
				<type>integer</type>
				<notnull>true</notnull>
				<length>4</length>
				<comments>Foreign key into the systemtag table</comments>
			</field>
			<field>
				<name>time_unit</name>
				<type>integer</type>
				<notnull>true</notnull>
				<length>4</length>
			</field>
			<field>
				<name>time_amount</name>
				<type>integer</type>
				<notnull>true</notnull>
				<length>1</length>
			</field>
			<index>
				<name>retention_tag</name>
				<field>
					<name>tag_id</name>
					<sorting>ascending</sorting>
				</field>
			</index>
		</declaration>
	</table>
</database>
