diff data/model.xml @ 2:035de8b7b18e

Temporary commit, refactoring, added readme
author cin
date Sun, 25 Feb 2018 17:12:33 +0300
parents 7f803979305f
children 437127ab6a12
line wrap: on
line diff
--- a/data/model.xml	Thu Feb 22 19:14:00 2018 +0300
+++ b/data/model.xml	Sun Feb 25 17:12:33 2018 +0300
@@ -97,6 +97,9 @@
 		<hasA name="Coordinator" type="MaritimeRcc" nullable="true">
 			<thisKey name="CoordinatorId" />
 		</hasA>
+		<hasMany name="PartnerLinks" type="OperationRccLink">
+			<otherKey name="Operation"/>
+		</hasMany>
 	</entity>
 
 	<entity name="SarCase">
@@ -124,5 +127,38 @@
 	<entity name="Region">
 		<description>Район проведение поисково-спасательной операции</description>
 	</entity>
+	
+	<entity name="OperationRccLink">
+		<!-- composite primary key -->
+		<primaryKey name="Id">
+			<!-- use existing members -->
+			<member name="Operation"/>
+			<member name="Rcc"/>
+		</primaryKey>
+		<hasA name="Operation" type="Operation">
+			<thisKey name="OperationId"/>
+		</hasA>
+		<hasA name="Rcc">
+			<thisKey name="RccId"/>
+		</hasA>
+		<hasMany name="Info" type="LinkInfo">
+			<otherKey name="Link"/>
+			<clr:association />
+		</hasMany>
+	</entity>
+	
+	<entity name="LinkInfo">
+		<primaryKey name="Id">
+			<member name="Link"/>
+		</primaryKey>
+		<hasA name="Link" type="OperationRccLink">
+			<thisKey>
+				<property name="OperationId"/>
+				<property name="RccId"/>
+			</thisKey>
+			<clr:association />
+		</hasA>
+		<property name="description" type="string"/>
+	</entity>
 
 </package>
\ No newline at end of file