<?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="gr672_pgvModel.Store" 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="Role">
          <Key>
            <PropertyRef Name="RoleID" />
          </Key>
          <Property Name="RoleID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="RoleName" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
          <Property Name="Phone" Type="nvarchar" MaxLength="12" Nullable="false" />
          <Property Name="Email" Type="nvarchar" MaxLength="200" Nullable="false" />
          <Property Name="IDRole" Type="int" Nullable="false" />
          <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="Violation">
          <Key>
            <PropertyRef Name="ViolationID" />
          </Key>
          <Property Name="ViolationID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="IDViolationType" Type="int" Nullable="false" />
          <Property Name="Photo" Type="image" Nullable="false" />
          <Property Name="Address" Type="nvarchar(max)" Nullable="false" />
          <Property Name="Description" Type="nvarchar(max)" Nullable="false" />
          <Property Name="IsReviewed" Type="bit" />
          <Property Name="Comment" Type="nvarchar(max)" />
          <Property Name="IDUser" Type="int" Nullable="false" />
          <Property Name="CarNumber" Type="nvarchar" MaxLength="50" />
        </EntityType>
        <EntityType Name="ViolationType">
          <Key>
            <PropertyRef Name="ViolationTypeID" />
          </Key>
          <Property Name="ViolationTypeID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="TypeName" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <Association Name="FK_User_Role">
          <End Role="Role" Type="Self.Role" Multiplicity="1" />
          <End Role="User" Type="Self.User" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Role">
              <PropertyRef Name="RoleID" />
            </Principal>
            <Dependent Role="User">
              <PropertyRef Name="IDRole" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Violation_User">
          <End Role="User" Type="Self.User" Multiplicity="1" />
          <End Role="Violation" Type="Self.Violation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="Violation">
              <PropertyRef Name="IDUser" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Violation_ViolationType">
          <End Role="ViolationType" Type="Self.ViolationType" Multiplicity="1" />
          <End Role="Violation" Type="Self.Violation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ViolationType">
              <PropertyRef Name="ViolationTypeID" />
            </Principal>
            <Dependent Role="Violation">
              <PropertyRef Name="IDViolationType" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="gr672_pgvModelStoreContainer">
          <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Violation" EntityType="Self.Violation" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="ViolationType" EntityType="Self.ViolationType" Schema="dbo" store:Type="Tables" />
          <AssociationSet Name="FK_User_Role" Association="Self.FK_User_Role">
            <End Role="Role" EntitySet="Role" />
            <End Role="User" EntitySet="User" />
          </AssociationSet>
          <AssociationSet Name="FK_Violation_User" Association="Self.FK_Violation_User">
            <End Role="User" EntitySet="User" />
            <End Role="Violation" EntitySet="Violation" />
          </AssociationSet>
          <AssociationSet Name="FK_Violation_ViolationType" Association="Self.FK_Violation_ViolationType">
            <End Role="ViolationType" EntitySet="ViolationType" />
            <End Role="Violation" EntitySet="Violation" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="gr672_pgvModel" 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="Role">
          <Key>
            <PropertyRef Name="RoleID" />
          </Key>
          <Property Name="RoleID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="RoleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
          <NavigationProperty Name="User" Relationship="Self.FK_User_Role" FromRole="Role" ToRole="User" />
        </EntityType>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="Phone" Type="String" MaxLength="12" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="Email" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="IDRole" Type="Int32" Nullable="false" />
          <NavigationProperty Name="Role" Relationship="Self.FK_User_Role" FromRole="User" ToRole="Role" />
          <NavigationProperty Name="Violation" Relationship="Self.FK_Violation_User" FromRole="User" ToRole="Violation" />
          <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
        </EntityType>
        <EntityType Name="Violation">
          <Key>
            <PropertyRef Name="ViolationID" />
          </Key>
          <Property Name="ViolationID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="IDViolationType" Type="Int32" Nullable="false" />
          <Property Name="Photo" Type="Binary" MaxLength="Max" FixedLength="false" Nullable="false" />
          <Property Name="Address" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="IsReviewed" Type="Boolean" />
          <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
          <Property Name="IDUser" Type="Int32" Nullable="false" />
          <NavigationProperty Name="User" Relationship="Self.FK_Violation_User" FromRole="Violation" ToRole="User" />
          <NavigationProperty Name="ViolationType" Relationship="Self.FK_Violation_ViolationType" FromRole="Violation" ToRole="ViolationType" />
          <Property Name="CarNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
        </EntityType>
        <EntityType Name="ViolationType">
          <Key>
            <PropertyRef Name="ViolationTypeID" />
          </Key>
          <Property Name="ViolationTypeID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="TypeName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
          <NavigationProperty Name="Violation" Relationship="Self.FK_Violation_ViolationType" FromRole="ViolationType" ToRole="Violation" />
        </EntityType>
        <Association Name="FK_User_Role">
          <End Role="Role" Type="Self.Role" Multiplicity="1" />
          <End Role="User" Type="Self.User" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Role">
              <PropertyRef Name="RoleID" />
            </Principal>
            <Dependent Role="User">
              <PropertyRef Name="IDRole" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Violation_User">
          <End Role="User" Type="Self.User" Multiplicity="1" />
          <End Role="Violation" Type="Self.Violation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="Violation">
              <PropertyRef Name="IDUser" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Violation_ViolationType">
          <End Role="ViolationType" Type="Self.ViolationType" Multiplicity="1" />
          <End Role="Violation" Type="Self.Violation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ViolationType">
              <PropertyRef Name="ViolationTypeID" />
            </Principal>
            <Dependent Role="Violation">
              <PropertyRef Name="IDViolationType" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="gr672_pgvEntities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Role" EntityType="Self.Role" />
          <EntitySet Name="User" EntityType="Self.User" />
          <EntitySet Name="Violation" EntityType="Self.Violation" />
          <EntitySet Name="ViolationType" EntityType="Self.ViolationType" />
          <AssociationSet Name="FK_User_Role" Association="Self.FK_User_Role">
            <End Role="Role" EntitySet="Role" />
            <End Role="User" EntitySet="User" />
          </AssociationSet>
          <AssociationSet Name="FK_Violation_User" Association="Self.FK_Violation_User">
            <End Role="User" EntitySet="User" />
            <End Role="Violation" EntitySet="Violation" />
          </AssociationSet>
          <AssociationSet Name="FK_Violation_ViolationType" Association="Self.FK_Violation_ViolationType">
            <End Role="ViolationType" EntitySet="ViolationType" />
            <End Role="Violation" EntitySet="Violation" />
          </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="gr672_pgvModelStoreContainer" CdmEntityContainer="gr672_pgvEntities">
          <EntitySetMapping Name="Role">
            <EntityTypeMapping TypeName="gr672_pgvModel.Role">
              <MappingFragment StoreEntitySet="Role">
                <ScalarProperty Name="RoleID" ColumnName="RoleID" />
                <ScalarProperty Name="RoleName" ColumnName="RoleName" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="User">
            <EntityTypeMapping TypeName="gr672_pgvModel.User">
              <MappingFragment StoreEntitySet="User">
                <ScalarProperty Name="Password" ColumnName="Password" />
                <ScalarProperty Name="Login" ColumnName="Login" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="LastName" ColumnName="LastName" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
                <ScalarProperty Name="Phone" ColumnName="Phone" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="IDRole" ColumnName="IDRole" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Violation">
            <EntityTypeMapping TypeName="gr672_pgvModel.Violation">
              <MappingFragment StoreEntitySet="Violation">
                <ScalarProperty Name="CarNumber" ColumnName="CarNumber" />
                <ScalarProperty Name="ViolationID" ColumnName="ViolationID" />
                <ScalarProperty Name="IDViolationType" ColumnName="IDViolationType" />
                <ScalarProperty Name="Photo" ColumnName="Photo" />
                <ScalarProperty Name="Address" ColumnName="Address" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IsReviewed" ColumnName="IsReviewed" />
                <ScalarProperty Name="Comment" ColumnName="Comment" />
                <ScalarProperty Name="IDUser" ColumnName="IDUser" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ViolationType">
            <EntityTypeMapping TypeName="gr672_pgvModel.ViolationType">
              <MappingFragment StoreEntitySet="ViolationType">
                <ScalarProperty Name="ViolationTypeID" ColumnName="ViolationTypeID" />
                <ScalarProperty Name="TypeName" ColumnName="TypeName" />
              </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="None" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams></Diagrams>
  </Designer>
</edmx:Edmx>