From d083108e721cf4bf653ebf5e644da5f02206a895 Mon Sep 17 00:00:00 2001
From: Andreas Fischer <bantu@owncloud.com>
Date: Tue, 26 Nov 2013 20:41:05 +0100
Subject: [PATCH] db-doc: permissions description

---
 db_structure.xml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/db_structure.xml b/db_structure.xml
index 623264e32c0..ab33a488dc5 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -395,11 +395,15 @@
 	</table>
 
 	<table>
-
+		<!--
+		Maps (fileid, user) to an integer which is a permission bitfield.
+		 - E.g. (4, admin) -> 27
+		-->
 		<name>*dbprefix*permissions</name>
 
 		<declaration>
 
+			<!-- Foreign Key *dbprefix*filecache::fileid -->
 			<field>
 				<name>fileid</name>
 				<type>integer</type>
@@ -408,6 +412,7 @@
 				<length>4</length>
 			</field>
 
+			<!-- Foreign Key *dbprefix*users::uid -->
 			<field>
 				<name>user</name>
 				<type>text</type>