| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | <?xml version="1.0" encoding="ISO-8859-1" ?> | 
					
						
							|  |  |  | <database> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:13:40 +03:00
										 |  |  | 	<name>*dbname*</name> | 
					
						
							|  |  |  | 	<create>true</create> | 
					
						
							|  |  |  | 	<overwrite>false</overwrite> | 
					
						
							|  |  |  | 	<charset>utf8</charset> | 
					
						
							|  |  |  | 	<table> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 		<name>*dbprefix*richdocuments_session</name> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 		<declaration> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>es_id</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 				<comments>Editing session id</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>genesis_url</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:28:08 +03:00
										 |  |  | 				<length>512</length> | 
					
						
							| 
									
										
										
										
											2013-08-28 12:02:27 +02:00
										 |  |  | 				<comments>Relative to owner documents storage /welcome.odt</comments> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>genesis_hash</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							| 
									
										
										
										
											2013-09-02 18:11:41 +02:00
										 |  |  | 				<length>128</length> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<comments>To be sure the genesis did not change</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2013-08-08 14:02:54 +03:00
										 |  |  | 			<field> | 
					
						
							| 
									
										
										
										
											2013-08-17 19:42:50 +03:00
										 |  |  | 				<name>file_id</name> | 
					
						
							| 
									
										
										
										
											2013-08-08 14:02:54 +03:00
										 |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<length>512</length> | 
					
						
							|  |  |  | 				<comments>Relative to storage e.g. /welcome.odt</comments> | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>owner</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 				<comments>oC user who created the session</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-19 16:28:08 +03:00
										 |  |  | 			<index> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 				<name>richdocuments_session_ei_idx</name> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:28:08 +03:00
										 |  |  | 				<primary>true</primary> | 
					
						
							|  |  |  | 				<unique>true</unique> | 
					
						
							|  |  |  | 				<field> | 
					
						
							|  |  |  | 					<name>es_id</name> | 
					
						
							|  |  |  | 					<sorting>ascending</sorting> | 
					
						
							|  |  |  | 				</field> | 
					
						
							|  |  |  | 			</index> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 	<table> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 		<name>*dbprefix*richdocuments_member</name> | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 		<declaration> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 			<field> | 
					
						
							| 
									
										
										
										
											2013-08-09 20:30:14 +03:00
										 |  |  | 				<name>member_id</name> | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<autoincrement>1</autoincrement> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 				<comments>Unique per user and session</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>es_id</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 				<comments>Related editing session id</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							| 
									
										
										
										
											2013-08-09 19:46:15 +03:00
										 |  |  | 				<name>uid</name> | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>color</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<length>32</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>last_activity</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2014-04-09 17:14:53 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>is_guest</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<default>0</default> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>1</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2014-04-11 00:59:51 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>token</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<default></default> | 
					
						
							|  |  |  | 				<notnull>false</notnull> | 
					
						
							|  |  |  | 				<length>32</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2013-08-17 18:32:24 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>status</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<default>1</default> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>1</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-19 16:13:40 +03:00
										 |  |  | 	<table> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 		<name>*dbprefix*richdocuments_op</name> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 		<declaration> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>seq</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							| 
									
										
										
										
											2013-08-07 00:48:43 +03:00
										 |  |  | 				<notnull>true</notnull> | 
					
						
							| 
									
										
										
										
											2013-08-07 00:11:04 +03:00
										 |  |  | 				<autoincrement>1</autoincrement> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 				<unsigned>true</unsigned> | 
					
						
							| 
									
										
										
										
											2013-08-07 00:11:04 +03:00
										 |  |  | 				<length>4</length> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 				<comments>Sequence number</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2013-08-07 00:48:43 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>es_id</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 				<comments>Editing session id</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>member</name> | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<default>1</default> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 				<notnull>true</notnull> | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 				<comments>User and time specific</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2014-11-13 01:20:54 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>optype</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>false</notnull> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 				<comments>Operation type</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>opspec</name> | 
					
						
							|  |  |  | 				<type>clob</type> | 
					
						
							|  |  |  | 				<notnull>false</notnull> | 
					
						
							|  |  |  | 				<comments>json-string</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-07 00:48:43 +03:00
										 |  |  | 			<index> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 				<name>richdocs_seq_pKey</name> | 
					
						
							| 
									
										
										
										
											2013-08-07 00:48:43 +03:00
										 |  |  | 				<primary>true</primary> | 
					
						
							|  |  |  | 				<field> | 
					
						
							|  |  |  | 					<name>seq</name> | 
					
						
							|  |  |  | 					<sorting>ascending</sorting> | 
					
						
							|  |  |  | 				</field> | 
					
						
							|  |  |  | 			</index> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:28:08 +03:00
										 |  |  | 			<index> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 				<name>richdocuments_op_eis_idx</name> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:28:08 +03:00
										 |  |  | 				<unique>true</unique> | 
					
						
							|  |  |  | 				<field> | 
					
						
							|  |  |  | 					<name>es_id</name> | 
					
						
							|  |  |  | 					<sorting>ascending</sorting> | 
					
						
							|  |  |  | 				</field> | 
					
						
							|  |  |  | 				<field> | 
					
						
							|  |  |  | 					<name>seq</name> | 
					
						
							|  |  |  | 					<sorting>ascending</sorting> | 
					
						
							|  |  |  | 				</field> | 
					
						
							|  |  |  | 			</index> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							| 
									
										
										
										
											2013-08-12 16:31:02 +03:00
										 |  |  | 	<table> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 		<name>*dbprefix*richdocuments_invite</name> | 
					
						
							| 
									
										
										
										
											2013-08-12 16:31:02 +03:00
										 |  |  | 		<declaration> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-12 16:31:02 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>es_id</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 				<comments>Related editing session id</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>uid</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>status</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<default>0</default> | 
					
						
							|  |  |  | 				<length>2</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>sent_on</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<default></default> | 
					
						
							| 
									
										
										
										
											2013-08-22 15:30:46 +02:00
										 |  |  | 				<notnull>false</notnull> | 
					
						
							| 
									
										
										
										
											2013-08-12 16:31:02 +03:00
										 |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-12 16:31:02 +03:00
										 |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 	<table> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 		<name>*dbprefix*richdocuments_revisions</name> | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 		<declaration> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>es_id</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 				<comments>Related editing session id</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>seq_head</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 				<comments>Sequence head number</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>member_id</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 				<comments>the member that saved the revision</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>file_id</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<length>512</length> | 
					
						
							|  |  |  | 				<comments>Relative to storage e.g. /welcome.odt</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>save_hash</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							| 
									
										
										
										
											2013-09-02 18:11:41 +02:00
										 |  |  | 				<length>128</length> | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 				<notnull>true</notnull> | 
					
						
							| 
									
										
										
										
											2013-09-16 18:50:56 +03:00
										 |  |  | 				<comments>used to lookup revision in documents folder of member, eg hash.odt</comments> | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 			<index> | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | 				<name>richdocuments_rev_eis_idx</name> | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 				<unique>true</unique> | 
					
						
							|  |  |  | 				<field> | 
					
						
							|  |  |  | 					<name>es_id</name> | 
					
						
							|  |  |  | 					<sorting>ascending</sorting> | 
					
						
							|  |  |  | 				</field> | 
					
						
							|  |  |  | 				<field> | 
					
						
							|  |  |  | 					<name>seq_head</name> | 
					
						
							|  |  |  | 					<sorting>ascending</sorting> | 
					
						
							|  |  |  | 				</field> | 
					
						
							|  |  |  | 			</index> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-08 21:15:44 -05:00
										 |  |  | 	<table> | 
					
						
							|  |  |  | 		<name>*dbprefix*richdocuments_wopi</name> | 
					
						
							|  |  |  | 		<declaration> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>id</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<autoincrement>1</autoincrement> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 				<comments>Unique per token</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							| 
									
										
										
										
											2016-06-18 20:43:00 -04:00
										 |  |  | 				<name>owner_uid</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 				<comments>Document owner UserId - a textual user identifier (unique?)</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>editor_uid</name> | 
					
						
							| 
									
										
										
										
											2016-03-08 21:15:44 -05:00
										 |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							| 
									
										
										
										
											2016-06-18 20:43:00 -04:00
										 |  |  | 				<comments>Document editor's UserId, can be different from uid if shared</comments> | 
					
						
							| 
									
										
										
										
											2016-03-08 21:15:44 -05:00
										 |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>fileid</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 				<comments>The unique ID of the file authorized</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-06-26 20:51:06 +05:30
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>version</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<default>0</default> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 				<comments>Authorized version, if any, of given fileid</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-03-08 21:15:44 -05:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>path</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>512</length> | 
					
						
							|  |  |  | 				<comments>Relative to storage e.g. /welcome.odt</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-10-19 20:58:10 +05:30
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>canwrite</name> | 
					
						
							|  |  |  | 				<type>boolean</type> | 
					
						
							|  |  |  | 				<default>false</default> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<comments>Can make changes to this file</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-10-26 18:59:27 +05:30
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>server_host</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<default>localhost</default> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<comments>Host from which token generation request originated</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-03-08 21:15:44 -05:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>token</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<default></default> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>32</length> | 
					
						
							|  |  |  | 				<comments>File access token</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>expiry</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 				<comments>Expiration time of the token</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2016-10-19 16:37:28 +05:30
										 |  |  | 
 | 
					
						
							|  |  |  | 			<index> | 
					
						
							|  |  |  | 				<name>richdocuments_wopi_token_idx</name> | 
					
						
							|  |  |  | 				<unique>true</unique> | 
					
						
							|  |  |  | 				<field> | 
					
						
							|  |  |  | 					<name>token</name> | 
					
						
							|  |  |  | 					<sorting>ascending</sorting> | 
					
						
							|  |  |  | 				</field> | 
					
						
							|  |  |  | 			</index> | 
					
						
							| 
									
										
										
										
											2016-03-08 21:15:44 -05:00
										 |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							| 
									
										
										
										
											2013-09-02 17:15:29 +02:00
										 |  |  | </database> |