2025-04-17 14:49:24 +03:00

199 lines
8.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="Хранилище FiveBarSQLModel" 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="Assort_tovar">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="Name" Type="nvarchar(max)" />
<Property Name="Price" Type="decimal" Precision="18" Scale="0" />
<Property Name="Yslov_postav" Type="nvarchar(max)" />
<Property Name="Yslov_pay" Type="nvarchar(max)" />
<Property Name="Sklad" Type="int" />
<Property Name="Nalicie" Type="int" />
</EntityType>
<EntityType Name="Postovshiki">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="Name" Type="nvarchar(max)" />
<Property Name="Posht_index" Type="decimal" Precision="18" Scale="0" />
<Property Name="Phone" Type="nvarchar(max)" />
<Property Name="Faks" Type="nvarchar" MaxLength="50" />
<Property Name="E_mail" Type="nvarchar(max)" />
<Property Name="Banks_recvethits" Type="int" />
<Property Name="Assort_tovar" Type="int" />
</EntityType>
<EntityType Name="Price_list">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="Name_Tovar" Type="nvarchar(max)" />
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
<Property Name="Price" Type="decimal" Precision="18" Scale="0" />
</EntityType>
<EntityType Name="Recept">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="Name" Type="nvarchar(max)" />
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
<Property Name="Ed_mer" Type="nvarchar" MaxLength="50" />
</EntityType>
<EntityType Name="Rekvezits">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="Name_Bank" Type="nvarchar(max)" />
<Property Name="Gorod" Type="nvarchar(max)" />
<Property Name="Inn" Type="decimal" Precision="18" Scale="0" />
<Property Name="Pay_Shet" Type="nvarchar(max)" />
</EntityType>
<EntityType Name="Sotrudnik">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="FIO" Type="nvarchar(max)" />
<Property Name="Adres" Type="nvarchar(max)" />
<Property Name="Data_birday" Type="date" />
<Property Name="Status" Type="nvarchar" MaxLength="50" />
<Property Name="Pay_chek" Type="decimal" Precision="18" Scale="0" />
<Property Name="Chek_Status" Type="int" />
</EntityType>
<EntityType Name="Spravka">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="Name_tovar" Type="nvarchar(max)" />
<Property Name="sklad" Type="decimal" Precision="18" Scale="0" />
<Property Name="Kol_vo" Type="decimal" Precision="18" Scale="0" />
</EntityType>
<EntityType Name="Svedinia">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="Status" Type="nvarchar(max)" />
<Property Name="Prichina" Type="nvarchar(max)" />
<Property Name="Number" Type="decimal" Precision="18" Scale="0" />
<Property Name="Data_prikaz" Type="date" />
</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="Zakuski">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" Nullable="false" />
<Property Name="Name_Cocteil" Type="nvarchar(max)" />
<Property Name="Crep" Type="decimal" Precision="18" Scale="0" />
<Property Name="Razmer_Part" Type="nvarchar" MaxLength="50" />
<Property Name="Recept" Type="int" />
</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_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>
<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>
<EntityContainer Name="Хранилище FiveBarSQLModelContainer">
<EntitySet Name="Assort_tovar" EntityType="Self.Assort_tovar" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Postovshiki" EntityType="Self.Postovshiki" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Price_list" EntityType="Self.Price_list" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Recept" EntityType="Self.Recept" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Rekvezits" EntityType="Self.Rekvezits" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Spravka" EntityType="Self.Spravka" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Svedinia" EntityType="Self.Svedinia" Schema="dbo" store:Type="Tables" />
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Zakuski" EntityType="Self.Zakuski" Schema="dbo" store:Type="Tables" />
<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_Sotrudnik_Svedinia" Association="Self.FK_Sotrudnik_Svedinia">
<End Role="Svedinia" EntitySet="Svedinia" />
<End Role="Sotrudnik" EntitySet="Sotrudnik" />
</AssociationSet>
<AssociationSet Name="FK_Zakuski_Recept" Association="Self.FK_Zakuski_Recept">
<End Role="Recept" EntitySet="Recept" />
<End Role="Zakuski" EntitySet="Zakuski" />
</AssociationSet>
</EntityContainer>
</Schema>