<?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="Хранилище SASModel" 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="Brand">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="35" Nullable="false" />
        </EntityType>
        <EntityType Name="Category">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="3" Nullable="false" />
        </EntityType>
        <EntityType Name="Citizen">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Surname" Type="varchar" MaxLength="30" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="25" Nullable="false" />
          <Property Name="Patronymic" Type="varchar" MaxLength="30" />
          <Property Name="Job" Type="int" />
          <Property Name="Email" Type="varchar" MaxLength="50" />
          <Property Name="Phone" Type="varchar" MaxLength="16" />
          <Property Name="PassSeries" Type="varchar" MaxLength="4" Nullable="false" />
          <Property Name="PassNumber" Type="varchar" MaxLength="6" Nullable="false" />
          <Property Name="MailIndex" Type="varchar" MaxLength="6" />
          <Property Name="RegistrationAddress" Type="varchar" MaxLength="150" />
          <Property Name="Photo" Type="int" />
          <Property Name="CurrentAddress" Type="varchar" MaxLength="150" Nullable="false" />
          <Property Name="Comment" Type="varchar" MaxLength="300" />
          <Property Name="Discription" Type="varchar" MaxLength="300" />
          <Property Name="DateOfBirth" Type="datetime2" Precision="7" />
        </EntityType>
        <EntityType Name="Color">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="HEX" Type="nchar" MaxLength="7" Nullable="false" />
          <Property Name="NameRus" Type="varchar" MaxLength="35" Nullable="false" />
          <Property Name="DiscriptionRus" Type="varchar" MaxLength="35" Nullable="false" />
          <Property Name="NameEng" Type="varchar" MaxLength="35" Nullable="false" />
          <Property Name="DiscriptionEng" Type="varchar" MaxLength="35" Nullable="false" />
          <Property Name="IsMetallic" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="Company">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="DivisionGIBDD">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="DriveType">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="35" Nullable="false" />
        </EntityType>
        <EntityType Name="Employee">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Surname" Type="varchar" MaxLength="30" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="25" Nullable="false" />
          <Property Name="Patronymic" Type="varchar" MaxLength="30" />
          <Property Name="DivisionGIBDD" Type="int" Nullable="false" />
          <Property Name="Role" Type="int" Nullable="false" />
          <Property Name="Login" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="Password" Type="varchar" MaxLength="256" Nullable="false" />
        </EntityType>
        <EntityType Name="EngineModel">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="PowerKWh" Type="decimal" Precision="18" Scale="3" Nullable="false" />
          <Property Name="PowerHorse" Type="decimal" Precision="18" Scale="3" Nullable="false" />
          <Property Name="ReleaseYear" Type="int" Nullable="false" />
          <Property Name="FuelType" Type="int" Nullable="false" />
        </EntityType>
        <EntityType Name="Extension">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="6" Nullable="false" />
        </EntityType>
        <EntityType Name="File">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Extension" Type="int" />
          <Property Name="BinaryData" Type="varbinary(max)" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="FuelType">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="NameEng" Type="varchar" MaxLength="35" Nullable="false" />
          <Property Name="NameRus" Type="varchar" MaxLength="35" Nullable="false" />
        </EntityType>
        <EntityType Name="Job">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="Company" Type="int" Nullable="false" />
        </EntityType>
        <EntityType Name="License">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Citizen" Type="int" Nullable="false" />
          <Property Name="DateStart" Type="date" Nullable="false" />
          <Property Name="DiateFinish" Type="date" Nullable="false" />
          <Property Name="Series" Type="varchar" MaxLength="4" Nullable="false" />
          <Property Name="Number" Type="varchar" MaxLength="6" Nullable="false" />
        </EntityType>
        <EntityType Name="LicenseCategory">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Category" Type="int" Nullable="false" />
          <Property Name="License" Type="int" Nullable="false" />
        </EntityType>
        <EntityType Name="LoginAttempt">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Employee" Type="int" Nullable="false" />
          <Property Name="CreatedAt" Type="datetime2" Precision="7" Nullable="false" />
        </EntityType>
        <EntityType Name="LoginBlock">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Employee" Type="int" Nullable="false" />
          <Property Name="BlockedUntil" Type="datetime2" Precision="7" Nullable="false" />
        </EntityType>
        <EntityType Name="Model">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Brand" Type="int" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="100" Nullable="false" />
        </EntityType>
        <EntityType Name="Region">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="NameRus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="NameEng" Type="varchar" MaxLength="50" />
          <Property Name="Number" Type="varchar" MaxLength="3" Nullable="false" />
          <Property Name="OKATO" Type="varchar" MaxLength="3" />
          <Property Name="ISO3166_2" Type="varchar" MaxLength="7" />
        </EntityType>
        <EntityType Name="RegionCode">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Region" Type="int" Nullable="false" />
          <Property Name="Code" Type="varchar" MaxLength="3" Nullable="false" />
        </EntityType>
        <EntityType Name="Role">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
        </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>
        <!--Ошибки, обнаруженные при создании:
предупреждение 6002: В таблице или представлении "SAS.dbo.TempBrand" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
        <!--Ошибки, обнаруженные при создании:
