Model.ssdl 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="Хранилище IS32_Shafrygin_BDModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  3. <EntityType Name="sysdiagrams">
  4. <Key>
  5. <PropertyRef Name="diagram_id" />
  6. </Key>
  7. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  8. <Property Name="principal_id" Type="int" Nullable="false" />
  9. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  10. <Property Name="version" Type="int" />
  11. <Property Name="definition" Type="varbinary(max)" />
  12. </EntityType>
  13. <EntityType Name="Люди">
  14. <Key>
  15. <PropertyRef Name="Код" />
  16. </Key>
  17. <Property Name="Код" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  18. <Property Name="ФИО" Type="nchar" MaxLength="100" />
  19. <Property Name="Код сферы" Type="int" />
  20. <Property Name="Код вакансии" Type="int" />
  21. </EntityType>
  22. <!--Ошибки, обнаруженные при создании:
  23. предупреждение 6013: Первичный ключ в таблице или представлении "IS32_Shafrygin_BD.dbo.Пользователи" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  24. <EntityType Name="Пользователи">
  25. <Property Name="Логин" Type="nchar" MaxLength="1000" />
  26. <Property Name="Пароль" Type="nchar" MaxLength="1000" />
  27. </EntityType>-->
  28. <EntityType Name="Список вакансий">
  29. <Key>
  30. <PropertyRef Name="Код вакансии" />
  31. </Key>
  32. <Property Name="Код вакансии" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  33. <Property Name="Код сферы" Type="int" />
  34. <Property Name="Должность" Type="nchar" MaxLength="100" />
  35. <Property Name="Оклад" Type="nchar" MaxLength="100" />
  36. <Property Name="Требования к соискателю" Type="nchar" MaxLength="100" />
  37. <Property Name="Работодатель" Type="nchar" MaxLength="100" />
  38. <Property Name="Контактный номер" Type="nchar" MaxLength="100" />
  39. </EntityType>
  40. <EntityType Name="Сферы деятельности">
  41. <Key>
  42. <PropertyRef Name="Код сферы" />
  43. </Key>
  44. <Property Name="Код сферы" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  45. <Property Name="Сфера деятельности" Type="nchar" MaxLength="50" />
  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. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  84. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  85. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  86. <Parameter Name="owner_id" Type="int" Mode="In" />
  87. <Parameter Name="version" Type="int" Mode="In" />
  88. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  89. </Function>
  90. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  91. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  92. <Parameter Name="owner_id" Type="int" Mode="In" />
  93. <Parameter Name="version" Type="int" Mode="In" />
  94. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  95. </Function>
  96. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  97. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  98. <Parameter Name="owner_id" Type="int" Mode="In" />
  99. </Function>
  100. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  101. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  102. <Parameter Name="owner_id" Type="int" Mode="In" />
  103. </Function>
  104. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  105. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  106. <Parameter Name="owner_id" Type="int" Mode="In" />
  107. </Function>
  108. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  109. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  110. <Parameter Name="owner_id" Type="int" Mode="In" />
  111. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  112. </Function>
  113. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  114. <EntityContainer Name="Хранилище IS32_Shafrygin_BDModelContainer">
  115. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  116. <EntitySet Name="Люди" EntityType="Self.Люди" Schema="dbo" store:Type="Tables" />
  117. <EntitySet Name="Список вакансий" EntityType="Self.Список вакансий" Schema="dbo" store:Type="Tables" />
  118. <EntitySet Name="Сферы деятельности" EntityType="Self.Сферы деятельности" Schema="dbo" store:Type="Tables" />
  119. <AssociationSet Name="FK_Люди_Список вакансий" Association="Self.FK_Люди_Список вакансий">
  120. <End Role="Список вакансий" EntitySet="Список вакансий" />
  121. <End Role="Люди" EntitySet="Люди" />
  122. </AssociationSet>
  123. <AssociationSet Name="FK_Люди_Сферы деятельности" Association="Self.FK_Люди_Сферы деятельности">
  124. <End Role="Сферы деятельности" EntitySet="Сферы деятельности" />
  125. <End Role="Люди" EntitySet="Люди" />
  126. </AssociationSet>
  127. <AssociationSet Name="FK_Список вакансий_Сферы деятельности" Association="Self.FK_Список вакансий_Сферы деятельности">
  128. <End Role="Сферы деятельности" EntitySet="Сферы деятельности" />
  129. <End Role="Список вакансий" EntitySet="Список вакансий" />
  130. </AssociationSet>
  131. </EntityContainer>
  132. </Schema>