<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="Model1.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  <EntityContainer Name="Model1StoreContainer">
    <EntitySet Name="Processors" EntityType="Model1.Store.Processors" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Computers" EntityType="Model1.Store.Computers" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Settings" EntityType="Model1.Store.Settings" store:Type="Tables" Schema="dbo" />
    <AssociationSet Name="ProcessorComputer" Association="Model1.Store.ProcessorComputer">
      <End Role="Processor" EntitySet="Processors" />
      <End Role="Computer" EntitySet="Computers" />
    </AssociationSet>
  </EntityContainer>
  <EntityType Name="Processors">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="ProcessorName" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Order" Type="int" Nullable="true" />
  </EntityType>
  <EntityType Name="Computers">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="ComputerName" Type="nvarchar(max)" Nullable="false" />
    <Property Name="HDD" Type="int" Nullable="false" />
    <Property Name="UpgradeDate" Type="datetime" Nullable="false" />
    <Property Name="ProcessorId" Type="int" Nullable="false" />
  </EntityType>
  <EntityType Name="Settings">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Key" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Value" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Description" Type="nvarchar(max)" Nullable="false" />
    <Property Name="VType" Type="nvarchar(max)" Nullable="false" />
  </EntityType>
  <Association Name="ProcessorComputer">
    <End Role="Processor" Type="Model1.Store.Processors" Multiplicity="1" />
    <End Role="Computer" Type="Model1.Store.Computers" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Processor">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Computer">
        <PropertyRef Name="ProcessorId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
</Schema>