123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="gr691_aasModel" 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="Dish">
- <Key>
- <PropertyRef Name="Dish_id" />
- </Key>
- <Property Name="Dish_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name_Dish" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="TranslationNameDish" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Cost" Type="Decimal" Precision="18" Scale="0" Nullable="false" />
- <Property Name="Time" Type="String" MaxLength="50" FixedLength="true" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Order" Relationship="Self.FK_Order_Dish" FromRole="Dish" ToRole="Order" />
- </EntityType>
- <EntityType Name="Order">
- <Key>
- <PropertyRef Name="Order_Id" />
- </Key>
- <Property Name="Order_Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Staff_Id" Type="Int32" Nullable="false" />
- <Property Name="Dish_Id" Type="Int32" Nullable="false" />
- <Property Name="StatusDish_id" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Dish" Relationship="Self.FK_Order_Dish" FromRole="Order" ToRole="Dish" />
- <NavigationProperty Name="Staff" Relationship="Self.FK_Order_Staff" FromRole="Order" ToRole="Staff" />
- <NavigationProperty Name="StatusDish" Relationship="Self.FK_Order_StatusDish" FromRole="Order" ToRole="StatusDish" />
- </EntityType>
- <EntityType Name="Post">
- <Key>
- <PropertyRef Name="Post_Id" />
- </Key>
- <Property Name="Post_Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="NamePost" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Staff" Relationship="Self.FK_Staff_Post" FromRole="Post" ToRole="Staff" />
- </EntityType>
- <EntityType Name="Staff">
- <Key>
- <PropertyRef Name="Staff_id" />
- </Key>
- <Property Name="Staff_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Login" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="LastName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="FirstName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="MiddleName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Status_id" Type="Int32" Nullable="false" />
- <Property Name="Post_id" Type="Int32" Nullable="false" />
- <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Order" Relationship="Self.FK_Order_Staff" FromRole="Staff" ToRole="Order" />
- <NavigationProperty Name="Post" Relationship="Self.FK_Staff_Post" FromRole="Staff" ToRole="Post" />
- <NavigationProperty Name="Status" Relationship="Self.FK_Staff_Status" FromRole="Staff" ToRole="Status" />
- </EntityType>
- <EntityType Name="Status">
- <Key>
- <PropertyRef Name="Status_Id" />
- </Key>
- <Property Name="Status_Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="NameStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Staff" Relationship="Self.FK_Staff_Status" FromRole="Status" ToRole="Staff" />
- </EntityType>
- <EntityType Name="StatusDish">
- <Key>
- <PropertyRef Name="StatusDish_id" />
- </Key>
- <Property Name="StatusDish_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="NameStatusDish" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Order" Relationship="Self.FK_Order_StatusDish" FromRole="StatusDish" ToRole="Order" />
- </EntityType>
- <Association Name="FK_Order_Dish">
- <End Role="Dish" Type="Self.Dish" Multiplicity="1" />
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Dish">
- <PropertyRef Name="Dish_id" />
- </Principal>
- <Dependent Role="Order">
- <PropertyRef Name="Dish_Id" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Order_Staff">
- <End Role="Staff" Type="Self.Staff" Multiplicity="1" />
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Staff">
- <PropertyRef Name="Staff_id" />
- </Principal>
- <Dependent Role="Order">
- <PropertyRef Name="Staff_Id" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Order_StatusDish">
- <End Role="StatusDish" Type="Self.StatusDish" Multiplicity="1" />
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="StatusDish">
- <PropertyRef Name="StatusDish_id" />
- </Principal>
- <Dependent Role="Order">
- <PropertyRef Name="StatusDish_id" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Staff_Post">
- <End Role="Post" Type="Self.Post" Multiplicity="1" />
- <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Post">
- <PropertyRef Name="Post_Id" />
- </Principal>
- <Dependent Role="Staff">
- <PropertyRef Name="Post_id" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Staff_Status">
- <End Role="Status" Type="Self.Status" Multiplicity="1" />
- <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Status">
- <PropertyRef Name="Status_Id" />
- </Principal>
- <Dependent Role="Staff">
- <PropertyRef Name="Status_id" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="gr691_aasEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Dish" EntityType="Self.Dish" />
- <EntitySet Name="Order" EntityType="Self.Order" />
- <EntitySet Name="Post" EntityType="Self.Post" />
- <EntitySet Name="Staff" EntityType="Self.Staff" />
- <EntitySet Name="Status" EntityType="Self.Status" />
- <EntitySet Name="StatusDish" EntityType="Self.StatusDish" />
- <AssociationSet Name="FK_Order_Dish" Association="Self.FK_Order_Dish">
- <End Role="Dish" EntitySet="Dish" />
- <End Role="Order" EntitySet="Order" />
- </AssociationSet>
- <AssociationSet Name="FK_Order_Staff" Association="Self.FK_Order_Staff">
- <End Role="Staff" EntitySet="Staff" />
- <End Role="Order" EntitySet="Order" />
- </AssociationSet>
- <AssociationSet Name="FK_Order_StatusDish" Association="Self.FK_Order_StatusDish">
- <End Role="StatusDish" EntitySet="StatusDish" />
- <End Role="Order" EntitySet="Order" />
- </AssociationSet>
- <AssociationSet Name="FK_Staff_Post" Association="Self.FK_Staff_Post">
- <End Role="Post" EntitySet="Post" />
- <End Role="Staff" EntitySet="Staff" />
- </AssociationSet>
- <AssociationSet Name="FK_Staff_Status" Association="Self.FK_Staff_Status">
- <End Role="Status" EntitySet="Status" />
- <End Role="Staff" EntitySet="Staff" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|