summaryrefslogtreecommitdiffstats
path: root/apps/files_external/appinfo/database.xml
blob: e39144931a77b1aaffd5c8b784be1bf98a8adfb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
generated by cgit v1.2.3 (git 2.39.1) at 2024-12-28 21:06:21 +0000
 


n>
			</field>
		</declaration>
	</table>
	<table>
		<name>*dbprefix*external_applicable</name>
		<declaration>
			<field>
				<name>applicable_id</name>
				<type>integer</type>
				<default>0</default>
				<notnull>true</notnull>
				<autoincrement>1</autoincrement>
				<length>6</length>
			</field>
			<field>
				<!--foreign key: external_mounts.mount_id-->
				<name>mount_id</name>
				<type>integer</type>
				<notnull>true</notnull>
				<length>6</length>
			</field>
			<field>
				<!-- possible mount types: global = 1, group = 2, user = 3 -->
				<name>type</name>
				<type>integer</type>
				<length>4</length>
				<notnull>true</notnull>
			</field>
			<field>
				<!-- user_id, group_id or null for global mounts -->
				<name>value</name>
				<type>text</type>
				<length>64</length>
			</field>

			<index>
				<name>applicable_mount</name>
				<field>
					<name>mount_id</name>
					<sorting>ascending</sorting>
				</field>
			</index>
			<index>
				<name>applicable_type_value</name>
				<field>
					<name>type</name>
					<sorting>ascending</sorting>
				</field>
				<field>
					<name>value</name>
					<sorting>ascending</sorting>
				</field>
			</index>
			<index>
				<name>applicable_type_value_mount</name>
				<unique>true</unique>
				<field>
					<name>type</name>
					<sorting>ascending</sorting>
				</field>
				<field>
					<name>value</name>
					<sorting>ascending</sorting>
				</field>
				<field>
					<name>mount_id</name>
					<sorting>ascending</sorting>
				</field>
			</index>
		</declaration>
	</table>

	<table>
		<name>*dbprefix*external_config</name>
		<declaration>
			<field>
				<name>config_id</name>
				<type>integer</type>
				<default>0</default>
				<notnull>true</notnull>
				<autoincrement>1</autoincrement>
				<length>6</length>
			</field>
			<field>
				<!--foreign key: external_mounts.mount_id-->
				<name>mount_id</name>
				<type>integer</type>
				<notnull>true</notnull>
				<length>6</length>
			</field>
			<field>
				<name>key</name>
				<type>text</type>
				<notnull>true</notnull>
				<length>64</length>
			</field>
			<field>
				<name>value</name>
				<type>text</type>
				<notnull>false</notnull>
				<length>4096</length>
			</field>

			<index>
				<name>config_mount</name>
				<field>
					<name>mount_id</name>
					<sorting>ascending</sorting>
				</field>
			</index>
			<index>
				<name>config_mount_key</name>
				<unique>true</unique>
				<field>
					<name>mount_id</name>
					<sorting>ascending</sorting>
				</field>
				<field>
					<name>key</name>
					<sorting>ascending</sorting>
				</field>
			</index>
		</declaration>
	</table>

	<table>
		<name>*dbprefix*external_options</name>
		<declaration>
			<field>
				<name>option_id</name>
				<type>integer</type>
				<default>0</default>
				<notnull>true</notnull>
				<autoincrement>1</autoincrement>
				<length>6</length>
			</field>
			<field>
				<!--foreign key: external_mounts.mount_id-->
				<name>mount_id</name>
				<type>integer</type>
				<notnull>true</notnull>
				<length>6</length>
			</field>
			<field>
				<name>key</name>
				<type>text</type>
				<notnull>true</notnull>
				<length>64</length>
			</field>
			<field>
				<name>value</name>
				<type>text</type>
				<notnull>true</notnull>
				<length>256</length>
			</field>

			<index>
				<name>option_mount</name>
				<field>
					<name>mount_id</name>
					<sorting>ascending</sorting>
				</field>
			</index>
			<index>
				<name>option_mount_key</name>
				<unique>true</unique>
				<field>
					<name>mount_id</name>
					<sorting>ascending</sorting>
				</field>
				<field>
					<name>key</name>
					<sorting>ascending</sorting>
				</field>
			</index>
		</declaration>
	</table>
</database>