<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="TestBaseQWERTModel" 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="TestBaseQWERTEntities" annotation:LazyLoadingEnabled="true">
    <EntitySet Name="TableRoles" EntityType="TestBaseQWERTModel.TableRoles" />
    <EntitySet Name="TableUsers" EntityType="TestBaseQWERTModel.TableUsers" />
    <AssociationSet Name="FK_TableUsers_TableRoles" Association="TestBaseQWERTModel.FK_TableUsers_TableRoles">
      <End Role="TableRoles" EntitySet="TableRoles" />
      <End Role="TableUsers" EntitySet="TableUsers" />
    </AssociationSet>
  </EntityContainer>
  <EntityType Name="TableRoles">
    <Key>
      <PropertyRef Name="RoleId" />
    </Key>
    <Property Name="RoleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
    <Property Name="RoleName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
    <NavigationProperty Name="TableUsers" Relationship="TestBaseQWERTModel.FK_TableUsers_TableRoles" FromRole="TableRoles" ToRole="TableUsers" />
  </EntityType>
  <EntityType Name="TableUsers">
    <Key>
      <PropertyRef Name="UserId" />
    </Key>
    <Property Name="UserId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
    <Property Name="UserSurname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Name="UserName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Name="UserPatronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Name="UserBirthday" Type="DateTime" Nullable="false" Precision="0" />
    <Property Name="UserRole" Type="Int32" Nullable="false" />
    <Property Name="UserPhone" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Name="UserLogin" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Name="UserPassword" Type="Int32" Nullable="false" />
    <Property Name="UserPhoto" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
    <NavigationProperty Name="TableRoles" Relationship="TestBaseQWERTModel.FK_TableUsers_TableRoles" FromRole="TableUsers" ToRole="TableRoles" />
  </EntityType>
  <Association Name="FK_TableUsers_TableRoles">
    <End Type="TestBaseQWERTModel.TableRoles" Role="TableRoles" Multiplicity="1" />
    <End Type="TestBaseQWERTModel.TableUsers" Role="TableUsers" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="TableRoles">
        <PropertyRef Name="RoleId" />
      </Principal>
      <Dependent Role="TableUsers">
        <PropertyRef Name="UserRole" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
</Schema>