<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="Хранилище TestBaseQWERTModel" 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="TableRoles">
    <Key>
      <PropertyRef Name="RoleId" />
    </Key>
    <Property Name="RoleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="RoleName" Type="nvarchar" MaxLength="50" Nullable="false" />
  </EntityType>
  <EntityType Name="TableUsers">
    <Key>
      <PropertyRef Name="UserId" />
    </Key>
    <Property Name="UserId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="UserSurname" Type="nvarchar" MaxLength="50" Nullable="false" />
    <Property Name="UserName" Type="nvarchar" MaxLength="50" Nullable="false" />
    <Property Name="UserPatronymic" Type="nvarchar" MaxLength="50" Nullable="false" />
    <Property Name="UserBirthday" Type="date" Nullable="false" />
    <Property Name="UserRole" Type="int" Nullable="false" />
    <Property Name="UserPhone" Type="nvarchar" MaxLength="50" Nullable="false" />
    <Property Name="UserLogin" Type="nvarchar" MaxLength="50" Nullable="false" />
    <Property Name="UserPassword" Type="int" Nullable="false" />
    <Property Name="UserPhoto" Type="nvarchar(max)" />
  </EntityType>
  <Association Name="FK_TableUsers_TableRoles">
    <End Role="TableRoles" Type="Self.TableRoles" Multiplicity="1" />
    <End Role="TableUsers" Type="Self.TableUsers" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="TableRoles">
        <PropertyRef Name="RoleId" />
      </Principal>
      <Dependent Role="TableUsers">
        <PropertyRef Name="UserRole" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <EntityContainer Name="Хранилище TestBaseQWERTModelContainer">
    <EntitySet Name="TableRoles" EntityType="Self.TableRoles" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="TableUsers" EntityType="Self.TableUsers" Schema="dbo" store:Type="Tables" />
    <AssociationSet Name="FK_TableUsers_TableRoles" Association="Self.FK_TableUsers_TableRoles">
      <End Role="TableRoles" EntitySet="TableRoles" />
      <End Role="TableUsers" EntitySet="TableUsers" />
    </AssociationSet>
  </EntityContainer>
</Schema>