<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="Хранилище PracticeNBAModel" 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="ActionType">
    <Key>
      <PropertyRef Name="IdActionType" />
    </Key>
    <Property Name="IdActionType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NameActionType" Type="varchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="Conference">
    <Key>
      <PropertyRef Name="IdConference" />
    </Key>
    <Property Name="IdConference" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NameConference" Type="varchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="Country">
    <Key>
      <PropertyRef Name="IdCountry" />
    </Key>
    <Property Name="IdCountry" Type="int" Nullable="false" />
    <Property Name="NameCountry" Type="varchar" MaxLength="50" />
    <Property Name="CodeCountry" Type="char" MaxLength="3" />
  </EntityType>
  <EntityType Name="Department">
    <Key>
      <PropertyRef Name="IdDepartment" />
    </Key>
    <Property Name="IdDepartment" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NameDepartment" Type="varchar" MaxLength="50" />
    <Property Name="IdOrganization" Type="int" />
  </EntityType>
  <EntityType Name="Division">
    <Key>
      <PropertyRef Name="IdDivision" />
    </Key>
    <Property Name="IdDivision" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NameDivision" Type="varchar" MaxLength="50" />
    <Property Name="IdConference" Type="int" />
  </EntityType>
  <EntityType Name="Gender">
    <Key>
      <PropertyRef Name="IdGender" />
    </Key>
    <Property Name="IdGender" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NameGender" Type="varchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="Image">
    <Key>
      <PropertyRef Name="IdImage" />
    </Key>
    <Property Name="IdImage" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Image" Type="image" />
    <Property Name="Description" Type="varchar" MaxLength="50" />
    <Property Name="NumberOfLikes" Type="int" />
    <Property Name="CreateTime" Type="datetime" />
  </EntityType>
  <EntityType Name="Matchup">
    <Key>
      <PropertyRef Name="IdMatchup" />
    </Key>
    <Property Name="IdMatchup" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="IdSeason" Type="int" />
    <Property Name="IdMatchupType" Type="int" />
    <Property Name="IdTeamAway" Type="int" />
    <Property Name="IdTeamHome" Type="int" />
    <Property Name="Starttime" Type="datetime" />
    <Property Name="TeamAwayScore" Type="int" />
    <Property Name="TeamHomeScore" Type="int" />
    <Property Name="Location" Type="varchar" MaxLength="200" />
    <Property Name="IdStatus" Type="int" />
  </EntityType>
  <EntityType Name="MatchupDetail">
    <Key>
      <PropertyRef Name="IdMatchupDetail" />
    </Key>
    <Property Name="IdMatchupDetail" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="IdMatchup" Type="int" />
    <Property Name="IdQuarter" Type="int" />
    <Property Name="TeamAwayScore" Type="int" />
    <Property Name="TeamHomeScore" Type="int" />
  </EntityType>
  <EntityType Name="MatchupLogs">
    <Key>
      <PropertyRef Name="IdMatchupLogs" />
    </Key>
    <Property Name="IdMatchupLogs" Type="int" Nullable="false" />
    <Property Name="IdMatchup" Type="int" />
    <Property Name="IdQuarter" Type="int" />
    <Property Name="OccurTime" Type="varchar" MaxLength="10" />
    <Property Name="IdTeam" Type="int" />
    <Property Name="IdPlayer" Type="int" />
    <Property Name="IdActionType" Type="int" />
    <Property Name="Remark" Type="varchar" MaxLength="300" />
  </EntityType>
  <EntityType Name="MatchupType">
    <Key>
      <PropertyRef Name="IdMatchupType" />
    </Key>
    <Property Name="IdMatchupType" Type="int" Nullable="false" />
    <Property Name="NameMatchupType" Type="varchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="Organization">
    <Key>
      <PropertyRef Name="IdOrganization" />
    </Key>
    <Property Name="IdOrganization" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="OrganizationName" Type="varchar" MaxLength="50" />
    <Property Name="Info" Type="text" />
    <Property Name="IdStatusOrganization" Type="int" />
  </EntityType>
  <EntityType Name="Player">
    <Key>
      <PropertyRef Name="IdPlayer" />
    </Key>
    <Property Name="IdPlayer" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Surename" Type="varchar" MaxLength="50" />
    <Property Name="Name" Type="varchar" MaxLength="50" />
    <Property Name="Patronymic" Type="varchar" MaxLength="50" />
    <Property Name="IdPosition" Type="int" />
    <Property Name="JoinYear" Type="date" />
    <Property Name="IdGender" Type="int" />
    <Property Name="Height" Type="decimal" Precision="10" Scale="2" />
    <Property Name="Weight" Type="decimal" Precision="10" Scale="2" />
    <Property Name="DateOfBirth" Type="date" />
    <Property Name="College" Type="varchar" MaxLength="50" />
    <Property Name="Email" Type="varchar" MaxLength="50" />
    <Property Name="IdCountry" Type="int" />
    <Property Name="IsRetiment" Type="bit" />
    <Property Name="RetirmentTime" Type="date" />
    <Property Name="Image" Type="image" />
  </EntityType>
  <EntityType Name="PlayerInTeam">
    <Key>
      <PropertyRef Name="IdPlayerInTeam" />
    </Key>
    <Property Name="IdPlayerInTeam" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="IdPlayer" Type="int" />
    <Property Name="IdTeam" Type="int" />
    <Property Name="IdSeason" Type="int" />
    <Property Name="ShirtNumber" Type="varchar" MaxLength="10" />
    <Property Name="Salary" Type="decimal" Precision="10" Scale="2" />
    <Property Name="StarterIndex" Type="int" />
  </EntityType>
  <EntityType Name="PlayerStatistic">
    <Key>
      <PropertyRef Name="IdPlayerStatistic" />
    </Key>
    <Property Name="IdPlayerStatistic" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="IdMatchup" Type="int" />
    <Property Name="IdTeam" Type="int" />
    <Property Name="IdPlayer" Type="int" />
    <Property Name="IsStarting" Type="int" />
    <Property Name="Min" Type="decimal" Precision="10" Scale="2" />
    <Property Name="Point" Type="int" />
    <Property Name="Assist" Type="int" />
    <Property Name="FieldGoalMade" Type="int" />
    <Property Name="FieldGoalMissed" Type="int" />
    <Property Name="ThreePointFieldGoalMade" Type="int" />
    <Property Name="ThreePointFieldGoalMissed" Type="int" />
    <Property Name="FreeThrowMade" Type="int" />
    <Property Name="FreeThrowMissed" Type="int" />
    <Property Name="Rebound" Type="int" />
    <Property Name="OFFR" Type="int" />
    <Property Name="DFFR" Type="int" />
    <Property Name="Steal" Type="int" />
    <Property Name="Block" Type="int" />
    <Property Name="Turnover" Type="int" />
    <Property Name="Foul" Type="int" />
  </EntityType>
  <EntityType Name="Position">
    <Key>
      <PropertyRef Name="IdPosition" />
    </Key>
    <Property Name="IdPosition" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NamePosition" Type="varchar" MaxLength="50" />
    <Property Name="Abbr" Type="char" MaxLength="3" />
  </EntityType>
  <EntityType Name="PostSeason">
    <Key>
      <PropertyRef Name="IdPostSeason" />
    </Key>
    <Property Name="IdPostSeason" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="IdSeason" Type="int" />
    <Property Name="IdTeam" Type="int" />
    <Property Name="Rank" Type="int" />
  </EntityType>
  <EntityType Name="Quarter">
    <Key>
      <PropertyRef Name="IdQuarter" />
    </Key>
    <Property Name="IdQuarter" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NameQuarter" Type="varchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="Role">
    <Key>
      <PropertyRef Name="IdRole" />
    </Key>
    <Property Name="IdRole" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="RoleName" Type="varchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="Season">
    <Key>
      <PropertyRef Name="IdSeason" />
    </Key>
    <Property Name="IdSeason" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NameSeason" Type="varchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="Status">
    <Key>
      <PropertyRef Name="IdStatus" />
    </Key>
    <Property Name="IdStatus" Type="int" Nullable="false" />
    <Property Name="NameStatus" Type="varchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="StatusOrganization">
    <Key>
      <PropertyRef Name="IdStatusOrganization" />
    </Key>
    <Property Name="IdStatusOrganization" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="NameStatusOrganization" Type="varchar" MaxLength="50" />
  </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="Team">
    <Key>
      <PropertyRef Name="IdTeam" />
    </Key>
    <Property Name="IdTeam" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="TeamName" Type="varchar" MaxLength="50" />
    <Property Name="IdDivision" Type="int" />
    <Property Name="Couch" Type="varchar" MaxLength="50" />
    <Property Name="Abbr" Type="char" MaxLength="3" />
    <Property Name="Stadium" Type="varchar" MaxLength="100" />
    <Property Name="Logo" Type="image" />
  </EntityType>
  <EntityType Name="User">
    <Key>
      <PropertyRef Name="IdUser" />
    </Key>
    <Property Name="IdUser" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Surename" Type="varchar" MaxLength="50" />
    <Property Name="Name" Type="varchar" MaxLength="50" />
    <Property Name="Patronymic" Type="varchar" MaxLength="50" />
    <Property Name="LoginName" Type="varchar" MaxLength="100" />
    <Property Name="Password" Type="varchar" MaxLength="50" />
    <Property Name="IdGender" Type="int" />
    <Property Name="DateOfBirth" Type="date" />
    <Property Name="Phone" Type="varchar" MaxLength="20" />
    <Property Name="Email" Type="varchar" MaxLength="50" />
    <Property Name="IdRole" Type="int" />
  </EntityType>
  <Association Name="FK_Department_Organization">
    <End Role="Organization" Type="Self.Organization" Multiplicity="0..1" />
    <End Role="Department" Type="Self.Department" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Organization">
        <PropertyRef Name="IdOrganization" />
      </Principal>
      <Dependent Role="Department">
        <PropertyRef Name="IdOrganization" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Division_Conference">
    <End Role="Conference" Type="Self.Conference" Multiplicity="0..1" />
    <End Role="Division" Type="Self.Division" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Conference">
        <PropertyRef Name="IdConference" />
      </Principal>
      <Dependent Role="Division">
        <PropertyRef Name="IdConference" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Matchup_MatchupType">
    <End Role="MatchupType" Type="Self.MatchupType" Multiplicity="0..1" />
    <End Role="Matchup" Type="Self.Matchup" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="MatchupType">
        <PropertyRef Name="IdMatchupType" />
      </Principal>
      <Dependent Role="Matchup">
        <PropertyRef Name="IdMatchupType" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Matchup_Season">
    <End Role="Season" Type="Self.Season" Multiplicity="0..1" />
    <End Role="Matchup" Type="Self.Matchup" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Season">
        <PropertyRef Name="IdSeason" />
      </Principal>
      <Dependent Role="Matchup">
        <PropertyRef Name="IdSeason" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Matchup_Status">
    <End Role="Status" Type="Self.Status" Multiplicity="0..1" />
    <End Role="Matchup" Type="Self.Matchup" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Status">
        <PropertyRef Name="IdStatus" />
      </Principal>
      <Dependent Role="Matchup">
        <PropertyRef Name="IdStatus" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Matchup_Team">
    <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
    <End Role="Matchup" Type="Self.Matchup" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Team">
        <PropertyRef Name="IdTeam" />
      </Principal>
      <Dependent Role="Matchup">
        <PropertyRef Name="IdTeamAway" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Matchup_Team1">
    <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
    <End Role="Matchup" Type="Self.Matchup" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Team">
        <PropertyRef Name="IdTeam" />
      </Principal>
      <Dependent Role="Matchup">
        <PropertyRef Name="IdTeamHome" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_MatchupDetail_Matchup">
    <End Role="Matchup" Type="Self.Matchup" Multiplicity="0..1" />
    <End Role="MatchupDetail" Type="Self.MatchupDetail" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Matchup">
        <PropertyRef Name="IdMatchup" />
      </Principal>
      <Dependent Role="MatchupDetail">
        <PropertyRef Name="IdMatchup" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_MatchupDetail_Quarter">
    <End Role="Quarter" Type="Self.Quarter" Multiplicity="0..1" />
    <End Role="MatchupDetail" Type="Self.MatchupDetail" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Quarter">
        <PropertyRef Name="IdQuarter" />
      </Principal>
      <Dependent Role="MatchupDetail">
        <PropertyRef Name="IdQuarter" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_MatchupLogs_ActionType">
    <End Role="ActionType" Type="Self.ActionType" Multiplicity="0..1" />
    <End Role="MatchupLogs" Type="Self.MatchupLogs" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="ActionType">
        <PropertyRef Name="IdActionType" />
      </Principal>
      <Dependent Role="MatchupLogs">
        <PropertyRef Name="IdActionType" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_MatchupLogs_Matchup">
    <End Role="Matchup" Type="Self.Matchup" Multiplicity="0..1" />
    <End Role="MatchupLogs" Type="Self.MatchupLogs" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Matchup">
        <PropertyRef Name="IdMatchup" />
      </Principal>
      <Dependent Role="MatchupLogs">
        <PropertyRef Name="IdMatchup" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_MatchupLogs_Player">
    <End Role="Player" Type="Self.Player" Multiplicity="0..1" />
    <End Role="MatchupLogs" Type="Self.MatchupLogs" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Player">
        <PropertyRef Name="IdPlayer" />
      </Principal>
      <Dependent Role="MatchupLogs">
        <PropertyRef Name="IdPlayer" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_MatchupLogs_Quarter">
    <End Role="Quarter" Type="Self.Quarter" Multiplicity="0..1" />
    <End Role="MatchupLogs" Type="Self.MatchupLogs" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Quarter">
        <PropertyRef Name="IdQuarter" />
      </Principal>
      <Dependent Role="MatchupLogs">
        <PropertyRef Name="IdQuarter" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_MatchupLogs_Team">
    <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
    <End Role="MatchupLogs" Type="Self.MatchupLogs" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Team">
        <PropertyRef Name="IdTeam" />
      </Principal>
      <Dependent Role="MatchupLogs">
        <PropertyRef Name="IdTeam" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Organization_StatusOrganization">
    <End Role="StatusOrganization" Type="Self.StatusOrganization" Multiplicity="0..1" />
    <End Role="Organization" Type="Self.Organization" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="StatusOrganization">
        <PropertyRef Name="IdStatusOrganization" />
      </Principal>
      <Dependent Role="Organization">
        <PropertyRef Name="IdStatusOrganization" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Player_Country">
    <End Role="Country" Type="Self.Country" Multiplicity="0..1" />
    <End Role="Player" Type="Self.Player" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Country">
        <PropertyRef Name="IdCountry" />
      </Principal>
      <Dependent Role="Player">
        <PropertyRef Name="IdCountry" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Player_Gender">
    <End Role="Gender" Type="Self.Gender" Multiplicity="0..1" />
    <End Role="Player" Type="Self.Player" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Gender">
        <PropertyRef Name="IdGender" />
      </Principal>
      <Dependent Role="Player">
        <PropertyRef Name="IdGender" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Player_Position">
    <End Role="Position" Type="Self.Position" Multiplicity="0..1" />
    <End Role="Player" Type="Self.Player" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Position">
        <PropertyRef Name="IdPosition" />
      </Principal>
      <Dependent Role="Player">
        <PropertyRef Name="IdPosition" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_PlayerInTeam_Player">
    <End Role="Player" Type="Self.Player" Multiplicity="0..1" />
    <End Role="PlayerInTeam" Type="Self.PlayerInTeam" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Player">
        <PropertyRef Name="IdPlayer" />
      </Principal>
      <Dependent Role="PlayerInTeam">
        <PropertyRef Name="IdPlayer" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_PlayerInTeam_Season">
    <End Role="Season" Type="Self.Season" Multiplicity="0..1" />
    <End Role="PlayerInTeam" Type="Self.PlayerInTeam" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Season">
        <PropertyRef Name="IdSeason" />
      </Principal>
      <Dependent Role="PlayerInTeam">
        <PropertyRef Name="IdSeason" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_PlayerInTeam_Team">
    <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
    <End Role="PlayerInTeam" Type="Self.PlayerInTeam" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Team">
        <PropertyRef Name="IdTeam" />
      </Principal>
      <Dependent Role="PlayerInTeam">
        <PropertyRef Name="IdTeam" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_PlayerStatistic_Player">
    <End Role="Player" Type="Self.Player" Multiplicity="0..1" />
    <End Role="PlayerStatistic" Type="Self.PlayerStatistic" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Player">
        <PropertyRef Name="IdPlayer" />
      </Principal>
      <Dependent Role="PlayerStatistic">
        <PropertyRef Name="IdPlayer" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_PlayerStatistic_Team">
    <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
    <End Role="PlayerStatistic" Type="Self.PlayerStatistic" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Team">
        <PropertyRef Name="IdTeam" />
      </Principal>
      <Dependent Role="PlayerStatistic">
        <PropertyRef Name="IdTeam" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_PostSeason_Season">
    <End Role="Season" Type="Self.Season" Multiplicity="0..1" />
    <End Role="PostSeason" Type="Self.PostSeason" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Season">
        <PropertyRef Name="IdSeason" />
      </Principal>
      <Dependent Role="PostSeason">
        <PropertyRef Name="IdSeason" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_PostSeason_Team">
    <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
    <End Role="PostSeason" Type="Self.PostSeason" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Team">
        <PropertyRef Name="IdTeam" />
      </Principal>
      <Dependent Role="PostSeason">
        <PropertyRef Name="IdTeam" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Team_Division">
    <End Role="Division" Type="Self.Division" Multiplicity="0..1" />
    <End Role="Team" Type="Self.Team" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Division">
        <PropertyRef Name="IdDivision" />
      </Principal>
      <Dependent Role="Team">
        <PropertyRef Name="IdDivision" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_User_Gender">
    <End Role="Gender" Type="Self.Gender" Multiplicity="0..1" />
    <End Role="User" Type="Self.User" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Gender">
        <PropertyRef Name="IdGender" />
      </Principal>
      <Dependent Role="User">
        <PropertyRef Name="IdGender" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_User_Role">
    <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
    <End Role="User" Type="Self.User" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Role">
        <PropertyRef Name="IdRole" />
      </Principal>
      <Dependent Role="User">
        <PropertyRef Name="IdRole" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <EntityContainer Name="Хранилище PracticeNBAModelContainer">
    <EntitySet Name="ActionType" EntityType="Self.ActionType" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Conference" EntityType="Self.Conference" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Department" EntityType="Self.Department" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Division" EntityType="Self.Division" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Gender" EntityType="Self.Gender" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Image" EntityType="Self.Image" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Matchup" EntityType="Self.Matchup" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="MatchupDetail" EntityType="Self.MatchupDetail" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="MatchupLogs" EntityType="Self.MatchupLogs" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="MatchupType" EntityType="Self.MatchupType" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Organization" EntityType="Self.Organization" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Player" EntityType="Self.Player" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="PlayerInTeam" EntityType="Self.PlayerInTeam" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="PlayerStatistic" EntityType="Self.PlayerStatistic" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Position" EntityType="Self.Position" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="PostSeason" EntityType="Self.PostSeason" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Quarter" EntityType="Self.Quarter" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Season" EntityType="Self.Season" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Status" EntityType="Self.Status" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="StatusOrganization" EntityType="Self.StatusOrganization" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="Team" EntityType="Self.Team" Schema="dbo" store:Type="Tables" />
    <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
    <AssociationSet Name="FK_Department_Organization" Association="Self.FK_Department_Organization">
      <End Role="Organization" EntitySet="Organization" />
      <End Role="Department" EntitySet="Department" />
    </AssociationSet>
    <AssociationSet Name="FK_Division_Conference" Association="Self.FK_Division_Conference">
      <End Role="Conference" EntitySet="Conference" />
      <End Role="Division" EntitySet="Division" />
    </AssociationSet>
    <AssociationSet Name="FK_Matchup_MatchupType" Association="Self.FK_Matchup_MatchupType">
      <End Role="MatchupType" EntitySet="MatchupType" />
      <End Role="Matchup" EntitySet="Matchup" />
    </AssociationSet>
    <AssociationSet Name="FK_Matchup_Season" Association="Self.FK_Matchup_Season">
      <End Role="Season" EntitySet="Season" />
      <End Role="Matchup" EntitySet="Matchup" />
    </AssociationSet>
    <AssociationSet Name="FK_Matchup_Status" Association="Self.FK_Matchup_Status">
      <End Role="Status" EntitySet="Status" />
      <End Role="Matchup" EntitySet="Matchup" />
    </AssociationSet>
    <AssociationSet Name="FK_Matchup_Team" Association="Self.FK_Matchup_Team">
      <End Role="Team" EntitySet="Team" />
      <End Role="Matchup" EntitySet="Matchup" />
    </AssociationSet>
    <AssociationSet Name="FK_Matchup_Team1" Association="Self.FK_Matchup_Team1">
      <End Role="Team" EntitySet="Team" />
      <End Role="Matchup" EntitySet="Matchup" />
    </AssociationSet>
    <AssociationSet Name="FK_MatchupDetail_Matchup" Association="Self.FK_MatchupDetail_Matchup">
      <End Role="Matchup" EntitySet="Matchup" />
      <End Role="MatchupDetail" EntitySet="MatchupDetail" />
    </AssociationSet>
    <AssociationSet Name="FK_MatchupDetail_Quarter" Association="Self.FK_MatchupDetail_Quarter">
      <End Role="Quarter" EntitySet="Quarter" />
      <End Role="MatchupDetail" EntitySet="MatchupDetail" />
    </AssociationSet>
    <AssociationSet Name="FK_MatchupLogs_ActionType" Association="Self.FK_MatchupLogs_ActionType">
      <End Role="ActionType" EntitySet="ActionType" />
      <End Role="MatchupLogs" EntitySet="MatchupLogs" />
    </AssociationSet>
    <AssociationSet Name="FK_MatchupLogs_Matchup" Association="Self.FK_MatchupLogs_Matchup">
      <End Role="Matchup" EntitySet="Matchup" />
      <End Role="MatchupLogs" EntitySet="MatchupLogs" />
    </AssociationSet>
    <AssociationSet Name="FK_MatchupLogs_Player" Association="Self.FK_MatchupLogs_Player">
      <End Role="Player" EntitySet="Player" />
      <End Role="MatchupLogs" EntitySet="MatchupLogs" />
    </AssociationSet>
    <AssociationSet Name="FK_MatchupLogs_Quarter" Association="Self.FK_MatchupLogs_Quarter">
      <End Role="Quarter" EntitySet="Quarter" />
      <End Role="MatchupLogs" EntitySet="MatchupLogs" />
    </AssociationSet>
    <AssociationSet Name="FK_MatchupLogs_Team" Association="Self.FK_MatchupLogs_Team">
      <End Role="Team" EntitySet="Team" />
      <End Role="MatchupLogs" EntitySet="MatchupLogs" />
    </AssociationSet>
    <AssociationSet Name="FK_Organization_StatusOrganization" Association="Self.FK_Organization_StatusOrganization">
      <End Role="StatusOrganization" EntitySet="StatusOrganization" />
      <End Role="Organization" EntitySet="Organization" />
    </AssociationSet>
    <AssociationSet Name="FK_Player_Country" Association="Self.FK_Player_Country">
      <End Role="Country" EntitySet="Country" />
      <End Role="Player" EntitySet="Player" />
    </AssociationSet>
    <AssociationSet Name="FK_Player_Gender" Association="Self.FK_Player_Gender">
      <End Role="Gender" EntitySet="Gender" />
      <End Role="Player" EntitySet="Player" />
    </AssociationSet>
    <AssociationSet Name="FK_Player_Position" Association="Self.FK_Player_Position">
      <End Role="Position" EntitySet="Position" />
      <End Role="Player" EntitySet="Player" />
    </AssociationSet>
    <AssociationSet Name="FK_PlayerInTeam_Player" Association="Self.FK_PlayerInTeam_Player">
      <End Role="Player" EntitySet="Player" />
      <End Role="PlayerInTeam" EntitySet="PlayerInTeam" />
    </AssociationSet>
    <AssociationSet Name="FK_PlayerInTeam_Season" Association="Self.FK_PlayerInTeam_Season">
      <End Role="Season" EntitySet="Season" />
      <End Role="PlayerInTeam" EntitySet="PlayerInTeam" />
    </AssociationSet>
    <AssociationSet Name="FK_PlayerInTeam_Team" Association="Self.FK_PlayerInTeam_Team">
      <End Role="Team" EntitySet="Team" />
      <End Role="PlayerInTeam" EntitySet="PlayerInTeam" />
    </AssociationSet>
    <AssociationSet Name="FK_PlayerStatistic_Player" Association="Self.FK_PlayerStatistic_Player">
      <End Role="Player" EntitySet="Player" />
      <End Role="PlayerStatistic" EntitySet="PlayerStatistic" />
    </AssociationSet>
    <AssociationSet Name="FK_PlayerStatistic_Team" Association="Self.FK_PlayerStatistic_Team">
      <End Role="Team" EntitySet="Team" />
      <End Role="PlayerStatistic" EntitySet="PlayerStatistic" />
    </AssociationSet>
    <AssociationSet Name="FK_PostSeason_Season" Association="Self.FK_PostSeason_Season">
      <End Role="Season" EntitySet="Season" />
      <End Role="PostSeason" EntitySet="PostSeason" />
    </AssociationSet>
    <AssociationSet Name="FK_PostSeason_Team" Association="Self.FK_PostSeason_Team">
      <End Role="Team" EntitySet="Team" />
      <End Role="PostSeason" EntitySet="PostSeason" />
    </AssociationSet>
    <AssociationSet Name="FK_Team_Division" Association="Self.FK_Team_Division">
      <End Role="Division" EntitySet="Division" />
      <End Role="Team" EntitySet="Team" />
    </AssociationSet>
    <AssociationSet Name="FK_User_Gender" Association="Self.FK_User_Gender">
      <End Role="Gender" EntitySet="Gender" />
      <End Role="User" EntitySet="User" />
    </AssociationSet>
    <AssociationSet Name="FK_User_Role" Association="Self.FK_User_Role">
      <End Role="Role" EntitySet="Role" />
      <End Role="User" EntitySet="User" />
    </AssociationSet>
  </EntityContainer>
</Schema>