| 
									
										
										
										
											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> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:42:41 +03:00
										 |  |  | 		<name>*dbprefix*office_session</name> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 		<declaration> | 
					
						
							|  |  |  | 			<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
										 |  |  | 				<default></default> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 				<notnull>true</notnull> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:28:08 +03:00
										 |  |  | 				<length>512</length> | 
					
						
							| 
									
										
										
										
											2013-08-08 14:02:54 +03:00
										 |  |  | 				<comments>Relative to owner office storage /welcome.odt</comments> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>genesis_hash</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<comments>To be sure the genesis did not change</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2013-08-08 14:02:54 +03:00
										 |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>document_path</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<default></default> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<length>512</length> | 
					
						
							|  |  |  | 				<comments>Relative to storage e.g. /welcome.odt</comments> | 
					
						
							|  |  |  | 			</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> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:28:08 +03:00
										 |  |  | 			 | 
					
						
							|  |  |  | 			<index> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:42:41 +03:00
										 |  |  | 				<name>office_session_ei_index</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> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							|  |  |  | 	 | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 	<table> | 
					
						
							|  |  |  | 		<name>*dbprefix*office_member</name> | 
					
						
							|  |  |  | 		<declaration> | 
					
						
							|  |  |  | 			<field> | 
					
						
							| 
									
										
										
										
											2013-08-09 20:30:14 +03:00
										 |  |  | 				<name>member_id</name> | 
					
						
							| 
									
										
										
										
											2013-08-09 18:31:46 +03:00
										 |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<default>1</default> | 
					
						
							|  |  |  | 				<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> | 
					
						
							|  |  |  | 				<default></default> | 
					
						
							|  |  |  | 				<length>64</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>color</name> | 
					
						
							|  |  |  | 				<type>text</type> | 
					
						
							|  |  |  | 				<default></default> | 
					
						
							|  |  |  | 				<length>32</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>last_activity</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							|  |  |  | 				<default></default> | 
					
						
							|  |  |  | 				<notnull>true</notnull> | 
					
						
							|  |  |  | 				<unsigned>true</unsigned> | 
					
						
							|  |  |  | 				<length>4</length> | 
					
						
							|  |  |  | 			</field> | 
					
						
							|  |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2013-07-19 16:13:40 +03:00
										 |  |  | 	<table> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:42:41 +03:00
										 |  |  | 		<name>*dbprefix*office_op</name> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 		<declaration> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>seq</name> | 
					
						
							|  |  |  | 				<type>integer</type> | 
					
						
							| 
									
										
										
										
											2013-08-07 00:48:43 +03:00
										 |  |  | 				<default>1</default> | 
					
						
							|  |  |  | 				<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> | 
					
						
							|  |  |  | 			<field> | 
					
						
							|  |  |  | 				<name>opspec</name> | 
					
						
							|  |  |  | 				<type>clob</type> | 
					
						
							|  |  |  | 				<notnull>false</notnull> | 
					
						
							|  |  |  | 				<comments>json-string</comments> | 
					
						
							|  |  |  | 			</field> | 
					
						
							| 
									
										
										
										
											2013-08-07 00:48:43 +03:00
										 |  |  | 			<index> | 
					
						
							|  |  |  | 				<name>seq_pKey</name> | 
					
						
							|  |  |  | 				<primary>true</primary> | 
					
						
							|  |  |  | 				<field> | 
					
						
							|  |  |  | 					<name>seq</name> | 
					
						
							|  |  |  | 					<sorting>ascending</sorting> | 
					
						
							|  |  |  | 				</field> | 
					
						
							|  |  |  | 			</index> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:28:08 +03:00
										 |  |  | 			<index> | 
					
						
							| 
									
										
										
										
											2013-07-19 16:42:41 +03:00
										 |  |  | 				<name>office_op_eis_index</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> | 
					
						
							| 
									
										
										
										
											2013-07-19 15:17:18 +03:00
										 |  |  | 		</declaration> | 
					
						
							|  |  |  | 	</table> | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | </database> |