<?xml version="1.0" encoding="ISO-8859-1" ?>
<database>

	<name>*dbname*</name>
	<create>true</create>
	<overwrite>false</overwrite>
	<charset>utf8</charset>

	<table>
		<name>*dbprefix*user_saml_users</name>
		<declaration>
			<field>
				<name>uid</name>
				<type>text</type>
				<default></default>
				<notnull>true</notnull>
				<length>64</length>
			</field>

			<field>
				<name>displayname</name>
				<type>text</type>
				<default></default>
				<notnull>true</notnull>
				<length>255</length>
			</field>
		</declaration>
	</table>

	<table>
		<!-- Copied table from core: Nextcloud 9 does not support application
		specific passwords and so we -->
		<name>*dbprefix*user_saml_auth_token</name>

		<declaration>
			<field>
				<name>id</name>
				<type>integer</type>
				<default>0</default>
				<notnull>true</notnull>
				<autoincrement>1</autoincrement>
				<unsigned>true</unsigned>
				<length>4</length>
			</field>

			<!-- Foreign Key users::uid -->
			<field>
				<name>uid</name>
				<type>text</type>
				<default></default>
				<notnull>true</notnull>
				<length>64</length>
			</field>

			<field>
				<name>name</name>
				<type>clob</type>
				<default></default>
				<notnull>true</notnull>
			</field>

			<field>
				<name>token</name>
				<type>text</type>
				<default></default>
				<notnull>true</notnull>
				<length>200</length>
			</field>
		</declaration>
	</table>
</database>