209 lines
11 KiB
XML
209 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Schema Namespace="FiveBarSQLModel" 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="Assort_tovar">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Price" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Yslov_postav" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Yslov_pay" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Sklad" Type="Int32" />
|
|
<Property Name="Nalicie" Type="Int32" />
|
|
<NavigationProperty Name="Price_list" Relationship="Self.FK_Assort_tovar_Price_list" FromRole="Assort_tovar" ToRole="Price_list" />
|
|
<NavigationProperty Name="Spravka" Relationship="Self.FK_Assort_tovar_Spravka" FromRole="Assort_tovar" ToRole="Spravka" />
|
|
</EntityType>
|
|
<EntityType Name="Postovshiki">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Posht_index" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Phone" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Faks" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="E_mail" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Banks_recvethits" Type="Int32" />
|
|
<Property Name="Assort_tovar" Type="Int32" />
|
|
<NavigationProperty Name="Rekvezits" Relationship="Self.FK_Postovshiki_Rekvezits" FromRole="Postovshiki" ToRole="Rekvezits" />
|
|
</EntityType>
|
|
<EntityType Name="Price_list">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="Name_Tovar" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Price" Type="Decimal" Precision="18" Scale="0" />
|
|
<NavigationProperty Name="Assort_tovar" Relationship="Self.FK_Assort_tovar_Price_list" FromRole="Price_list" ToRole="Assort_tovar" />
|
|
</EntityType>
|
|
<EntityType Name="Recept">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Ed_mer" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<NavigationProperty Name="Zakuski" Relationship="Self.FK_Zakuski_Recept" FromRole="Recept" ToRole="Zakuski" />
|
|
</EntityType>
|
|
<EntityType Name="Rekvezits">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="Name_Bank" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Gorod" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Inn" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Pay_Shet" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<NavigationProperty Name="Postovshiki" Relationship="Self.FK_Postovshiki_Rekvezits" FromRole="Rekvezits" ToRole="Postovshiki" />
|
|
</EntityType>
|
|
<EntityType Name="Sotrudnik">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="FIO" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Adres" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Data_birday" Type="DateTime" Precision="0" />
|
|
<Property Name="Status" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="Pay_chek" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Chek_Status" Type="Int32" />
|
|
<NavigationProperty Name="Svedinia" Relationship="Self.FK_Sotrudnik_Svedinia" FromRole="Sotrudnik" ToRole="Svedinia" />
|
|
</EntityType>
|
|
<EntityType Name="Spravka">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="Name_tovar" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="sklad" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Kol_vo" Type="Decimal" Precision="18" Scale="0" />
|
|
<NavigationProperty Name="Assort_tovar" Relationship="Self.FK_Assort_tovar_Spravka" FromRole="Spravka" ToRole="Assort_tovar" />
|
|
</EntityType>
|
|
<EntityType Name="Svedinia">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="Status" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Prichina" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Number" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Data_prikaz" Type="DateTime" Precision="0" />
|
|
<NavigationProperty Name="Sotrudnik" Relationship="Self.FK_Sotrudnik_Svedinia" FromRole="Svedinia" ToRole="Sotrudnik" />
|
|
</EntityType>
|
|
<EntityType Name="sysdiagrams">
|
|
<Key>
|
|
<PropertyRef Name="diagram_id" />
|
|
</Key>
|
|
<Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="principal_id" Type="Int32" Nullable="false" />
|
|
<Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="version" Type="Int32" />
|
|
<Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
|
|
</EntityType>
|
|
<EntityType Name="Zakuski">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" />
|
|
<Property Name="Name_Cocteil" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
<Property Name="Crep" Type="Decimal" Precision="18" Scale="0" />
|
|
<Property Name="Razmer_Part" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="Recept" Type="Int32" />
|
|
<NavigationProperty Name="Recept1" Relationship="Self.FK_Zakuski_Recept" FromRole="Zakuski" ToRole="Recept" />
|
|
</EntityType>
|
|
<Association Name="FK_Assort_tovar_Price_list">
|
|
<End Role="Price_list" Type="Self.Price_list" Multiplicity="0..1" />
|
|
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Price_list">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Assort_tovar">
|
|
<PropertyRef Name="Sklad" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Assort_tovar_Spravka">
|
|
<End Role="Spravka" Type="Self.Spravka" Multiplicity="0..1" />
|
|
<End Role="Assort_tovar" Type="Self.Assort_tovar" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Spravka">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Assort_tovar">
|
|
<PropertyRef Name="Nalicie" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Postovshiki_Rekvezits">
|
|
<End Role="Rekvezits" Type="Self.Rekvezits" Multiplicity="0..1" />
|
|
<End Role="Postovshiki" Type="Self.Postovshiki" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Rekvezits">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Postovshiki">
|
|
<PropertyRef Name="Banks_recvethits" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Zakuski_Recept">
|
|
<End Role="Recept" Type="Self.Recept" Multiplicity="0..1" />
|
|
<End Role="Zakuski" Type="Self.Zakuski" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Recept">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Zakuski">
|
|
<PropertyRef Name="Recept" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Sotrudnik_Svedinia">
|
|
<End Role="Svedinia" Type="Self.Svedinia" Multiplicity="0..1" />
|
|
<End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Svedinia">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Sotrudnik">
|
|
<PropertyRef Name="Chek_Status" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<EntityContainer Name="FiveBarSQLEntities" annotation:LazyLoadingEnabled="true">
|
|
<EntitySet Name="Assort_tovar" EntityType="Self.Assort_tovar" />
|
|
<EntitySet Name="Postovshiki" EntityType="Self.Postovshiki" />
|
|
<EntitySet Name="Price_list" EntityType="Self.Price_list" />
|
|
<EntitySet Name="Recept" EntityType="Self.Recept" />
|
|
<EntitySet Name="Rekvezits" EntityType="Self.Rekvezits" />
|
|
<EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" />
|
|
<EntitySet Name="Spravka" EntityType="Self.Spravka" />
|
|
<EntitySet Name="Svedinia" EntityType="Self.Svedinia" />
|
|
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
|
|
<EntitySet Name="Zakuski" EntityType="Self.Zakuski" />
|
|
<AssociationSet Name="FK_Assort_tovar_Price_list" Association="Self.FK_Assort_tovar_Price_list">
|
|
<End Role="Price_list" EntitySet="Price_list" />
|
|
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Assort_tovar_Spravka" Association="Self.FK_Assort_tovar_Spravka">
|
|
<End Role="Spravka" EntitySet="Spravka" />
|
|
<End Role="Assort_tovar" EntitySet="Assort_tovar" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Postovshiki_Rekvezits" Association="Self.FK_Postovshiki_Rekvezits">
|
|
<End Role="Rekvezits" EntitySet="Rekvezits" />
|
|
<End Role="Postovshiki" EntitySet="Postovshiki" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Zakuski_Recept" Association="Self.FK_Zakuski_Recept">
|
|
<End Role="Recept" EntitySet="Recept" />
|
|
<End Role="Zakuski" EntitySet="Zakuski" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Sotrudnik_Svedinia" Association="Self.FK_Sotrudnik_Svedinia">
|
|
<End Role="Svedinia" EntitySet="Svedinia" />
|
|
<End Role="Sotrudnik" EntitySet="Sotrudnik" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
</Schema> |