<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
      <Schema Namespace="Хранилище ExamPm01Model" 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">
        <EntityType Name="metrics">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="metric" Type="varchar(max)" />
        </EntityType>
        <EntityType Name="posts">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="title" Type="varchar" MaxLength="30" />
          <Property Name="id_role" Type="int" />
        </EntityType>
        <EntityType Name="postsmetrics">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="id_metric" Type="int" />
          <Property Name="id_post" Type="int" />
        </EntityType>
        <EntityType Name="roles">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="role" Type="varchar" MaxLength="15" />
        </EntityType>
        <EntityType Name="sysdiagrams">
          <Key>
            <PropertyRef Name="diagram_id" />
          </Key>
          <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
          <Property Name="principal_id" Type="int" Nullable="false" />
          <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="version" Type="int" />
          <Property Name="definition" Type="varbinary(max)" />
        </EntityType>
        <EntityType Name="users">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="surname" Type="varchar" MaxLength="30" />
          <Property Name="firstname" Type="varchar" MaxLength="20" />
          <Property Name="patronymic" Type="varchar" MaxLength="35" />
          <Property Name="id_post" Type="int" />
          <Property Name="email" Type="varchar" MaxLength="50" />
          <Property Name="password" Type="varchar(max)" />
        </EntityType>
        <EntityType Name="usersmetrics">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="id_user" Type="int" />
          <Property Name="id_metric" Type="int" />
          <Property Name="coefficient" Type="float" />
          <Property Name="dateofachievement" Type="date" />
        </EntityType>
        <Association Name="posts_roles_fk">
          <End Role="roles" Type="Self.roles" Multiplicity="0..1" />
          <End Role="posts" Type="Self.posts" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="roles">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="posts">
              <PropertyRef Name="id_role" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="postsmetrics_id_metric_fkey">
          <End Role="metrics" Type="Self.metrics" Multiplicity="0..1" />
          <End Role="postsmetrics" Type="Self.postsmetrics" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="metrics">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="postsmetrics">
              <PropertyRef Name="id_metric" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="postsmetrics_id_post_fkey">
          <End Role="posts" Type="Self.posts" Multiplicity="0..1" />
          <End Role="postsmetrics" Type="Self.postsmetrics" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="posts">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="postsmetrics">
              <PropertyRef Name="id_post" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="users_id_post_fkey">
          <End Role="posts" Type="Self.posts" Multiplicity="0..1" />
          <End Role="users" Type="Self.users" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="posts">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="users">
              <PropertyRef Name="id_post" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="usersmetrics_id_metric_fkey">
          <End Role="metrics" Type="Self.metrics" Multiplicity="0..1" />
          <End Role="usersmetrics" Type="Self.usersmetrics" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="metrics">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="usersmetrics">
              <PropertyRef Name="id_metric" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="usersmetrics_id_user_fkey">
          <End Role="users" Type="Self.users" Multiplicity="0..1" />
          <End Role="usersmetrics" Type="Self.usersmetrics" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="users">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="usersmetrics">
              <PropertyRef Name="id_user" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="Хранилище ExamPm01ModelContainer">
          <EntitySet Name="metrics" EntityType="Self.metrics" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="posts" EntityType="Self.posts" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="postsmetrics" EntityType="Self.postsmetrics" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="roles" EntityType="Self.roles" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="users" EntityType="Self.users" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="usersmetrics" EntityType="Self.usersmetrics" Schema="dbo" store:Type="Tables" />
          <AssociationSet Name="posts_roles_fk" Association="Self.posts_roles_fk">
            <End Role="roles" EntitySet="roles" />
            <End Role="posts" EntitySet="posts" />
          </AssociationSet>
          <AssociationSet Name="postsmetrics_id_metric_fkey" Association="Self.postsmetrics_id_metric_fkey">
            <End Role="metrics" EntitySet="metrics" />
            <End Role="postsmetrics" EntitySet="postsmetrics" />
          </AssociationSet>
          <AssociationSet Name="postsmetrics_id_post_fkey" Association="Self.postsmetrics_id_post_fkey">
            <End Role="posts" EntitySet="posts" />
            <End Role="postsmetrics" EntitySet="postsmetrics" />
          </AssociationSet>
          <AssociationSet Name="users_id_post_fkey" Association="Self.users_id_post_fkey">
            <End Role="posts" EntitySet="posts" />
            <End Role="users" EntitySet="users" />
          </AssociationSet>
          <AssociationSet Name="usersmetrics_id_metric_fkey" Association="Self.usersmetrics_id_metric_fkey">
            <End Role="metrics" EntitySet="metrics" />
            <End Role="usersmetrics" EntitySet="usersmetrics" />
          </AssociationSet>
          <AssociationSet Name="usersmetrics_id_user_fkey" Association="Self.usersmetrics_id_user_fkey">
            <End Role="users" EntitySet="users" />
            <End Role="usersmetrics" EntitySet="usersmetrics" />
          </AssociationSet>
        </EntityContainer>
      </Schema>
    </edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="ExamPm01Model" 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">
        <EntityType Name="metrics">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="metric" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="postsmetrics" Relationship="Self.postsmetrics_id_metric_fkey" FromRole="metrics" ToRole="postsmetrics" />
          <NavigationProperty Name="usersmetrics" Relationship="Self.usersmetrics_id_metric_fkey" FromRole="metrics" ToRole="usersmetrics" />
        </EntityType>
        <EntityType Name="posts">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="title" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
          <Property Name="id_role" Type="Int32" />
          <NavigationProperty Name="roles" Relationship="Self.posts_roles_fk" FromRole="posts" ToRole="roles" />
          <NavigationProperty Name="postsmetrics" Relationship="Self.postsmetrics_id_post_fkey" FromRole="posts" ToRole="postsmetrics" />
          <NavigationProperty Name="users" Relationship="Self.users_id_post_fkey" FromRole="posts" ToRole="users" />
        </EntityType>
        <EntityType Name="postsmetrics">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="id_metric" Type="Int32" />
          <Property Name="id_post" Type="Int32" />
          <NavigationProperty Name="metrics" Relationship="Self.postsmetrics_id_metric_fkey" FromRole="postsmetrics" ToRole="metrics" />
          <NavigationProperty Name="posts" Relationship="Self.postsmetrics_id_post_fkey" FromRole="postsmetrics" ToRole="posts" />
        </EntityType>
        <EntityType Name="roles">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="role" Type="String" MaxLength="15" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="posts" Relationship="Self.posts_roles_fk" FromRole="roles" ToRole="posts" />
        </EntityType>
        <EntityType Name="sysdiagrams">
          <Key>
            <PropertyRef Name="diagram_id" />
          </Key>
          <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="principal_id" Type="Int32" Nullable="false" />
          <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="version" Type="Int32" />
          <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
        </EntityType>
        <EntityType Name="users">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="surname" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
          <Property Name="firstname" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="patronymic" Type="String" MaxLength="35" FixedLength="false" Unicode="false" />
          <Property Name="id_post" Type="Int32" />
          <Property Name="email" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="password" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="posts" Relationship="Self.users_id_post_fkey" FromRole="users" ToRole="posts" />
          <NavigationProperty Name="usersmetrics" Relationship="Self.usersmetrics_id_user_fkey" FromRole="users" ToRole="usersmetrics" />
        </EntityType>
        <EntityType Name="usersmetrics">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="id_user" Type="Int32" />
          <Property Name="id_metric" Type="Int32" />
          <Property Name="coefficient" Type="Double" />
          <Property Name="dateofachievement" Type="DateTime" Precision="0" />
          <NavigationProperty Name="metrics" Relationship="Self.usersmetrics_id_metric_fkey" FromRole="usersmetrics" ToRole="metrics" />
          <NavigationProperty Name="users" Relationship="Self.usersmetrics_id_user_fkey" FromRole="usersmetrics" ToRole="users" />
        </EntityType>
        <Association Name="postsmetrics_id_metric_fkey">
          <End Role="metrics" Type="Self.metrics" Multiplicity="0..1" />
          <End Role="postsmetrics" Type="Self.postsmetrics" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="metrics">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="postsmetrics">
              <PropertyRef Name="id_metric" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="usersmetrics_id_metric_fkey">
          <End Role="metrics" Type="Self.metrics" Multiplicity="0..1" />
          <End Role="usersmetrics" Type="Self.usersmetrics" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="metrics">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="usersmetrics">
              <PropertyRef Name="id_metric" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="posts_roles_fk">
          <End Role="roles" Type="Self.roles" Multiplicity="0..1" />
          <End Role="posts" Type="Self.posts" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="roles">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="posts">
              <PropertyRef Name="id_role" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="postsmetrics_id_post_fkey">
          <End Role="posts" Type="Self.posts" Multiplicity="0..1" />
          <End Role="postsmetrics" Type="Self.postsmetrics" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="posts">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="postsmetrics">
              <PropertyRef Name="id_post" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="users_id_post_fkey">
          <End Role="posts" Type="Self.posts" Multiplicity="0..1" />
          <End Role="users" Type="Self.users" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="posts">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="users">
              <PropertyRef Name="id_post" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="usersmetrics_id_user_fkey">
          <End Role="users" Type="Self.users" Multiplicity="0..1" />
          <End Role="usersmetrics" Type="Self.usersmetrics" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="users">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="usersmetrics">
              <PropertyRef Name="id_user" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="ExamPm01Entities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="metrics" EntityType="Self.metrics" />
          <EntitySet Name="posts" EntityType="Self.posts" />
          <EntitySet Name="postsmetrics" EntityType="Self.postsmetrics" />
          <EntitySet Name="roles" EntityType="Self.roles" />
          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
          <EntitySet Name="users" EntityType="Self.users" />
          <EntitySet Name="usersmetrics" EntityType="Self.usersmetrics" />
          <AssociationSet Name="postsmetrics_id_metric_fkey" Association="Self.postsmetrics_id_metric_fkey">
            <End Role="metrics" EntitySet="metrics" />
            <End Role="postsmetrics" EntitySet="postsmetrics" />
          </AssociationSet>
          <AssociationSet Name="usersmetrics_id_metric_fkey" Association="Self.usersmetrics_id_metric_fkey">
            <End Role="metrics" EntitySet="metrics" />
            <End Role="usersmetrics" EntitySet="usersmetrics" />
          </AssociationSet>
          <AssociationSet Name="posts_roles_fk" Association="Self.posts_roles_fk">
            <End Role="roles" EntitySet="roles" />
            <End Role="posts" EntitySet="posts" />
          </AssociationSet>
          <AssociationSet Name="postsmetrics_id_post_fkey" Association="Self.postsmetrics_id_post_fkey">
            <End Role="posts" EntitySet="posts" />
            <End Role="postsmetrics" EntitySet="postsmetrics" />
          </AssociationSet>
          <AssociationSet Name="users_id_post_fkey" Association="Self.users_id_post_fkey">
            <End Role="posts" EntitySet="posts" />
            <End Role="users" EntitySet="users" />
          </AssociationSet>
          <AssociationSet Name="usersmetrics_id_user_fkey" Association="Self.usersmetrics_id_user_fkey">
            <End Role="users" EntitySet="users" />
            <End Role="usersmetrics" EntitySet="usersmetrics" />
          </AssociationSet>
        </EntityContainer>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="Хранилище ExamPm01ModelContainer" CdmEntityContainer="ExamPm01Entities">
          <EntitySetMapping Name="metrics">
            <EntityTypeMapping TypeName="ExamPm01Model.metrics">
              <MappingFragment StoreEntitySet="metrics">
                <ScalarProperty Name="id" ColumnName="id" />
                <ScalarProperty Name="metric" ColumnName="metric" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="posts">
            <EntityTypeMapping TypeName="ExamPm01Model.posts">
              <MappingFragment StoreEntitySet="posts">
                <ScalarProperty Name="id" ColumnName="id" />
                <ScalarProperty Name="title" ColumnName="title" />
                <ScalarProperty Name="id_role" ColumnName="id_role" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="postsmetrics">
            <EntityTypeMapping TypeName="ExamPm01Model.postsmetrics">
              <MappingFragment StoreEntitySet="postsmetrics">
                <ScalarProperty Name="id" ColumnName="id" />
                <ScalarProperty Name="id_metric" ColumnName="id_metric" />
                <ScalarProperty Name="id_post" ColumnName="id_post" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="roles">
            <EntityTypeMapping TypeName="ExamPm01Model.roles">
              <MappingFragment StoreEntitySet="roles">
                <ScalarProperty Name="id" ColumnName="id" />
                <ScalarProperty Name="role" ColumnName="role" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="sysdiagrams">
            <EntityTypeMapping TypeName="ExamPm01Model.sysdiagrams">
              <MappingFragment StoreEntitySet="sysdiagrams">
                <ScalarProperty Name="name" ColumnName="name" />
                <ScalarProperty Name="principal_id" ColumnName="principal_id" />
                <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
                <ScalarProperty Name="version" ColumnName="version" />
                <ScalarProperty Name="definition" ColumnName="definition" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="users">
            <EntityTypeMapping TypeName="ExamPm01Model.users">
              <MappingFragment StoreEntitySet="users">
                <ScalarProperty Name="id" ColumnName="id" />
                <ScalarProperty Name="surname" ColumnName="surname" />
                <ScalarProperty Name="firstname" ColumnName="firstname" />
                <ScalarProperty Name="patronymic" ColumnName="patronymic" />
                <ScalarProperty Name="id_post" ColumnName="id_post" />
                <ScalarProperty Name="email" ColumnName="email" />
                <ScalarProperty Name="password" ColumnName="password" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="usersmetrics">
            <EntityTypeMapping TypeName="ExamPm01Model.usersmetrics">
              <MappingFragment StoreEntitySet="usersmetrics">
                <ScalarProperty Name="id" ColumnName="id" />
                <ScalarProperty Name="id_user" ColumnName="id_user" />
                <ScalarProperty Name="id_metric" ColumnName="id_metric" />
                <ScalarProperty Name="coefficient" ColumnName="coefficient" />
                <ScalarProperty Name="dateofachievement" ColumnName="dateofachievement" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="false" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
        <DesignerProperty Name="UseLegacyProvider" Value="false" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams></Diagrams>
  </Designer>
</edmx:Edmx>