|
@@ -0,0 +1,1569 @@
|
|
|
+<?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" />
|
|
|
+ </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="EngineType">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="NameRus" Type="varchar" MaxLength="35" Nullable="false" />
|
|
|
+ <Property Name="NameEng" Type="varchar" MaxLength="35" 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="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="35" 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>
|
|
|
+ <EntityType Name="Transport">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Region" Type="int" Nullable="false" />
|
|
|
+ <Property Name="VIN" Type="varchar" MaxLength="17" Nullable="false" />
|
|
|
+ <Property Name="Category" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Color" Type="int" Nullable="false" />
|
|
|
+ <Property Name="EngineType" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Model" Type="int" Nullable="false" />
|
|
|
+ <Property Name="RelaseYear" Type="date" Nullable="false" />
|
|
|
+ <Property Name="WeightKg" Type="int" Nullable="false" />
|
|
|
+ <Property Name="DriveType" Type="int" Nullable="false" />
|
|
|
+ </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>
|
|
|
+ <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_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="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_EngineType">
|
|
|
+ <End Role="EngineType" Type="Self.EngineType" Multiplicity="1" />
|
|
|
+ <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="EngineType">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="EngineType" />
|
|
|
+ </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="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_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="EngineType" EntityType="Self.EngineType" 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="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" />
|
|
|
+ <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_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_EngineType" Association="Self.FK_Transport_EngineType">
|
|
|
+ <End Role="EngineType" EntitySet="EngineType" />
|
|
|
+ <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_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">
|
|
|
+ <EntityType Name="Brand">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Models" Relationship="Self.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" MaxLength="3" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="LicenseCategories" Relationship="Self.FK_LicenseCategory_Category" FromRole="Category" ToRole="LicenseCategory" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="Self.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" MaxLength="30" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="25" FixedLength="false" Unicode="false" Nullable="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" MaxLength="4" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="PassNumber" Type="String" MaxLength="6" FixedLength="false" Unicode="false" Nullable="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" MaxLength="150" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Comment" Type="String" MaxLength="300" FixedLength="false" Unicode="false" />
|
|
|
+ <Property Name="Discription" Type="String" MaxLength="300" FixedLength="false" Unicode="false" />
|
|
|
+ <NavigationProperty Name="File" Relationship="Self.FK_Citizen_File" FromRole="Citizen" ToRole="File" />
|
|
|
+ <NavigationProperty Name="Job1" Relationship="Self.FK_Citizen_Job" FromRole="Citizen" ToRole="Job" />
|
|
|
+ <NavigationProperty Name="Licenses" Relationship="Self.FK_License_License" FromRole="Citizen" ToRole="License" />
|
|
|
+ <NavigationProperty Name="TransportOwnerships" Relationship="Self.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" MaxLength="7" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="NameRus" Type="String" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="DiscriptionRus" Type="String" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="NameEng" Type="String" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="DiscriptionEng" Type="String" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="IsMetallic" Type="Boolean" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="Self.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" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Jobs" Relationship="Self.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" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Employees" Relationship="Self.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" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="Self.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" MaxLength="30" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="25" FixedLength="false" Unicode="false" Nullable="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" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Password" Type="String" MaxLength="256" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="DivisionGIBDD1" Relationship="Self.FK_Employee_DivisionGIBDD" FromRole="Employee" ToRole="DivisionGIBDD" />
|
|
|
+ <NavigationProperty Name="Role1" Relationship="Self.FK_Employee_Role" FromRole="Employee" ToRole="Role" />
|
|
|
+ <NavigationProperty Name="LoginAttempts" Relationship="Self.FK_LoginAttempt_Employee" FromRole="Employee" ToRole="LoginAttempt" />
|
|
|
+ <NavigationProperty Name="LoginBlocks" Relationship="Self.FK_LoginBlock_Employee" FromRole="Employee" ToRole="LoginBlock" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="EngineType">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="NameRus" Type="String" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="NameEng" Type="String" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="Self.FK_Transport_EngineType" FromRole="EngineType" ToRole="Transport" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Extension">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="6" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Files" Relationship="Self.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" MaxLength="Max" FixedLength="false" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Citizens" Relationship="Self.FK_Citizen_File" FromRole="File" ToRole="Citizen" />
|
|
|
+ <NavigationProperty Name="Extension1" Relationship="Self.FK_File_Extension" FromRole="File" ToRole="Extension" />
|
|
|
+ <NavigationProperty Name="TransportPhotoes" Relationship="Self.FK_TransportPhoto_File" FromRole="File" ToRole="TransportPhoto" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Job">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Company" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Citizens" Relationship="Self.FK_Citizen_Job" FromRole="Job" ToRole="Citizen" />
|
|
|
+ <NavigationProperty Name="Company1" Relationship="Self.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" MaxLength="4" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Number" Type="String" MaxLength="6" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Citizen1" Relationship="Self.FK_License_License" FromRole="License" ToRole="Citizen" />
|
|
|
+ <NavigationProperty Name="LicenseCategories" Relationship="Self.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="Self.FK_LicenseCategory_Category" FromRole="LicenseCategory" ToRole="Category" />
|
|
|
+ <NavigationProperty Name="License1" Relationship="Self.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="Self.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="Self.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" MaxLength="35" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Brand1" Relationship="Self.FK_Model_Brand" FromRole="Model" ToRole="Brand" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="Self.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" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="NameEng" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
|
+ <Property Name="Number" Type="String" MaxLength="3" FixedLength="false" Unicode="false" Nullable="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="Self.FK_RegionCode_Region" FromRole="Region" ToRole="RegionCode" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="Self.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" MaxLength="3" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Region1" Relationship="Self.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" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Employees" Relationship="Self.FK_Employee_Role" FromRole="Role" ToRole="Employee" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="sysdiagram">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="diagram_id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="principal_id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="version" Type="Int32" />
|
|
|
+ <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Transport">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Region" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="VIN" Type="String" MaxLength="17" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Category" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Color" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="EngineType" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Model" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="RelaseYear" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
+ <Property Name="WeightKg" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="DriveType" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Category1" Relationship="Self.FK_Transport_Category" FromRole="Transport" ToRole="Category" />
|
|
|
+ <NavigationProperty Name="Color1" Relationship="Self.FK_Transport_Color" FromRole="Transport" ToRole="Color" />
|
|
|
+ <NavigationProperty Name="DriveType1" Relationship="Self.FK_Transport_DriveType" FromRole="Transport" ToRole="DriveType" />
|
|
|
+ <NavigationProperty Name="EngineType1" Relationship="Self.FK_Transport_EngineType" FromRole="Transport" ToRole="EngineType" />
|
|
|
+ <NavigationProperty Name="Model1" Relationship="Self.FK_Transport_Model" FromRole="Transport" ToRole="Model" />
|
|
|
+ <NavigationProperty Name="Region1" Relationship="Self.FK_Transport_Region" FromRole="Transport" ToRole="Region" />
|
|
|
+ <NavigationProperty Name="TransportOwnerships" Relationship="Self.FK_TransportOwnership_Transport" FromRole="Transport" ToRole="TransportOwnership" />
|
|
|
+ <NavigationProperty Name="TransportPhotoes" Relationship="Self.FK_TransportPhoto_Transport" FromRole="Transport" ToRole="TransportPhoto" />
|
|
|
+ </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="Self.FK_TransportOwnership_Citizen" FromRole="TransportOwnership" ToRole="Citizen" />
|
|
|
+ <NavigationProperty Name="Transport1" Relationship="Self.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="Self.FK_TransportPhoto_File" FromRole="TransportPhoto" ToRole="File" />
|
|
|
+ <NavigationProperty Name="Transport1" Relationship="Self.FK_TransportPhoto_Transport" FromRole="TransportPhoto" ToRole="Transport" />
|
|
|
+ </EntityType>
|
|
|
+ <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_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_Transport_Category">
|
|
|
+ <End Role="Category" Type="Self.Category" Multiplicity="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_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_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_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_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_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_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_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_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_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_Transport_EngineType">
|
|
|
+ <End Role="EngineType" Type="Self.EngineType" Multiplicity="1" />
|
|
|
+ <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="EngineType">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="EngineType" />
|
|
|
+ </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_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_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_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_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_Region">
|
|
|
+ <End Role="Region" Type="Self.Region" Multiplicity="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_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_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="SASEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Brands" EntityType="Self.Brand" />
|
|
|
+ <EntitySet Name="Categories" EntityType="Self.Category" />
|
|
|
+ <EntitySet Name="Citizens" EntityType="Self.Citizen" />
|
|
|
+ <EntitySet Name="Colors" EntityType="Self.Color" />
|
|
|
+ <EntitySet Name="Companies" EntityType="Self.Company" />
|
|
|
+ <EntitySet Name="DivisionGIBDDs" EntityType="Self.DivisionGIBDD" />
|
|
|
+ <EntitySet Name="DriveTypes" EntityType="Self.DriveType" />
|
|
|
+ <EntitySet Name="Employees" EntityType="Self.Employee" />
|
|
|
+ <EntitySet Name="EngineTypes" EntityType="Self.EngineType" />
|
|
|
+ <EntitySet Name="Extensions" EntityType="Self.Extension" />
|
|
|
+ <EntitySet Name="Files" EntityType="Self.File" />
|
|
|
+ <EntitySet Name="Jobs" EntityType="Self.Job" />
|
|
|
+ <EntitySet Name="Licenses" EntityType="Self.License" />
|
|
|
+ <EntitySet Name="LicenseCategories" EntityType="Self.LicenseCategory" />
|
|
|
+ <EntitySet Name="LoginAttempts" EntityType="Self.LoginAttempt" />
|
|
|
+ <EntitySet Name="LoginBlocks" EntityType="Self.LoginBlock" />
|
|
|
+ <EntitySet Name="Models" EntityType="Self.Model" />
|
|
|
+ <EntitySet Name="Regions" EntityType="Self.Region" />
|
|
|
+ <EntitySet Name="RegionCodes" EntityType="Self.RegionCode" />
|
|
|
+ <EntitySet Name="Roles" EntityType="Self.Role" />
|
|
|
+ <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagram" />
|
|
|
+ <EntitySet Name="Transports" EntityType="Self.Transport" />
|
|
|
+ <EntitySet Name="TransportOwnerships" EntityType="Self.TransportOwnership" />
|
|
|
+ <EntitySet Name="TransportPhotoes" EntityType="Self.TransportPhoto" />
|
|
|
+ <AssociationSet Name="FK_Model_Brand" Association="Self.FK_Model_Brand">
|
|
|
+ <End Role="Brand" EntitySet="Brands" />
|
|
|
+ <End Role="Model" EntitySet="Models" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_LicenseCategory_Category" Association="Self.FK_LicenseCategory_Category">
|
|
|
+ <End Role="Category" EntitySet="Categories" />
|
|
|
+ <End Role="LicenseCategory" EntitySet="LicenseCategories" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Category" Association="Self.FK_Transport_Category">
|
|
|
+ <End Role="Category" EntitySet="Categories" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Citizen_File" Association="Self.FK_Citizen_File">
|
|
|
+ <End Role="File" EntitySet="Files" />
|
|
|
+ <End Role="Citizen" EntitySet="Citizens" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Citizen_Job" Association="Self.FK_Citizen_Job">
|
|
|
+ <End Role="Job" EntitySet="Jobs" />
|
|
|
+ <End Role="Citizen" EntitySet="Citizens" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_License_License" Association="Self.FK_License_License">
|
|
|
+ <End Role="Citizen" EntitySet="Citizens" />
|
|
|
+ <End Role="License" EntitySet="Licenses" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_TransportOwnership_Citizen" Association="Self.FK_TransportOwnership_Citizen">
|
|
|
+ <End Role="Citizen" EntitySet="Citizens" />
|
|
|
+ <End Role="TransportOwnership" EntitySet="TransportOwnerships" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Color" Association="Self.FK_Transport_Color">
|
|
|
+ <End Role="Color" EntitySet="Colors" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Job_Company" Association="Self.FK_Job_Company">
|
|
|
+ <End Role="Company" EntitySet="Companies" />
|
|
|
+ <End Role="Job" EntitySet="Jobs" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Employee_DivisionGIBDD" Association="Self.FK_Employee_DivisionGIBDD">
|
|
|
+ <End Role="DivisionGIBDD" EntitySet="DivisionGIBDDs" />
|
|
|
+ <End Role="Employee" EntitySet="Employees" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_DriveType" Association="Self.FK_Transport_DriveType">
|
|
|
+ <End Role="DriveType" EntitySet="DriveTypes" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Employee_Role" Association="Self.FK_Employee_Role">
|
|
|
+ <End Role="Role" EntitySet="Roles" />
|
|
|
+ <End Role="Employee" EntitySet="Employees" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_LoginAttempt_Employee" Association="Self.FK_LoginAttempt_Employee">
|
|
|
+ <End Role="Employee" EntitySet="Employees" />
|
|
|
+ <End Role="LoginAttempt" EntitySet="LoginAttempts" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_LoginBlock_Employee" Association="Self.FK_LoginBlock_Employee">
|
|
|
+ <End Role="Employee" EntitySet="Employees" />
|
|
|
+ <End Role="LoginBlock" EntitySet="LoginBlocks" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_EngineType" Association="Self.FK_Transport_EngineType">
|
|
|
+ <End Role="EngineType" EntitySet="EngineTypes" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_File_Extension" Association="Self.FK_File_Extension">
|
|
|
+ <End Role="Extension" EntitySet="Extensions" />
|
|
|
+ <End Role="File" EntitySet="Files" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_TransportPhoto_File" Association="Self.FK_TransportPhoto_File">
|
|
|
+ <End Role="File" EntitySet="Files" />
|
|
|
+ <End Role="TransportPhoto" EntitySet="TransportPhotoes" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_LicenseCategory_License" Association="Self.FK_LicenseCategory_License">
|
|
|
+ <End Role="License" EntitySet="Licenses" />
|
|
|
+ <End Role="LicenseCategory" EntitySet="LicenseCategories" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Model" Association="Self.FK_Transport_Model">
|
|
|
+ <End Role="Model" EntitySet="Models" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_RegionCode_Region" Association="Self.FK_RegionCode_Region">
|
|
|
+ <End Role="Region" EntitySet="Regions" />
|
|
|
+ <End Role="RegionCode" EntitySet="RegionCodes" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Region" Association="Self.FK_Transport_Region">
|
|
|
+ <End Role="Region" EntitySet="Regions" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_TransportOwnership_Transport" Association="Self.FK_TransportOwnership_Transport">
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ <End Role="TransportOwnership" EntitySet="TransportOwnerships" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_TransportPhoto_Transport" Association="Self.FK_TransportPhoto_Transport">
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ <End Role="TransportPhoto" EntitySet="TransportPhotoes" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ </Schema>
|
|
|
+ </edmx:ConceptualModels>
|
|
|
+ <!-- C-S mapping content -->
|
|
|
+ <edmx:Mappings>
|
|
|
+ <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
|
+ <EntityContainerMapping StorageEntityContainer="Хранилище SASModelContainer" CdmEntityContainer="SASEntities">
|
|
|
+ <EntitySetMapping Name="Brands">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Brand">
|
|
|
+ <MappingFragment StoreEntitySet="Brand">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Categories">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Category">
|
|
|
+ <MappingFragment StoreEntitySet="Category">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Citizens">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Citizen">
|
|
|
+ <MappingFragment StoreEntitySet="Citizen">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Surname" ColumnName="Surname" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
|
|
|
+ <ScalarProperty Name="Job" ColumnName="Job" />
|
|
|
+ <ScalarProperty Name="Email" ColumnName="Email" />
|
|
|
+ <ScalarProperty Name="Phone" ColumnName="Phone" />
|
|
|
+ <ScalarProperty Name="PassSeries" ColumnName="PassSeries" />
|
|
|
+ <ScalarProperty Name="PassNumber" ColumnName="PassNumber" />
|
|
|
+ <ScalarProperty Name="MailIndex" ColumnName="MailIndex" />
|
|
|
+ <ScalarProperty Name="RegistrationAddress" ColumnName="RegistrationAddress" />
|
|
|
+ <ScalarProperty Name="Photo" ColumnName="Photo" />
|
|
|
+ <ScalarProperty Name="CurrentAddress" ColumnName="CurrentAddress" />
|
|
|
+ <ScalarProperty Name="Comment" ColumnName="Comment" />
|
|
|
+ <ScalarProperty Name="Discription" ColumnName="Discription" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Colors">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Color">
|
|
|
+ <MappingFragment StoreEntitySet="Color">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="HEX" ColumnName="HEX" />
|
|
|
+ <ScalarProperty Name="NameRus" ColumnName="NameRus" />
|
|
|
+ <ScalarProperty Name="DiscriptionRus" ColumnName="DiscriptionRus" />
|
|
|
+ <ScalarProperty Name="NameEng" ColumnName="NameEng" />
|
|
|
+ <ScalarProperty Name="DiscriptionEng" ColumnName="DiscriptionEng" />
|
|
|
+ <ScalarProperty Name="IsMetallic" ColumnName="IsMetallic" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Companies">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Company">
|
|
|
+ <MappingFragment StoreEntitySet="Company">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="DivisionGIBDDs">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.DivisionGIBDD">
|
|
|
+ <MappingFragment StoreEntitySet="DivisionGIBDD">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="DriveTypes">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.DriveType">
|
|
|
+ <MappingFragment StoreEntitySet="DriveType">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Employees">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Employee">
|
|
|
+ <MappingFragment StoreEntitySet="Employee">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Surname" ColumnName="Surname" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
|
|
|
+ <ScalarProperty Name="DivisionGIBDD" ColumnName="DivisionGIBDD" />
|
|
|
+ <ScalarProperty Name="Role" ColumnName="Role" />
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="EngineTypes">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.EngineType">
|
|
|
+ <MappingFragment StoreEntitySet="EngineType">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="NameRus" ColumnName="NameRus" />
|
|
|
+ <ScalarProperty Name="NameEng" ColumnName="NameEng" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Extensions">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Extension">
|
|
|
+ <MappingFragment StoreEntitySet="Extension">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Files">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.File">
|
|
|
+ <MappingFragment StoreEntitySet="File">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Extension" ColumnName="Extension" />
|
|
|
+ <ScalarProperty Name="BinaryData" ColumnName="BinaryData" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Jobs">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Job">
|
|
|
+ <MappingFragment StoreEntitySet="Job">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Company" ColumnName="Company" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Licenses">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.License">
|
|
|
+ <MappingFragment StoreEntitySet="License">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Citizen" ColumnName="Citizen" />
|
|
|
+ <ScalarProperty Name="DateStart" ColumnName="DateStart" />
|
|
|
+ <ScalarProperty Name="DiateFinish" ColumnName="DiateFinish" />
|
|
|
+ <ScalarProperty Name="Series" ColumnName="Series" />
|
|
|
+ <ScalarProperty Name="Number" ColumnName="Number" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="LicenseCategories">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.LicenseCategory">
|
|
|
+ <MappingFragment StoreEntitySet="LicenseCategory">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Category" ColumnName="Category" />
|
|
|
+ <ScalarProperty Name="License" ColumnName="License" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="LoginAttempts">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.LoginAttempt">
|
|
|
+ <MappingFragment StoreEntitySet="LoginAttempt">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Employee" ColumnName="Employee" />
|
|
|
+ <ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="LoginBlocks">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.LoginBlock">
|
|
|
+ <MappingFragment StoreEntitySet="LoginBlock">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Employee" ColumnName="Employee" />
|
|
|
+ <ScalarProperty Name="BlockedUntil" ColumnName="BlockedUntil" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Models">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Model">
|
|
|
+ <MappingFragment StoreEntitySet="Model">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Brand" ColumnName="Brand" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Regions">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Region">
|
|
|
+ <MappingFragment StoreEntitySet="Region">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="NameRus" ColumnName="NameRus" />
|
|
|
+ <ScalarProperty Name="NameEng" ColumnName="NameEng" />
|
|
|
+ <ScalarProperty Name="Number" ColumnName="Number" />
|
|
|
+ <ScalarProperty Name="OKATO" ColumnName="OKATO" />
|
|
|
+ <ScalarProperty Name="ISO3166_2" ColumnName="ISO3166_2" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="RegionCodes">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.RegionCode">
|
|
|
+ <MappingFragment StoreEntitySet="RegionCode">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Region" ColumnName="Region" />
|
|
|
+ <ScalarProperty Name="Code" ColumnName="Code" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Roles">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Role">
|
|
|
+ <MappingFragment StoreEntitySet="Role">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="sysdiagrams">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.sysdiagram">
|
|
|
+ <MappingFragment StoreEntitySet="sysdiagrams">
|
|
|
+ <ScalarProperty Name="name" ColumnName="name" />
|
|
|
+ <ScalarProperty Name="principal_id" ColumnName="principal_id" />
|
|
|
+ <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
|
|
|
+ <ScalarProperty Name="version" ColumnName="version" />
|
|
|
+ <ScalarProperty Name="definition" ColumnName="definition" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Transports">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.Transport">
|
|
|
+ <MappingFragment StoreEntitySet="Transport">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Region" ColumnName="Region" />
|
|
|
+ <ScalarProperty Name="VIN" ColumnName="VIN" />
|
|
|
+ <ScalarProperty Name="Category" ColumnName="Category" />
|
|
|
+ <ScalarProperty Name="Color" ColumnName="Color" />
|
|
|
+ <ScalarProperty Name="EngineType" ColumnName="EngineType" />
|
|
|
+ <ScalarProperty Name="Model" ColumnName="Model" />
|
|
|
+ <ScalarProperty Name="RelaseYear" ColumnName="RelaseYear" />
|
|
|
+ <ScalarProperty Name="WeightKg" ColumnName="WeightKg" />
|
|
|
+ <ScalarProperty Name="DriveType" ColumnName="DriveType" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="TransportOwnerships">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.TransportOwnership">
|
|
|
+ <MappingFragment StoreEntitySet="TransportOwnership">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Citizen" ColumnName="Citizen" />
|
|
|
+ <ScalarProperty Name="Transport" ColumnName="Transport" />
|
|
|
+ <ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="TransportPhotoes">
|
|
|
+ <EntityTypeMapping TypeName="SASModel.TransportPhoto">
|
|
|
+ <MappingFragment StoreEntitySet="TransportPhoto">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Transport" ColumnName="Transport" />
|
|
|
+ <ScalarProperty Name="Photo" ColumnName="Photo" />
|
|
|
+ </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>
|