Model.csdl 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="IS32_Shafrygin_BDModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  3. <EntityType Name="sysdiagrams">
  4. <Key>
  5. <PropertyRef Name="diagram_id" />
  6. </Key>
  7. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  8. <Property Name="principal_id" Type="Int32" Nullable="false" />
  9. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  10. <Property Name="version" Type="Int32" />
  11. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  12. </EntityType>
  13. <EntityType Name="Люди">
  14. <Key>
  15. <PropertyRef Name="Код" />
  16. </Key>
  17. <Property Name="Код" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  18. <Property Name="ФИО" Type="String" MaxLength="100" FixedLength="true" Unicode="true" />
  19. <Property Name="Код_сферы" Type="Int32" />
  20. <Property Name="Код_вакансии" Type="Int32" />
  21. <NavigationProperty Name="Список_вакансий" Relationship="Self.FK_Люди_Список_вакансий" FromRole="Люди" ToRole="Список_вакансий" />
  22. <NavigationProperty Name="Сферы_деятельности" Relationship="Self.FK_Люди_Сферы_деятельности" FromRole="Люди" ToRole="Сферы_деятельности" />
  23. </EntityType>
  24. <EntityType Name="Список_вакансий">
  25. <Key>
  26. <PropertyRef Name="Код_вакансии" />
  27. </Key>
  28. <Property Name="Код_вакансии" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  29. <Property Name="Код_сферы" Type="Int32" />
  30. <Property Name="Должность" Type="String" MaxLength="100" FixedLength="true" Unicode="true" />
  31. <Property Name="Оклад" Type="String" MaxLength="100" FixedLength="true" Unicode="true" />
  32. <Property Name="Требования_к_соискателю" Type="String" MaxLength="100" FixedLength="true" Unicode="true" />
  33. <Property Name="Работодатель" Type="String" MaxLength="100" FixedLength="true" Unicode="true" />
  34. <Property Name="Контактный_номер" Type="String" MaxLength="100" FixedLength="true" Unicode="true" />
  35. <NavigationProperty Name="Люди" Relationship="Self.FK_Люди_Список_вакансий" FromRole="Список_вакансий" ToRole="Люди" />
  36. <NavigationProperty Name="Сферы_деятельности" Relationship="Self.FK_Список_вакансий_Сферы_деятельности" FromRole="Список_вакансий" ToRole="Сферы_деятельности" />
  37. </EntityType>
  38. <EntityType Name="Сферы_деятельности">
  39. <Key>
  40. <PropertyRef Name="Код_сферы" />
  41. </Key>
  42. <Property Name="Код_сферы" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  43. <Property Name="Сфера_деятельности" Type="String" MaxLength="50" FixedLength="true" Unicode="true" />
  44. <NavigationProperty Name="Люди" Relationship="Self.FK_Люди_Сферы_деятельности" FromRole="Сферы_деятельности" ToRole="Люди" />
  45. <NavigationProperty Name="Список_вакансий" Relationship="Self.FK_Список_вакансий_Сферы_деятельности" FromRole="Сферы_деятельности" ToRole="Список_вакансий" />
  46. </EntityType>
  47. <Association Name="FK_Люди_Список_вакансий">
  48. <End Role="Список_вакансий" Type="Self.Список_вакансий" Multiplicity="0..1" />
  49. <End Role="Люди" Type="Self.Люди" Multiplicity="*" />
  50. <ReferentialConstraint>
  51. <Principal Role="Список_вакансий">
  52. <PropertyRef Name="Код_вакансии" />
  53. </Principal>
  54. <Dependent Role="Люди">
  55. <PropertyRef Name="Код_вакансии" />
  56. </Dependent>
  57. </ReferentialConstraint>
  58. </Association>
  59. <Association Name="FK_Люди_Сферы_деятельности">
  60. <End Role="Сферы_деятельности" Type="Self.Сферы_деятельности" Multiplicity="0..1" />
  61. <End Role="Люди" Type="Self.Люди" Multiplicity="*" />
  62. <ReferentialConstraint>
  63. <Principal Role="Сферы_деятельности">
  64. <PropertyRef Name="Код_сферы" />
  65. </Principal>
  66. <Dependent Role="Люди">
  67. <PropertyRef Name="Код_сферы" />
  68. </Dependent>
  69. </ReferentialConstraint>
  70. </Association>
  71. <Association Name="FK_Список_вакансий_Сферы_деятельности">
  72. <End Role="Сферы_деятельности" Type="Self.Сферы_деятельности" Multiplicity="0..1" />
  73. <End Role="Список_вакансий" Type="Self.Список_вакансий" Multiplicity="*" />
  74. <ReferentialConstraint>
  75. <Principal Role="Сферы_деятельности">
  76. <PropertyRef Name="Код_сферы" />
  77. </Principal>
  78. <Dependent Role="Список_вакансий">
  79. <PropertyRef Name="Код_сферы" />
  80. </Dependent>
  81. </ReferentialConstraint>
  82. </Association>
  83. <EntityContainer Name="IS32_Shafrygin_BDEntities" annotation:LazyLoadingEnabled="true">
  84. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  85. <EntitySet Name="Люди" EntityType="Self.Люди" />
  86. <EntitySet Name="Список_вакансий" EntityType="Self.Список_вакансий" />
  87. <EntitySet Name="Сферы_деятельности" EntityType="Self.Сферы_деятельности" />
  88. <AssociationSet Name="FK_Люди_Список_вакансий" Association="Self.FK_Люди_Список_вакансий">
  89. <End Role="Список_вакансий" EntitySet="Список_вакансий" />
  90. <End Role="Люди" EntitySet="Люди" />
  91. </AssociationSet>
  92. <AssociationSet Name="FK_Люди_Сферы_деятельности" Association="Self.FK_Люди_Сферы_деятельности">
  93. <End Role="Сферы_деятельности" EntitySet="Сферы_деятельности" />
  94. <End Role="Люди" EntitySet="Люди" />
  95. </AssociationSet>
  96. <AssociationSet Name="FK_Список_вакансий_Сферы_деятельности" Association="Self.FK_Список_вакансий_Сферы_деятельности">
  97. <End Role="Сферы_деятельности" EntitySet="Сферы_деятельности" />
  98. <End Role="Список_вакансий" EntitySet="Список_вакансий" />
  99. </AssociationSet>
  100. <FunctionImport Name="sp_alterdiagram">
  101. <Parameter Name="diagramname" Mode="In" Type="String" />
  102. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  103. <Parameter Name="version" Mode="In" Type="Int32" />
  104. <Parameter Name="definition" Mode="In" Type="Binary" />
  105. </FunctionImport>
  106. <FunctionImport Name="sp_creatediagram">
  107. <Parameter Name="diagramname" Mode="In" Type="String" />
  108. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  109. <Parameter Name="version" Mode="In" Type="Int32" />
  110. <Parameter Name="definition" Mode="In" Type="Binary" />
  111. </FunctionImport>
  112. <FunctionImport Name="sp_dropdiagram">
  113. <Parameter Name="diagramname" Mode="In" Type="String" />
  114. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  115. </FunctionImport>
  116. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(IS32_Shafrygin_BDModel.sp_helpdiagramdefinition_Result)">
  117. <Parameter Name="diagramname" Mode="In" Type="String" />
  118. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  119. </FunctionImport>
  120. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(IS32_Shafrygin_BDModel.sp_helpdiagrams_Result)">
  121. <Parameter Name="diagramname" Mode="In" Type="String" />
  122. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  123. </FunctionImport>
  124. <FunctionImport Name="sp_renamediagram">
  125. <Parameter Name="diagramname" Mode="In" Type="String" />
  126. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  127. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  128. </FunctionImport>
  129. <FunctionImport Name="sp_upgraddiagrams" />
  130. </EntityContainer>
  131. <ComplexType Name="sp_helpdiagramdefinition_Result">
  132. <Property Type="Int32" Name="version" Nullable="true" />
  133. <Property Type="Binary" Name="definition" Nullable="true" />
  134. </ComplexType>
  135. <ComplexType Name="sp_helpdiagrams_Result">
  136. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  137. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  138. <Property Type="Int32" Name="ID" Nullable="false" />
  139. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  140. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  141. </ComplexType>
  142. </Schema>