предупреждение 6002: В таблице или представлении "SAS.dbo.TempD" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
        <EntityType Name="Transport">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Region" Type="int" />
          <Property Name="VIN" Type="varchar" MaxLength="17" Nullable="false" />
          <Property Name="Category" Type="int" />
          <Property Name="Color" Type="int" Nullable="false" />
          <Property Name="EngineModel" Type="int" Nullable="false" />
          <Property Name="Model" Type="int" Nullable="false" />
          <Property Name="RelaseYear" Type="int" Nullable="false" />
          <Property Name="WeightKg" Type="int" Nullable="false" />
          <Property Name="DriveType" Type="int" Nullable="false" />
          <Property Name="TransportType" Type="int" />
          <Property Name="Comment" Type="varchar" MaxLength="300" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="MaxLoadKg" Type="int" />
        </EntityType>
        <EntityType Name="TransportOwnership">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Citizen" Type="int" Nullable="false" />
          <Property Name="Transport" Type="int" Nullable="false" />
          <Property Name="CreatedAt" Type="date" Nullable="false" />
        </EntityType>
        <EntityType Name="TransportPhoto">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Transport" Type="int" Nullable="false" />
          <Property Name="Photo" Type="int" Nullable="false" />
        </EntityType>
        <EntityType Name="TransportType">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="NameRus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="NameEng" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <Association Name="FK_Citizen_File">
          <End Role="File" Type="Self.File" Multiplicity="0..1" />
          <End Role="Citizen" Type="Self.Citizen" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="File">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Citizen">
              <PropertyRef Name="Photo" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Citizen_Job">
          <End Role="Job" Type="Self.Job" Multiplicity="0..1" />
          <End Role="Citizen" Type="Self.Citizen" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Job">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Citizen">
              <PropertyRef Name="Job" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Employee_DivisionGIBDD">
          <End Role="DivisionGIBDD" Type="Self.DivisionGIBDD" Multiplicity="1" />
          <End Role="Employee" Type="Self.Employee" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionGIBDD">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Employee">
              <PropertyRef Name="DivisionGIBDD" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Employee_Role">
          <End Role="Role" Type="Self.Role" Multiplicity="1" />
          <End Role="Employee" Type="Self.Employee" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Role">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Employee">
              <PropertyRef Name="Role" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_EngineType_FuelType">
          <End Role="FuelType" Type="Self.FuelType" Multiplicity="1" />
          <End Role="EngineModel" Type="Self.EngineModel" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="FuelType">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="EngineModel">
              <PropertyRef Name="FuelType" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_File_Extension">
          <End Role="Extension" Type="Self.Extension" Multiplicity="0..1" />
          <End Role="File" Type="Self.File" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Extension">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="File">
              <PropertyRef Name="Extension" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Job_Company">
          <End Role="Company" Type="Self.Company" Multiplicity="1" />
          <End Role="Job" Type="Self.Job" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Company">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Job">
              <PropertyRef Name="Company" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_License_License">
          <End Role="Citizen" Type="Self.Citizen" Multiplicity="1" />
          <End Role="License" Type="Self.License" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Citizen">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="License">
              <PropertyRef Name="Citizen" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenseCategory_Category">
          <End Role="Category" Type="Self.Category" Multiplicity="1" />
          <End Role="LicenseCategory" Type="Self.LicenseCategory" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Category">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="LicenseCategory">
              <PropertyRef Name="Category" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenseCategory_License">
          <End Role="License" Type="Self.License" Multiplicity="1" />
          <End Role="LicenseCategory" Type="Self.LicenseCategory" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="License">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="LicenseCategory">
              <PropertyRef Name="License" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LoginAttempt_Employee">
          <End Role="Employee" Type="Self.Employee" Multiplicity="1" />
          <End Role="LoginAttempt" Type="Self.LoginAttempt" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Employee">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="LoginAttempt">
              <PropertyRef Name="Employee" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LoginBlock_Employee">
          <End Role="Employee" Type="Self.Employee" Multiplicity="1" />
          <End Role="LoginBlock" Type="Self.LoginBlock" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Employee">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="LoginBlock">
              <PropertyRef Name="Employee" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Model_Brand">
          <End Role="Brand" Type="Self.Brand" Multiplicity="1" />
          <End Role="Model" Type="Self.Model" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Brand">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Model">
              <PropertyRef Name="Brand" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_RegionCode_Region">
          <End Role="Region" Type="Self.Region" Multiplicity="1" />
          <End Role="RegionCode" Type="Self.RegionCode" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Region">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="RegionCode">
              <PropertyRef Name="Region" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_Category">
          <End Role="Category" Type="Self.Category" Multiplicity="0..1" />
          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Category">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="Category" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_Color">
          <End Role="Color" Type="Self.Color" Multiplicity="1" />
          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Color">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="Color" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_DriveType">
          <End Role="DriveType" Type="Self.DriveType" Multiplicity="1" />
          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DriveType">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="DriveType" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_Model">
          <End Role="Model" Type="Self.Model" Multiplicity="1" />
          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Model">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="Model" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_Region">
          <End Role="Region" Type="Self.Region" Multiplicity="0..1" />
          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Region">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="Region" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_TransportType">
          <End Role="TransportType" Type="Self.TransportType" Multiplicity="0..1" />
          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="TransportType">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="TransportType" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_TransportOwnership_Citizen">
          <End Role="Citizen" Type="Self.Citizen" Multiplicity="1" />
          <End Role="TransportOwnership" Type="Self.TransportOwnership" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Citizen">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="TransportOwnership">
              <PropertyRef Name="Citizen" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_TransportOwnership_Transport">
          <End Role="Transport" Type="Self.Transport" Multiplicity="1" />
          <End Role="TransportOwnership" Type="Self.TransportOwnership" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Transport">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="TransportOwnership">
              <PropertyRef Name="Transport" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_TransportPhoto_File">
          <End Role="File" Type="Self.File" Multiplicity="1" />
          <End Role="TransportPhoto" Type="Self.TransportPhoto" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="File">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="TransportPhoto">
              <PropertyRef Name="Photo" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_TransportPhoto_Transport">
          <End Role="Transport" Type="Self.Transport" Multiplicity="1" />
          <End Role="TransportPhoto" Type="Self.TransportPhoto" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Transport">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="TransportPhoto">
              <PropertyRef Name="Transport" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="Хранилище SASModelContainer">
          <EntitySet Name="Brand" EntityType="Self.Brand" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Category" EntityType="Self.Category" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Citizen" EntityType="Self.Citizen" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Color" EntityType="Self.Color" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Company" EntityType="Self.Company" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="DivisionGIBDD" EntityType="Self.DivisionGIBDD" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="DriveType" EntityType="Self.DriveType" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Employee" EntityType="Self.Employee" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="EngineModel" EntityType="Self.EngineModel" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Extension" EntityType="Self.Extension" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="File" EntityType="Self.File" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="FuelType" EntityType="Self.FuelType" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Job" EntityType="Self.Job" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="License" EntityType="Self.License" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="LicenseCategory" EntityType="Self.LicenseCategory" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="LoginAttempt" EntityType="Self.LoginAttempt" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="LoginBlock" EntityType="Self.LoginBlock" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Model" EntityType="Self.Model" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Region" EntityType="Self.Region" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="RegionCode" EntityType="Self.RegionCode" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Transport" EntityType="Self.Transport" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="TransportOwnership" EntityType="Self.TransportOwnership" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="TransportPhoto" EntityType="Self.TransportPhoto" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="TransportType" EntityType="Self.TransportType" Schema="dbo" store:Type="Tables" />
          <AssociationSet Name="FK_Citizen_File" Association="Self.FK_Citizen_File">
            <End Role="File" EntitySet="File" />
            <End Role="Citizen" EntitySet="Citizen" />
          </AssociationSet>
          <AssociationSet Name="FK_Citizen_Job" Association="Self.FK_Citizen_Job">
            <End Role="Job" EntitySet="Job" />
            <End Role="Citizen" EntitySet="Citizen" />
          </AssociationSet>
          <AssociationSet Name="FK_Employee_DivisionGIBDD" Association="Self.FK_Employee_DivisionGIBDD">
            <End Role="DivisionGIBDD" EntitySet="DivisionGIBDD" />
            <End Role="Employee" EntitySet="Employee" />
          </AssociationSet>
          <AssociationSet Name="FK_Employee_Role" Association="Self.FK_Employee_Role">
            <End Role="Role" EntitySet="Role" />
            <End Role="Employee" EntitySet="Employee" />
          </AssociationSet>
          <AssociationSet Name="FK_EngineType_FuelType" Association="Self.FK_EngineType_FuelType">
            <End Role="FuelType" EntitySet="FuelType" />
            <End Role="EngineModel" EntitySet="EngineModel" />
          </AssociationSet>
          <AssociationSet Name="FK_File_Extension" Association="Self.FK_File_Extension">
            <End Role="Extension" EntitySet="Extension" />
            <End Role="File" EntitySet="File" />
          </AssociationSet>
          <AssociationSet Name="FK_Job_Company" Association="Self.FK_Job_Company">
            <End Role="Company" EntitySet="Company" />
            <End Role="Job" EntitySet="Job" />
          </AssociationSet>
          <AssociationSet Name="FK_License_License" Association="Self.FK_License_License">
            <End Role="Citizen" EntitySet="Citizen" />
            <End Role="License" EntitySet="License" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenseCategory_Category" Association="Self.FK_LicenseCategory_Category">
            <End Role="Category" EntitySet="Category" />
            <End Role="LicenseCategory" EntitySet="LicenseCategory" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenseCategory_License" Association="Self.FK_LicenseCategory_License">
            <End Role="License" EntitySet="License" />
            <End Role="LicenseCategory" EntitySet="LicenseCategory" />
          </AssociationSet>
          <AssociationSet Name="FK_LoginAttempt_Employee" Association="Self.FK_LoginAttempt_Employee">
            <End Role="Employee" EntitySet="Employee" />
            <End Role="LoginAttempt" EntitySet="LoginAttempt" />
          </AssociationSet>
          <AssociationSet Name="FK_LoginBlock_Employee" Association="Self.FK_LoginBlock_Employee">
            <End Role="Employee" EntitySet="Employee" />
            <End Role="LoginBlock" EntitySet="LoginBlock" />
          </AssociationSet>
          <AssociationSet Name="FK_Model_Brand" Association="Self.FK_Model_Brand">
            <End Role="Brand" EntitySet="Brand" />
            <End Role="Model" EntitySet="Model" />
          </AssociationSet>
          <AssociationSet Name="FK_RegionCode_Region" Association="Self.FK_RegionCode_Region">
            <End Role="Region" EntitySet="Region" />
            <End Role="RegionCode" EntitySet="RegionCode" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_Category" Association="Self.FK_Transport_Category">
            <End Role="Category" EntitySet="Category" />
            <End Role="Transport" EntitySet="Transport" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_Color" Association="Self.FK_Transport_Color">
            <End Role="Color" EntitySet="Color" />
            <End Role="Transport" EntitySet="Transport" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_DriveType" Association="Self.FK_Transport_DriveType">
            <End Role="DriveType" EntitySet="DriveType" />
            <End Role="Transport" EntitySet="Transport" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_Model" Association="Self.FK_Transport_Model">
            <End Role="Model" EntitySet="Model" />
            <End Role="Transport" EntitySet="Transport" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_Region" Association="Self.FK_Transport_Region">
            <End Role="Region" EntitySet="Region" />
            <End Role="Transport" EntitySet="Transport" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_TransportType" Association="Self.FK_Transport_TransportType">
            <End Role="TransportType" EntitySet="TransportType" />
            <End Role="Transport" EntitySet="Transport" />
          </AssociationSet>
          <AssociationSet Name="FK_TransportOwnership_Citizen" Association="Self.FK_TransportOwnership_Citizen">
            <End Role="Citizen" EntitySet="Citizen" />
            <End Role="TransportOwnership" EntitySet="TransportOwnership" />
          </AssociationSet>
          <AssociationSet Name="FK_TransportOwnership_Transport" Association="Self.FK_TransportOwnership_Transport">
            <End Role="Transport" EntitySet="Transport" />
            <End Role="TransportOwnership" EntitySet="TransportOwnership" />
          </AssociationSet>
          <AssociationSet Name="FK_TransportPhoto_File" Association="Self.FK_TransportPhoto_File">
            <End Role="File" EntitySet="File" />
            <End Role="TransportPhoto" EntitySet="TransportPhoto" />
          </AssociationSet>
          <AssociationSet Name="FK_TransportPhoto_Transport" Association="Self.FK_TransportPhoto_Transport">
            <End Role="Transport" EntitySet="Transport" />
            <End Role="TransportPhoto" EntitySet="TransportPhoto" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="SASModel" 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">
        <EntityContainer Name="SASEntities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Brands" EntityType="SASModel.Brand" />
          <EntitySet Name="Categories" EntityType="SASModel.Category" />
          <EntitySet Name="Citizens" EntityType="SASModel.Citizen" />
          <EntitySet Name="Colors" EntityType="SASModel.Color" />
          <EntitySet Name="Companies" EntityType="SASModel.Company" />
          <EntitySet Name="DivisionGIBDDs" EntityType="SASModel.DivisionGIBDD" />
          <EntitySet Name="DriveTypes" EntityType="SASModel.DriveType" />
          <EntitySet Name="Employees" EntityType="SASModel.Employee" />
          <EntitySet Name="EngineModels" EntityType="SASModel.EngineModel" />
          <EntitySet Name="Extensions" EntityType="SASModel.Extension" />
          <EntitySet Name="Files" EntityType="SASModel.File" />
          <EntitySet Name="FuelTypes" EntityType="SASModel.FuelType" />
          <EntitySet Name="Jobs" EntityType="SASModel.Job" />
          <EntitySet Name="Licenses" EntityType="SASModel.License" />
          <EntitySet Name="LicenseCategories" EntityType="SASModel.LicenseCategory" />
          <EntitySet Name="LoginAttempts" EntityType="SASModel.LoginAttempt" />
          <EntitySet Name="LoginBlocks" EntityType="SASModel.LoginBlock" />
          <EntitySet Name="Models" EntityType="SASModel.Model" />
          <EntitySet Name="Regions" EntityType="SASModel.Region" />
          <EntitySet Name="RegionCodes" EntityType="SASModel.RegionCode" />
          <EntitySet Name="Roles" EntityType="SASModel.Role" />
          <EntitySet Name="sysdiagrams" EntityType="SASModel.sysdiagram" />
          <EntitySet Name="Transports" EntityType="SASModel.Transport" />
          <EntitySet Name="TransportOwnerships" EntityType="SASModel.TransportOwnership" />
          <EntitySet Name="TransportPhotoes" EntityType="SASModel.TransportPhoto" />
          <EntitySet Name="TransportTypes" EntityType="SASModel.TransportType" />
          <AssociationSet Name="FK_Model_Brand" Association="SASModel.FK_Model_Brand">
            <End Role="Brand" EntitySet="Brands" />
            <End Role="Model" EntitySet="Models" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenseCategory_Category" Association="SASModel.FK_LicenseCategory_Category">
            <End Role="Category" EntitySet="Categories" />
            <End Role="LicenseCategory" EntitySet="LicenseCategories" />
          </AssociationSet>
          <AssociationSet Name="FK_Citizen_File" Association="SASModel.FK_Citizen_File">
            <End Role="File" EntitySet="Files" />
            <End Role="Citizen" EntitySet="Citizens" />
          </AssociationSet>
          <AssociationSet Name="FK_Citizen_Job" Association="SASModel.FK_Citizen_Job">
            <End Role="Job" EntitySet="Jobs" />
            <End Role="Citizen" EntitySet="Citizens" />
          </AssociationSet>
          <AssociationSet Name="FK_License_License" Association="SASModel.FK_License_License">
            <End Role="Citizen" EntitySet="Citizens" />
            <End Role="License" EntitySet="Licenses" />
          </AssociationSet>
          <AssociationSet Name="FK_TransportOwnership_Citizen" Association="SASModel.FK_TransportOwnership_Citizen">
            <End Role="Citizen" EntitySet="Citizens" />
            <End Role="TransportOwnership" EntitySet="TransportOwnerships" />
          </AssociationSet>
          <AssociationSet Name="FK_Job_Company" Association="SASModel.FK_Job_Company">
            <End Role="Company" EntitySet="Companies" />
            <End Role="Job" EntitySet="Jobs" />
          </AssociationSet>
          <AssociationSet Name="FK_Employee_DivisionGIBDD" Association="SASModel.FK_Employee_DivisionGIBDD">
            <End Role="DivisionGIBDD" EntitySet="DivisionGIBDDs" />
            <End Role="Employee" EntitySet="Employees" />
          </AssociationSet>
          <AssociationSet Name="FK_Employee_Role" Association="SASModel.FK_Employee_Role">
            <End Role="Role" EntitySet="Roles" />
            <End Role="Employee" EntitySet="Employees" />
          </AssociationSet>
          <AssociationSet Name="FK_LoginAttempt_Employee" Association="SASModel.FK_LoginAttempt_Employee">
            <End Role="Employee" EntitySet="Employees" />
            <End Role="LoginAttempt" EntitySet="LoginAttempts" />
          </AssociationSet>
          <AssociationSet Name="FK_LoginBlock_Employee" Association="SASModel.FK_LoginBlock_Employee">
            <End Role="Employee" EntitySet="Employees" />
            <End Role="LoginBlock" EntitySet="LoginBlocks" />
          </AssociationSet>
          <AssociationSet Name="FK_EngineType_FuelType" Association="SASModel.FK_EngineType_FuelType">
            <End Role="FuelType" EntitySet="FuelTypes" />
            <End Role="EngineModel" EntitySet="EngineModels" />
          </AssociationSet>
          <AssociationSet Name="FK_File_Extension" Association="SASModel.FK_File_Extension">
            <End Role="Extension" EntitySet="Extensions" />
            <End Role="File" EntitySet="Files" />
          </AssociationSet>
          <AssociationSet Name="FK_TransportPhoto_File" Association="SASModel.FK_TransportPhoto_File">
            <End Role="File" EntitySet="Files" />
            <End Role="TransportPhoto" EntitySet="TransportPhotoes" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenseCategory_License" Association="SASModel.FK_LicenseCategory_License">
            <End Role="License" EntitySet="Licenses" />
            <End Role="LicenseCategory" EntitySet="LicenseCategories" />
          </AssociationSet>
          <AssociationSet Name="FK_RegionCode_Region" Association="SASModel.FK_RegionCode_Region">
            <End Role="Region" EntitySet="Regions" />
            <End Role="RegionCode" EntitySet="RegionCodes" />
          </AssociationSet>
          <AssociationSet Name="FK_TransportOwnership_Transport" Association="SASModel.FK_TransportOwnership_Transport">
            <End Role="Transport" EntitySet="Transports" />
            <End Role="TransportOwnership" EntitySet="TransportOwnerships" />
          </AssociationSet>
          <AssociationSet Name="FK_TransportPhoto_Transport" Association="SASModel.FK_TransportPhoto_Transport">
            <End Role="Transport" EntitySet="Transports" />
            <End Role="TransportPhoto" EntitySet="TransportPhotoes" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_Category" Association="SASModel.FK_Transport_Category">
            <End Role="Category" EntitySet="Categories" />
            <End Role="Transport" EntitySet="Transports" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_Color" Association="SASModel.FK_Transport_Color">
            <End Role="Color" EntitySet="Colors" />
            <End Role="Transport" EntitySet="Transports" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_DriveType" Association="SASModel.FK_Transport_DriveType">
            <End Role="DriveType" EntitySet="DriveTypes" />
            <End Role="Transport" EntitySet="Transports" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_Model" Association="SASModel.FK_Transport_Model">
            <End Role="Model" EntitySet="Models" />
            <End Role="Transport" EntitySet="Transports" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_Region" Association="SASModel.FK_Transport_Region">
            <End Role="Region" EntitySet="Regions" />
            <End Role="Transport" EntitySet="Transports" />
          </AssociationSet>
          <AssociationSet Name="FK_Transport_TransportType" Association="SASModel.FK_Transport_TransportType">
            <End Role="TransportType" EntitySet="TransportTypes" />
            <End Role="Transport" EntitySet="Transports" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="Brand">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Models" Relationship="SASModel.FK_Model_Brand" FromRole="Brand" ToRole="Model" />
        </EntityType>
        <EntityType Name="Category">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="3" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="LicenseCategories" Relationship="SASModel.FK_LicenseCategory_Category" FromRole="Category" ToRole="LicenseCategory" />
          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Category" FromRole="Category" ToRole="Transport" />
        </EntityType>
        <EntityType Name="Citizen">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Surname" Type="String" Nullable="false" MaxLength="30" FixedLength="false" Unicode="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="25" FixedLength="false" Unicode="false" />
          <Property Name="Patronymic" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
          <Property Name="Job" Type="Int32" />
          <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Phone" Type="String" MaxLength="16" FixedLength="false" Unicode="false" />
          <Property Name="PassSeries" Type="String" Nullable="false" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="PassNumber" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
          <Property Name="MailIndex" Type="String" MaxLength="6" FixedLength="false" Unicode="false" />
          <Property Name="RegistrationAddress" Type="String" MaxLength="150" FixedLength="false" Unicode="false" />
          <Property Name="Photo" Type="Int32" />
          <Property Name="CurrentAddress" Type="String" Nullable="false" MaxLength="150" FixedLength="false" Unicode="false" />
          <Property Name="Comment" Type="String" MaxLength="300" FixedLength="false" Unicode="false" />
          <Property Name="Discription" Type="String" MaxLength="300" FixedLength="false" Unicode="false" />
          <Property Name="DateOfBirth" Type="DateTime" Precision="7" />
          <NavigationProperty Name="File" Relationship="SASModel.FK_Citizen_File" FromRole="Citizen" ToRole="File" />
          <NavigationProperty Name="Job1" Relationship="SASModel.FK_Citizen_Job" FromRole="Citizen" ToRole="Job" />
          <NavigationProperty Name="Licenses" Relationship="SASModel.FK_License_License" FromRole="Citizen" ToRole="License" />
          <NavigationProperty Name="TransportOwnerships" Relationship="SASModel.FK_TransportOwnership_Citizen" FromRole="Citizen" ToRole="TransportOwnership" />
        </EntityType>
        <EntityType Name="Color">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="HEX" Type="String" Nullable="false" MaxLength="7" FixedLength="true" Unicode="true" />
          <Property Name="NameRus" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
          <Property Name="DiscriptionRus" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
          <Property Name="NameEng" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
          <Property Name="DiscriptionEng" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
          <Property Name="IsMetallic" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Color" FromRole="Color" ToRole="Transport" />
        </EntityType>
        <EntityType Name="Company">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Jobs" Relationship="SASModel.FK_Job_Company" FromRole="Company" ToRole="Job" />
        </EntityType>
        <EntityType Name="DivisionGIBDD">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Employees" Relationship="SASModel.FK_Employee_DivisionGIBDD" FromRole="DivisionGIBDD" ToRole="Employee" />
        </EntityType>
        <EntityType Name="DriveType">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_DriveType" FromRole="DriveType" ToRole="Transport" />
        </EntityType>
        <EntityType Name="Employee">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Surname" Type="String" Nullable="false" MaxLength="30" FixedLength="false" Unicode="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="25" FixedLength="false" Unicode="false" />
          <Property Name="Patronymic" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
          <Property Name="DivisionGIBDD" Type="Int32" Nullable="false" />
          <Property Name="Role" Type="Int32" Nullable="false" />
          <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Password" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="DivisionGIBDD1" Relationship="SASModel.FK_Employee_DivisionGIBDD" FromRole="Employee" ToRole="DivisionGIBDD" />
          <NavigationProperty Name="Role1" Relationship="SASModel.FK_Employee_Role" FromRole="Employee" ToRole="Role" />
          <NavigationProperty Name="LoginAttempts" Relationship="SASModel.FK_LoginAttempt_Employee" FromRole="Employee" ToRole="LoginAttempt" />
          <NavigationProperty Name="LoginBlocks" Relationship="SASModel.FK_LoginBlock_Employee" FromRole="Employee" ToRole="LoginBlock" />
        </EntityType>
        <EntityType Name="EngineModel">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="PowerKWh" Type="Decimal" Nullable="false" Precision="18" Scale="3" />
          <Property Name="PowerHorse" Type="Decimal" Nullable="false" Precision="18" Scale="3" />
          <Property Name="ReleaseYear" Type="Int32" Nullable="false" />
          <Property Name="FuelType" Type="Int32" Nullable="false" />
          <NavigationProperty Name="FuelType1" Relationship="SASModel.FK_EngineType_FuelType" FromRole="EngineModel" ToRole="FuelType" />
        </EntityType>
        <EntityType Name="Extension">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Files" Relationship="SASModel.FK_File_Extension" FromRole="Extension" ToRole="File" />
        </EntityType>
        <EntityType Name="File">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Extension" Type="Int32" />
          <Property Name="BinaryData" Type="Binary" Nullable="false" MaxLength="Max" FixedLength="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Citizens" Relationship="SASModel.FK_Citizen_File" FromRole="File" ToRole="Citizen" />
          <NavigationProperty Name="Extension1" Relationship="SASModel.FK_File_Extension" FromRole="File" ToRole="Extension" />
          <NavigationProperty Name="TransportPhotoes" Relationship="SASModel.FK_TransportPhoto_File" FromRole="File" ToRole="TransportPhoto" />
        </EntityType>
        <EntityType Name="FuelType">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="NameEng" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
          <Property Name="NameRus" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="EngineModels" Relationship="SASModel.FK_EngineType_FuelType" FromRole="FuelType" ToRole="EngineModel" />
        </EntityType>
        <EntityType Name="Job">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Company" Type="Int32" Nullable="false" />
          <NavigationProperty Name="Citizens" Relationship="SASModel.FK_Citizen_Job" FromRole="Job" ToRole="Citizen" />
          <NavigationProperty Name="Company1" Relationship="SASModel.FK_Job_Company" FromRole="Job" ToRole="Company" />
        </EntityType>
        <EntityType Name="License">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Citizen" Type="Int32" Nullable="false" />
          <Property Name="DateStart" Type="DateTime" Nullable="false" Precision="0" />
          <Property Name="DiateFinish" Type="DateTime" Nullable="false" Precision="0" />
          <Property Name="Series" Type="String" Nullable="false" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="Number" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Citizen1" Relationship="SASModel.FK_License_License" FromRole="License" ToRole="Citizen" />
          <NavigationProperty Name="LicenseCategories" Relationship="SASModel.FK_LicenseCategory_License" FromRole="License" ToRole="LicenseCategory" />
        </EntityType>
        <EntityType Name="LicenseCategory">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Category" Type="Int32" Nullable="false" />
          <Property Name="License" Type="Int32" Nullable="false" />
          <NavigationProperty Name="Category1" Relationship="SASModel.FK_LicenseCategory_Category" FromRole="LicenseCategory" ToRole="Category" />
          <NavigationProperty Name="License1" Relationship="SASModel.FK_LicenseCategory_License" FromRole="LicenseCategory" ToRole="License" />
        </EntityType>
        <EntityType Name="LoginAttempt">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Employee" Type="Int32" Nullable="false" />
          <Property Name="CreatedAt" Type="DateTime" Nullable="false" Precision="7" />
          <NavigationProperty Name="Employee1" Relationship="SASModel.FK_LoginAttempt_Employee" FromRole="LoginAttempt" ToRole="Employee" />
        </EntityType>
        <EntityType Name="LoginBlock">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Employee" Type="Int32" Nullable="false" />
          <Property Name="BlockedUntil" Type="DateTime" Nullable="false" Precision="7" />
          <NavigationProperty Name="Employee1" Relationship="SASModel.FK_LoginBlock_Employee" FromRole="LoginBlock" ToRole="Employee" />
        </EntityType>
        <EntityType Name="Model">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Brand" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Brand1" Relationship="SASModel.FK_Model_Brand" FromRole="Model" ToRole="Brand" />
          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Model" FromRole="Model" ToRole="Transport" />
        </EntityType>
        <EntityType Name="Region">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="NameRus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="NameEng" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Number" Type="String" Nullable="false" MaxLength="3" FixedLength="false" Unicode="false" />
          <Property Name="OKATO" Type="String" MaxLength="3" FixedLength="false" Unicode="false" />
          <Property Name="ISO3166_2" Type="String" MaxLength="7" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="RegionCodes" Relationship="SASModel.FK_RegionCode_Region" FromRole="Region" ToRole="RegionCode" />
          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Region" FromRole="Region" ToRole="Transport" />
        </EntityType>
        <EntityType Name="RegionCode">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Region" Type="Int32" Nullable="false" />
          <Property Name="Code" Type="String" Nullable="false" MaxLength="3" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Region1" Relationship="SASModel.FK_RegionCode_Region" FromRole="RegionCode" ToRole="Region" />
        </EntityType>
        <EntityType Name="Role">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Employees" Relationship="SASModel.FK_Employee_Role" FromRole="Role" ToRole="Employee" />
        </EntityType>
        <EntityType Name="sysdiagram">
          <Key>
            <PropertyRef Name="diagram_id" />
          </Key>
          <Property Name="name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
          <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="Transport">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Region" Type="Int32" />
          <Property Name="VIN" Type="String" Nullable="false" MaxLength="17" FixedLength="false" Unicode="false" />
          <Property Name="Category" Type="Int32" />
          <Property Name="Color" Type="Int32" Nullable="false" />
          <Property Name="EngineModel" Type="Int32" Nullable="false" />
          <Property Name="Model" Type="Int32" Nullable="false" />
          <Property Name="RelaseYear" Type="Int32" Nullable="false" />
          <Property Name="WeightKg" Type="Int32" Nullable="false" />
          <Property Name="DriveType" Type="Int32" Nullable="false" />
          <Property Name="TransportType" Type="Int32" />
          <Property Name="Comment" Type="String" MaxLength="300" FixedLength="false" Unicode="false" />
          <Property Name="EngineNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="MaxLoadKg" Type="Int32" />
          <NavigationProperty Name="TransportOwnerships" Relationship="SASModel.FK_TransportOwnership_Transport" FromRole="Transport" ToRole="TransportOwnership" />
          <NavigationProperty Name="TransportPhotoes" Relationship="SASModel.FK_TransportPhoto_Transport" FromRole="Transport" ToRole="TransportPhoto" />
          <NavigationProperty Name="Category1" Relationship="SASModel.FK_Transport_Category" FromRole="Transport" ToRole="Category" />
          <NavigationProperty Name="Color1" Relationship="SASModel.FK_Transport_Color" FromRole="Transport" ToRole="Color" />
          <NavigationProperty Name="DriveType1" Relationship="SASModel.FK_Transport_DriveType" FromRole="Transport" ToRole="DriveType" />
          <NavigationProperty Name="Model1" Relationship="SASModel.FK_Transport_Model" FromRole="Transport" ToRole="Model" />
          <NavigationProperty Name="Region1" Relationship="SASModel.FK_Transport_Region" FromRole="Transport" ToRole="Region" />
          <NavigationProperty Name="TransportType1" Relationship="SASModel.FK_Transport_TransportType" FromRole="Transport" ToRole="TransportType" />
        </EntityType>
        <EntityType Name="TransportOwnership">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Citizen" Type="Int32" Nullable="false" />
          <Property Name="Transport" Type="Int32" Nullable="false" />
          <Property Name="CreatedAt" Type="DateTime" Nullable="false" Precision="0" />
          <NavigationProperty Name="Citizen1" Relationship="SASModel.FK_TransportOwnership_Citizen" FromRole="TransportOwnership" ToRole="Citizen" />
          <NavigationProperty Name="Transport1" Relationship="SASModel.FK_TransportOwnership_Transport" FromRole="TransportOwnership" ToRole="Transport" />
        </EntityType>
        <EntityType Name="TransportPhoto">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Transport" Type="Int32" Nullable="false" />
          <Property Name="Photo" Type="Int32" Nullable="false" />
          <NavigationProperty Name="File" Relationship="SASModel.FK_TransportPhoto_File" FromRole="TransportPhoto" ToRole="File" />
          <NavigationProperty Name="Transport1" Relationship="SASModel.FK_TransportPhoto_Transport" FromRole="TransportPhoto" ToRole="Transport" />
        </EntityType>
        <EntityType Name="TransportType">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="NameRus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="NameEng" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_TransportType" FromRole="TransportType" ToRole="Transport" />
        </EntityType>
        <Association Name="FK_Model_Brand">
          <End Type="SASModel.Brand" Role="Brand" Multiplicity="1" />
          <End Type="SASModel.Model" Role="Model" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Brand">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Model">
              <PropertyRef Name="Brand" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenseCategory_Category">
          <End Type="SASModel.Category" Role="Category" Multiplicity="1" />
          <End Type="SASModel.LicenseCategory" Role="LicenseCategory" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Category">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="LicenseCategory">
              <PropertyRef Name="Category" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Citizen_File">
          <End Type="SASModel.File" Role="File" Multiplicity="0..1" />
          <End Type="SASModel.Citizen" Role="Citizen" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="File">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Citizen">
              <PropertyRef Name="Photo" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Citizen_Job">
          <End Type="SASModel.Job" Role="Job" Multiplicity="0..1" />
          <End Type="SASModel.Citizen" Role="Citizen" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Job">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Citizen">
              <PropertyRef Name="Job" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_License_License">
          <End Type="SASModel.Citizen" Role="Citizen" Multiplicity="1" />
          <End Type="SASModel.License" Role="License" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Citizen">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="License">
              <PropertyRef Name="Citizen" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_TransportOwnership_Citizen">
          <End Type="SASModel.Citizen" Role="Citizen" Multiplicity="1" />
          <End Type="SASModel.TransportOwnership" Role="TransportOwnership" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Citizen">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="TransportOwnership">
              <PropertyRef Name="Citizen" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Job_Company">
          <End Type="SASModel.Company" Role="Company" Multiplicity="1" />
          <End Type="SASModel.Job" Role="Job" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Company">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Job">
              <PropertyRef Name="Company" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Employee_DivisionGIBDD">
          <End Type="SASModel.DivisionGIBDD" Role="DivisionGIBDD" Multiplicity="1" />
          <End Type="SASModel.Employee" Role="Employee" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionGIBDD">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Employee">
              <PropertyRef Name="DivisionGIBDD" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Employee_Role">
          <End Type="SASModel.Role" Role="Role" Multiplicity="1" />
          <End Type="SASModel.Employee" Role="Employee" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Role">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Employee">
              <PropertyRef Name="Role" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LoginAttempt_Employee">
          <End Type="SASModel.Employee" Role="Employee" Multiplicity="1" />
          <End Type="SASModel.LoginAttempt" Role="LoginAttempt" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Employee">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="LoginAttempt">
              <PropertyRef Name="Employee" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LoginBlock_Employee">
          <End Type="SASModel.Employee" Role="Employee" Multiplicity="1" />
          <End Type="SASModel.LoginBlock" Role="LoginBlock" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Employee">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="LoginBlock">
              <PropertyRef Name="Employee" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_EngineType_FuelType">
          <End Type="SASModel.FuelType" Role="FuelType" Multiplicity="1" />
          <End Type="SASModel.EngineModel" Role="EngineModel" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="FuelType">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="EngineModel">
              <PropertyRef Name="FuelType" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_File_Extension">
          <End Type="SASModel.Extension" Role="Extension" Multiplicity="0..1" />
          <End Type="SASModel.File" Role="File" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Extension">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="File">
              <PropertyRef Name="Extension" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_TransportPhoto_File">
          <End Type="SASModel.File" Role="File" Multiplicity="1" />
          <End Type="SASModel.TransportPhoto" Role="TransportPhoto" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="File">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="TransportPhoto">
              <PropertyRef Name="Photo" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenseCategory_License">
          <End Type="SASModel.License" Role="License" Multiplicity="1" />
          <End Type="SASModel.LicenseCategory" Role="LicenseCategory" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="License">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="LicenseCategory">
              <PropertyRef Name="License" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_RegionCode_Region">
          <End Type="SASModel.Region" Role="Region" Multiplicity="1" />
          <End Type="SASModel.RegionCode" Role="RegionCode" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Region">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="RegionCode">
              <PropertyRef Name="Region" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_TransportOwnership_Transport">
          <End Type="SASModel.Transport" Role="Transport" Multiplicity="1" />
          <End Type="SASModel.TransportOwnership" Role="TransportOwnership" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Transport">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="TransportOwnership">
              <PropertyRef Name="Transport" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_TransportPhoto_Transport">
          <End Type="SASModel.Transport" Role="Transport" Multiplicity="1" />
          <End Type="SASModel.TransportPhoto" Role="TransportPhoto" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Transport">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="TransportPhoto">
              <PropertyRef Name="Transport" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_Category">
          <End Type="SASModel.Category" Role="Category" Multiplicity="0..1" />
          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Category">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="Category" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_Color">
          <End Type="SASModel.Color" Role="Color" Multiplicity="1" />
          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Color">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="Color" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_DriveType">
          <End Type="SASModel.DriveType" Role="DriveType" Multiplicity="1" />
          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DriveType">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="DriveType" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_Model">
          <End Type="SASModel.Model" Role="Model" Multiplicity="1" />
          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Model">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="Model" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_Region">
          <End Type="SASModel.Region" Role="Region" Multiplicity="0..1" />
          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Region">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="Region" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Transport_TransportType">
          <End Type="SASModel.TransportType" Role="TransportType" Multiplicity="0..1" />
          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="TransportType">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="Transport">
              <PropertyRef Name="TransportType" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
      </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="Хранилище SASModelContainer" CdmEntityContainer="SASEntities">
          <EntitySetMapping Name="Brands">
            <EntityTypeMapping TypeName="SASModel.Brand">
              <MappingFragment StoreEntitySet="Brand">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Categories">
            <EntityTypeMapping TypeName="SASModel.Category">
              <MappingFragment StoreEntitySet="Category">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Citizens">
            <EntityTypeMapping TypeName="SASModel.Citizen">
              <MappingFragment StoreEntitySet="Citizen">
                <ScalarProperty Name="DateOfBirth" ColumnName="DateOfBirth" />
                <ScalarProperty Name="Discription" ColumnName="Discription" />
                <ScalarProperty Name="Comment" ColumnName="Comment" />
                <ScalarProperty Name="CurrentAddress" ColumnName="CurrentAddress" />
                <ScalarProperty Name="Photo" ColumnName="Photo" />
                <ScalarProperty Name="RegistrationAddress" ColumnName="RegistrationAddress" />
                <ScalarProperty Name="MailIndex" ColumnName="MailIndex" />
                <ScalarProperty Name="PassNumber" ColumnName="PassNumber" />
                <ScalarProperty Name="PassSeries" ColumnName="PassSeries" />
                <ScalarProperty Name="Phone" ColumnName="Phone" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="Job" ColumnName="Job" />
                <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Surname" ColumnName="Surname" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Colors">
            <EntityTypeMapping TypeName="SASModel.Color">
              <MappingFragment StoreEntitySet="Color">
                <ScalarProperty Name="IsMetallic" ColumnName="IsMetallic" />
                <ScalarProperty Name="DiscriptionEng" ColumnName="DiscriptionEng" />
                <ScalarProperty Name="NameEng" ColumnName="NameEng" />
                <ScalarProperty Name="DiscriptionRus" ColumnName="DiscriptionRus" />
                <ScalarProperty Name="NameRus" ColumnName="NameRus" />
                <ScalarProperty Name="HEX" ColumnName="HEX" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Companies">
            <EntityTypeMapping TypeName="SASModel.Company">
              <MappingFragment StoreEntitySet="Company">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DivisionGIBDDs">
            <EntityTypeMapping TypeName="SASModel.DivisionGIBDD">
              <MappingFragment StoreEntitySet="DivisionGIBDD">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DriveTypes">
            <EntityTypeMapping TypeName="SASModel.DriveType">
              <MappingFragment StoreEntitySet="DriveType">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Employees">
            <EntityTypeMapping TypeName="SASModel.Employee">
              <MappingFragment StoreEntitySet="Employee">
                <ScalarProperty Name="Password" ColumnName="Password" />
                <ScalarProperty Name="Login" ColumnName="Login" />
                <ScalarProperty Name="Role" ColumnName="Role" />
                <ScalarProperty Name="DivisionGIBDD" ColumnName="DivisionGIBDD" />
                <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Surname" ColumnName="Surname" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="EngineModels">
            <EntityTypeMapping TypeName="SASModel.EngineModel">
              <MappingFragment StoreEntitySet="EngineModel">
                <ScalarProperty Name="FuelType" ColumnName="FuelType" />
                <ScalarProperty Name="ReleaseYear" ColumnName="ReleaseYear" />
                <ScalarProperty Name="PowerHorse" ColumnName="PowerHorse" />
                <ScalarProperty Name="PowerKWh" ColumnName="PowerKWh" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Extensions">
            <EntityTypeMapping TypeName="SASModel.Extension">
              <MappingFragment StoreEntitySet="Extension">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Files">
            <EntityTypeMapping TypeName="SASModel.File">
              <MappingFragment StoreEntitySet="File">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="BinaryData" ColumnName="BinaryData" />
                <ScalarProperty Name="Extension" ColumnName="Extension" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="FuelTypes">
            <EntityTypeMapping TypeName="SASModel.FuelType">
              <MappingFragment StoreEntitySet="FuelType">
                <ScalarProperty Name="NameRus" ColumnName="NameRus" />
                <ScalarProperty Name="NameEng" ColumnName="NameEng" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Jobs">
            <EntityTypeMapping TypeName="SASModel.Job">
              <MappingFragment StoreEntitySet="Job">
                <ScalarProperty Name="Company" ColumnName="Company" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Licenses">
            <EntityTypeMapping TypeName="SASModel.License">
              <MappingFragment StoreEntitySet="License">
                <ScalarProperty Name="Number" ColumnName="Number" />
                <ScalarProperty Name="Series" ColumnName="Series" />
                <ScalarProperty Name="DiateFinish" ColumnName="DiateFinish" />
                <ScalarProperty Name="DateStart" ColumnName="DateStart" />
                <ScalarProperty Name="Citizen" ColumnName="Citizen" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenseCategories">
            <EntityTypeMapping TypeName="SASModel.LicenseCategory">
              <MappingFragment StoreEntitySet="LicenseCategory">
                <ScalarProperty Name="License" ColumnName="License" />
                <ScalarProperty Name="Category" ColumnName="Category" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LoginAttempts">
            <EntityTypeMapping TypeName="SASModel.LoginAttempt">
              <MappingFragment StoreEntitySet="LoginAttempt">
                <ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
                <ScalarProperty Name="Employee" ColumnName="Employee" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LoginBlocks">
            <EntityTypeMapping TypeName="SASModel.LoginBlock">
              <MappingFragment StoreEntitySet="LoginBlock">
                <ScalarProperty Name="BlockedUntil" ColumnName="BlockedUntil" />
                <ScalarProperty Name="Employee" ColumnName="Employee" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Models">
            <EntityTypeMapping TypeName="SASModel.Model">
              <MappingFragment StoreEntitySet="Model">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Brand" ColumnName="Brand" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Regions">
            <EntityTypeMapping TypeName="SASModel.Region">
              <MappingFragment StoreEntitySet="Region">
                <ScalarProperty Name="ISO3166_2" ColumnName="ISO3166_2" />
                <ScalarProperty Name="OKATO" ColumnName="OKATO" />
                <ScalarProperty Name="Number" ColumnName="Number" />
                <ScalarProperty Name="NameEng" ColumnName="NameEng" />
                <ScalarProperty Name="NameRus" ColumnName="NameRus" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="RegionCodes">
            <EntityTypeMapping TypeName="SASModel.RegionCode">
              <MappingFragment StoreEntitySet="RegionCode">
                <ScalarProperty Name="Code" ColumnName="Code" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Roles">
            <EntityTypeMapping TypeName="SASModel.Role">
              <MappingFragment StoreEntitySet="Role">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="sysdiagrams">
            <EntityTypeMapping TypeName="SASModel.sysdiagram">
              <MappingFragment StoreEntitySet="sysdiagrams">
                <ScalarProperty Name="definition" ColumnName="definition" />
                <ScalarProperty Name="version" ColumnName="version" />
                <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
                <ScalarProperty Name="principal_id" ColumnName="principal_id" />
                <ScalarProperty Name="name" ColumnName="name" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Transports">
            <EntityTypeMapping TypeName="SASModel.Transport">
              <MappingFragment StoreEntitySet="Transport">
                <ScalarProperty Name="MaxLoadKg" ColumnName="MaxLoadKg" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="Comment" ColumnName="Comment" />
                <ScalarProperty Name="TransportType" ColumnName="TransportType" />
                <ScalarProperty Name="DriveType" ColumnName="DriveType" />
                <ScalarProperty Name="WeightKg" ColumnName="WeightKg" />
                <ScalarProperty Name="RelaseYear" ColumnName="RelaseYear" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="EngineModel" ColumnName="EngineModel" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Category" ColumnName="Category" />
                <ScalarProperty Name="VIN" ColumnName="VIN" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="TransportOwnerships">
            <EntityTypeMapping TypeName="SASModel.TransportOwnership">
              <MappingFragment StoreEntitySet="TransportOwnership">
                <ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
                <ScalarProperty Name="Transport" ColumnName="Transport" />
                <ScalarProperty Name="Citizen" ColumnName="Citizen" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="TransportPhotoes">
            <EntityTypeMapping TypeName="SASModel.TransportPhoto">
              <MappingFragment StoreEntitySet="TransportPhoto">
                <ScalarProperty Name="Photo" ColumnName="Photo" />
                <ScalarProperty Name="Transport" ColumnName="Transport" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="TransportTypes">
            <EntityTypeMapping TypeName="SASModel.TransportType">
              <MappingFragment StoreEntitySet="TransportType">
                <ScalarProperty Name="NameEng" ColumnName="NameEng" />
                <ScalarProperty Name="NameRus" ColumnName="NameRus" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </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="true" />
        <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>