|
@@ -0,0 +1,609 @@
|
|
|
|
+<?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="Хранилище kafe2Model" 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="CookStatus">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Dish">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="CookTime" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="Cost" Type="float" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="DishOrder">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
|
+ <PropertyRef Name="DishID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="OrderID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="DishID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="Count" Type="int" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Emploee">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Surname" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="Middlename" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="StatusID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="PositionID" Type="int" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Order">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="CookSatusID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="PayStatusID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="EmploeeID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="TableNumber" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="ClientCount" Type="int" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="PayStatus">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Position">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Shift">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="EmploeeID" />
|
|
|
|
+ <PropertyRef Name="Date" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="EmploeeID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="Date" Type="date" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="WorkStatus">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <Association Name="FK_DishOrder_Dish">
|
|
|
|
+ <End Role="Dish" Type="Self.Dish" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="DishOrder" Type="Self.DishOrder" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Dish">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="DishOrder">
|
|
|
|
+ <PropertyRef Name="DishID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_DishOrder_Order">
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="DishOrder" Type="Self.DishOrder" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Order">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="DishOrder">
|
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Emploee_Position">
|
|
|
|
+ <End Role="Position" Type="Self.Position" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Emploee" Type="Self.Emploee" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Position">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Emploee">
|
|
|
|
+ <PropertyRef Name="PositionID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Emploee_WorkStatus">
|
|
|
|
+ <End Role="WorkStatus" Type="Self.WorkStatus" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Emploee" Type="Self.Emploee" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="WorkStatus">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Emploee">
|
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_CookStatus">
|
|
|
|
+ <End Role="CookStatus" Type="Self.CookStatus" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="CookStatus">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="CookSatusID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_Emploee">
|
|
|
|
+ <End Role="Emploee" Type="Self.Emploee" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Emploee">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="EmploeeID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_PayStatus">
|
|
|
|
+ <End Role="PayStatus" Type="Self.PayStatus" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="PayStatus">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="PayStatusID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Shift_Emploee">
|
|
|
|
+ <End Role="Emploee" Type="Self.Emploee" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Shift" Type="Self.Shift" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Emploee">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Shift">
|
|
|
|
+ <PropertyRef Name="EmploeeID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <EntityContainer Name="Хранилище kafe2ModelContainer">
|
|
|
|
+ <EntitySet Name="CookStatus" EntityType="Self.CookStatus" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="Dish" EntityType="Self.Dish" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="DishOrder" EntityType="Self.DishOrder" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="Emploee" EntityType="Self.Emploee" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="PayStatus" EntityType="Self.PayStatus" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="Position" EntityType="Self.Position" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="Shift" EntityType="Self.Shift" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="WorkStatus" EntityType="Self.WorkStatus" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <AssociationSet Name="FK_DishOrder_Dish" Association="Self.FK_DishOrder_Dish">
|
|
|
|
+ <End Role="Dish" EntitySet="Dish" />
|
|
|
|
+ <End Role="DishOrder" EntitySet="DishOrder" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_DishOrder_Order" Association="Self.FK_DishOrder_Order">
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ <End Role="DishOrder" EntitySet="DishOrder" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Emploee_Position" Association="Self.FK_Emploee_Position">
|
|
|
|
+ <End Role="Position" EntitySet="Position" />
|
|
|
|
+ <End Role="Emploee" EntitySet="Emploee" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Emploee_WorkStatus" Association="Self.FK_Emploee_WorkStatus">
|
|
|
|
+ <End Role="WorkStatus" EntitySet="WorkStatus" />
|
|
|
|
+ <End Role="Emploee" EntitySet="Emploee" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_CookStatus" Association="Self.FK_Order_CookStatus">
|
|
|
|
+ <End Role="CookStatus" EntitySet="CookStatus" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Emploee" Association="Self.FK_Order_Emploee">
|
|
|
|
+ <End Role="Emploee" EntitySet="Emploee" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_PayStatus" Association="Self.FK_Order_PayStatus">
|
|
|
|
+ <End Role="PayStatus" EntitySet="PayStatus" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Shift_Emploee" Association="Self.FK_Shift_Emploee">
|
|
|
|
+ <End Role="Emploee" EntitySet="Emploee" />
|
|
|
|
+ <End Role="Shift" EntitySet="Shift" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ </EntityContainer>
|
|
|
|
+ </Schema>
|
|
|
|
+ </edmx:StorageModels>
|
|
|
|
+ <!-- CSDL content -->
|
|
|
|
+ <edmx:ConceptualModels>
|
|
|
|
+ <Schema Namespace="kafe2Model" 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="CookStatus">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Order_CookStatus" FromRole="CookStatus" ToRole="Order" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Dish">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="CookTime" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="Cost" Type="Double" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="DishOrder" Relationship="Self.FK_DishOrder_Dish" FromRole="Dish" ToRole="DishOrder" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="DishOrder">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
|
+ <PropertyRef Name="DishID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="OrderID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="DishID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="Count" Type="Int32" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Dish" Relationship="Self.FK_DishOrder_Dish" FromRole="DishOrder" ToRole="Dish" />
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_DishOrder_Order" FromRole="DishOrder" ToRole="Order" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Emploee">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Surname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="Middlename" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="StatusID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="PositionID" Type="Int32" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Position" Relationship="Self.FK_Emploee_Position" FromRole="Emploee" ToRole="Position" />
|
|
|
|
+ <NavigationProperty Name="WorkStatus" Relationship="Self.FK_Emploee_WorkStatus" FromRole="Emploee" ToRole="WorkStatus" />
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Order_Emploee" FromRole="Emploee" ToRole="Order" />
|
|
|
|
+ <NavigationProperty Name="Shift" Relationship="Self.FK_Shift_Emploee" FromRole="Emploee" ToRole="Shift" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Order">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="CookSatusID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="PayStatusID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="EmploeeID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="TableNumber" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="ClientCount" Type="Int32" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="CookStatus" Relationship="Self.FK_Order_CookStatus" FromRole="Order" ToRole="CookStatus" />
|
|
|
|
+ <NavigationProperty Name="DishOrder" Relationship="Self.FK_DishOrder_Order" FromRole="Order" ToRole="DishOrder" />
|
|
|
|
+ <NavigationProperty Name="Emploee" Relationship="Self.FK_Order_Emploee" FromRole="Order" ToRole="Emploee" />
|
|
|
|
+ <NavigationProperty Name="PayStatus" Relationship="Self.FK_Order_PayStatus" FromRole="Order" ToRole="PayStatus" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="PayStatus">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Order_PayStatus" FromRole="PayStatus" ToRole="Order" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Position">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Emploee" Relationship="Self.FK_Emploee_Position" FromRole="Position" ToRole="Emploee" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Shift">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="EmploeeID" />
|
|
|
|
+ <PropertyRef Name="Date" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="EmploeeID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="Date" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
|
+ <NavigationProperty Name="Emploee" Relationship="Self.FK_Shift_Emploee" FromRole="Shift" ToRole="Emploee" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="WorkStatus">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Emploee" Relationship="Self.FK_Emploee_WorkStatus" FromRole="WorkStatus" ToRole="Emploee" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <Association Name="FK_Order_CookStatus">
|
|
|
|
+ <End Role="CookStatus" Type="Self.CookStatus" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="CookStatus">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="CookSatusID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_DishOrder_Dish">
|
|
|
|
+ <End Role="Dish" Type="Self.Dish" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="DishOrder" Type="Self.DishOrder" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Dish">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="DishOrder">
|
|
|
|
+ <PropertyRef Name="DishID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_DishOrder_Order">
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="DishOrder" Type="Self.DishOrder" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Order">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="DishOrder">
|
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Emploee_Position">
|
|
|
|
+ <End Role="Position" Type="Self.Position" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Emploee" Type="Self.Emploee" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Position">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Emploee">
|
|
|
|
+ <PropertyRef Name="PositionID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Emploee_WorkStatus">
|
|
|
|
+ <End Role="WorkStatus" Type="Self.WorkStatus" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Emploee" Type="Self.Emploee" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="WorkStatus">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Emploee">
|
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_Emploee">
|
|
|
|
+ <End Role="Emploee" Type="Self.Emploee" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Emploee">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="EmploeeID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Shift_Emploee">
|
|
|
|
+ <End Role="Emploee" Type="Self.Emploee" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Shift" Type="Self.Shift" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Emploee">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Shift">
|
|
|
|
+ <PropertyRef Name="EmploeeID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_PayStatus">
|
|
|
|
+ <End Role="PayStatus" Type="Self.PayStatus" Multiplicity="1">
|
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
|
+ </End>
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="PayStatus">
|
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="PayStatusID" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <EntityContainer Name="kafe2Entities" annotation:LazyLoadingEnabled="true">
|
|
|
|
+ <EntitySet Name="CookStatus" EntityType="Self.CookStatus" />
|
|
|
|
+ <EntitySet Name="Dish" EntityType="Self.Dish" />
|
|
|
|
+ <EntitySet Name="DishOrder" EntityType="Self.DishOrder" />
|
|
|
|
+ <EntitySet Name="Emploee" EntityType="Self.Emploee" />
|
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" />
|
|
|
|
+ <EntitySet Name="PayStatus" EntityType="Self.PayStatus" />
|
|
|
|
+ <EntitySet Name="Position" EntityType="Self.Position" />
|
|
|
|
+ <EntitySet Name="Shift" EntityType="Self.Shift" />
|
|
|
|
+ <EntitySet Name="WorkStatus" EntityType="Self.WorkStatus" />
|
|
|
|
+ <AssociationSet Name="FK_Order_CookStatus" Association="Self.FK_Order_CookStatus">
|
|
|
|
+ <End Role="CookStatus" EntitySet="CookStatus" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_DishOrder_Dish" Association="Self.FK_DishOrder_Dish">
|
|
|
|
+ <End Role="Dish" EntitySet="Dish" />
|
|
|
|
+ <End Role="DishOrder" EntitySet="DishOrder" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_DishOrder_Order" Association="Self.FK_DishOrder_Order">
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ <End Role="DishOrder" EntitySet="DishOrder" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Emploee_Position" Association="Self.FK_Emploee_Position">
|
|
|
|
+ <End Role="Position" EntitySet="Position" />
|
|
|
|
+ <End Role="Emploee" EntitySet="Emploee" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Emploee_WorkStatus" Association="Self.FK_Emploee_WorkStatus">
|
|
|
|
+ <End Role="WorkStatus" EntitySet="WorkStatus" />
|
|
|
|
+ <End Role="Emploee" EntitySet="Emploee" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Emploee" Association="Self.FK_Order_Emploee">
|
|
|
|
+ <End Role="Emploee" EntitySet="Emploee" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Shift_Emploee" Association="Self.FK_Shift_Emploee">
|
|
|
|
+ <End Role="Emploee" EntitySet="Emploee" />
|
|
|
|
+ <End Role="Shift" EntitySet="Shift" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_PayStatus" Association="Self.FK_Order_PayStatus">
|
|
|
|
+ <End Role="PayStatus" EntitySet="PayStatus" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </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="Хранилище kafe2ModelContainer" CdmEntityContainer="kafe2Entities">
|
|
|
|
+ <EntitySetMapping Name="CookStatus">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.CookStatus">
|
|
|
|
+ <MappingFragment StoreEntitySet="CookStatus">
|
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="Dish">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.Dish">
|
|
|
|
+ <MappingFragment StoreEntitySet="Dish">
|
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
|
+ <ScalarProperty Name="CookTime" ColumnName="CookTime" />
|
|
|
|
+ <ScalarProperty Name="Cost" ColumnName="Cost" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="DishOrder">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.DishOrder">
|
|
|
|
+ <MappingFragment StoreEntitySet="DishOrder">
|
|
|
|
+ <ScalarProperty Name="OrderID" ColumnName="OrderID" />
|
|
|
|
+ <ScalarProperty Name="DishID" ColumnName="DishID" />
|
|
|
|
+ <ScalarProperty Name="Count" ColumnName="Count" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="Emploee">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.Emploee">
|
|
|
|
+ <MappingFragment StoreEntitySet="Emploee">
|
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
|
+ <ScalarProperty Name="Surname" ColumnName="Surname" />
|
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
|
+ <ScalarProperty Name="Middlename" ColumnName="Middlename" />
|
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
|
+ <ScalarProperty Name="StatusID" ColumnName="StatusID" />
|
|
|
|
+ <ScalarProperty Name="PositionID" ColumnName="PositionID" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="Order">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.Order">
|
|
|
|
+ <MappingFragment StoreEntitySet="Order">
|
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
|
+ <ScalarProperty Name="CookSatusID" ColumnName="CookSatusID" />
|
|
|
|
+ <ScalarProperty Name="PayStatusID" ColumnName="PayStatusID" />
|
|
|
|
+ <ScalarProperty Name="EmploeeID" ColumnName="EmploeeID" />
|
|
|
|
+ <ScalarProperty Name="TableNumber" ColumnName="TableNumber" />
|
|
|
|
+ <ScalarProperty Name="ClientCount" ColumnName="ClientCount" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="PayStatus">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.PayStatus">
|
|
|
|
+ <MappingFragment StoreEntitySet="PayStatus">
|
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="Position">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.Position">
|
|
|
|
+ <MappingFragment StoreEntitySet="Position">
|
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="Shift">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.Shift">
|
|
|
|
+ <MappingFragment StoreEntitySet="Shift">
|
|
|
|
+ <ScalarProperty Name="EmploeeID" ColumnName="EmploeeID" />
|
|
|
|
+ <ScalarProperty Name="Date" ColumnName="Date" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="WorkStatus">
|
|
|
|
+ <EntityTypeMapping TypeName="kafe2Model.WorkStatus">
|
|
|
|
+ <MappingFragment StoreEntitySet="WorkStatus">
|
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
|
+ </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="false" />
|
|
|
|
+ <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>
|