123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="Хранилище KarpovTuriModel" 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="Country">
- <Key>
- <PropertyRef Name="id_country" />
- </Key>
- <Property Name="id_country" Type="nchar" MaxLength="2" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Hotel">
- <Key>
- <PropertyRef Name="id_hotel" />
- </Key>
- <Property Name="id_hotel" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="CountOfStars" Type="int" Nullable="false" />
- <Property Name="id_country" Type="nchar" MaxLength="2" Nullable="false" />
- </EntityType>
- <EntityType Name="HotelComment">
- <Key>
- <PropertyRef Name="Id_com" />
- </Key>
- <Property Name="Id_com" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="id_hotel" Type="int" Nullable="false" />
- <Property Name="Text" Type="nvarchar(max)" Nullable="false" />
- <Property Name="Author" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="CreationDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="HotelImage">
- <Key>
- <PropertyRef Name="id_img" />
- </Key>
- <Property Name="id_img" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="id_hotel" Type="int" Nullable="false" />
- <Property Name="ImageSource" Type="varbinary(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="HotelOfTour">
- <Key>
- <PropertyRef Name="id_hotel" />
- <PropertyRef Name="id_tour" />
- </Key>
- <Property Name="id_hotel" Type="int" Nullable="false" />
- <Property Name="id_tour" Type="int" Nullable="false" />
- </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="Tour">
- <Key>
- <PropertyRef Name="id_tour" />
- </Key>
- <Property Name="id_tour" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="TicketNum" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="ImagePreview" Type="varbinary(max)" />
- <Property Name="Price" Type="money" Nullable="false" />
- <Property Name="IsActual" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="Type">
- <Key>
- <PropertyRef Name="id_type" />
- </Key>
- <Property Name="id_type" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- </EntityType>
- <EntityType Name="TypeOfTour">
- <Key>
- <PropertyRef Name="id_tour" />
- <PropertyRef Name="id_type" />
- </Key>
- <Property Name="id_tour" Type="int" Nullable="false" />
- <Property Name="id_type" Type="int" Nullable="false" />
- </EntityType>
- <!--Ошибки, обнаруженные при создании:
- предупреждение 6002: В таблице или представлении "KarpovTuri.dbo.Count_hotel" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
- <EntityType Name="Count_hotel">
- <Key>
- <PropertyRef Name="Название отеля" />
- <PropertyRef Name="Количество звёзд" />
- <PropertyRef Name="Страна" />
- </Key>
- <Property Name="Название отеля" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Количество звёзд" Type="int" Nullable="false" />
- <Property Name="Страна" Type="nvarchar" MaxLength="100" Nullable="false" />
- </EntityType>
- <!--Ошибки, обнаруженные при создании:
- предупреждение 6002: В таблице или представлении "KarpovTuri.dbo.Description" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
- <EntityType Name="Description">
- <Key>
- <PropertyRef Name="Название тура" />
- <PropertyRef Name="Цена" />
- <PropertyRef Name="Тип" />
- </Key>
- <Property Name="Название тура" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Превью" Type="varbinary(max)" />
- <Property Name="Цена" Type="money" Nullable="false" />
- <Property Name="Тип" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Описание" Type="nvarchar(max)" />
- </EntityType>
- <!--Ошибки, обнаруженные при создании:
- предупреждение 6002: В таблице или представлении "KarpovTuri.dbo.Hotel_Desc" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
- <EntityType Name="Hotel_Desc">
- <Key>
- <PropertyRef Name="Название отеля" />
- <PropertyRef Name="Картинка" />
- <PropertyRef Name="Автор" />
- <PropertyRef Name="Описание" />
- </Key>
- <Property Name="Название отеля" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Картинка" Type="varbinary(max)" Nullable="false" />
- <Property Name="Автор" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Описание" Type="nvarchar(max)" Nullable="false" />
- </EntityType>
- <!--Ошибки, обнаруженные при создании:
- предупреждение 6002: В таблице или представлении "KarpovTuri.dbo.TourView" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
- <EntityType Name="TourView">
- <Key>
- <PropertyRef Name="Название страны" />
- <PropertyRef Name="Название отеля" />
- <PropertyRef Name="Количество звёзд" />
- <PropertyRef Name="Номер билета" />
- <PropertyRef Name="Название тура" />
- <PropertyRef Name="Цена" />
- <PropertyRef Name="Актуальность" />
- <PropertyRef Name="Тип тура" />
- </Key>
- <Property Name="Название страны" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Название отеля" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Количество звёзд" Type="int" Nullable="false" />
- <Property Name="Номер билета" Type="int" Nullable="false" />
- <Property Name="Название тура" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Превью" Type="varbinary(max)" />
- <Property Name="Цена" Type="money" Nullable="false" />
- <Property Name="Актуальность" Type="bit" Nullable="false" />
- <Property Name="Тип тура" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Описание" Type="nvarchar(max)" />
- </EntityType>
- <Association Name="FK_Hotel_Country">
- <End Role="Country" Type="Self.Country" Multiplicity="1" />
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Country">
- <PropertyRef Name="id_country" />
- </Principal>
- <Dependent Role="Hotel">
- <PropertyRef Name="id_country" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_HotelComment_Hotel">
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
- <End Role="HotelComment" Type="Self.HotelComment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Hotel">
- <PropertyRef Name="id_hotel" />
- </Principal>
- <Dependent Role="HotelComment">
- <PropertyRef Name="id_hotel" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_HotelImage_Hotel">
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
- <End Role="HotelImage" Type="Self.HotelImage" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Hotel">
- <PropertyRef Name="id_hotel" />
- </Principal>
- <Dependent Role="HotelImage">
- <PropertyRef Name="id_hotel" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_HotelOfTour_Hotel">
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
- <End Role="HotelOfTour" Type="Self.HotelOfTour" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Hotel">
- <PropertyRef Name="id_hotel" />
- </Principal>
- <Dependent Role="HotelOfTour">
- <PropertyRef Name="id_hotel" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_HotelOfTour_Tour">
- <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
- <End Role="HotelOfTour" Type="Self.HotelOfTour" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Tour">
- <PropertyRef Name="id_tour" />
- </Principal>
- <Dependent Role="HotelOfTour">
- <PropertyRef Name="id_tour" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_TypeOfTour_Tour">
- <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
- <End Role="TypeOfTour" Type="Self.TypeOfTour" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Tour">
- <PropertyRef Name="id_tour" />
- </Principal>
- <Dependent Role="TypeOfTour">
- <PropertyRef Name="id_tour" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_TypeOfTour_Type">
- <End Role="Type" Type="Self.Type" Multiplicity="1" />
- <End Role="TypeOfTour" Type="Self.TypeOfTour" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Type">
- <PropertyRef Name="id_type" />
- </Principal>
- <Dependent Role="TypeOfTour">
- <PropertyRef Name="id_type" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
- <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- <Parameter Name="version" Type="int" Mode="In" />
- <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
- </Function>
- <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- <Parameter Name="version" Type="int" Mode="In" />
- <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
- </Function>
- <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- </Function>
- <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- </Function>
- <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- </Function>
- <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
- </Function>
- <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
- <EntityContainer Name="Хранилище KarpovTuriModelContainer">
- <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Hotel" EntityType="Self.Hotel" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="HotelComment" EntityType="Self.HotelComment" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="HotelImage" EntityType="Self.HotelImage" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="HotelOfTour" EntityType="Self.HotelOfTour" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Tour" EntityType="Self.Tour" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="TypeOfTour" EntityType="Self.TypeOfTour" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Count_hotel" EntityType="Self.Count_hotel" store:Type="Views" store:Schema="dbo">
- <DefiningQuery>SELECT
- [Count_hotel].[Название отеля] AS [Название отеля],
- [Count_hotel].[Количество звёзд] AS [Количество звёзд],
- [Count_hotel].[Страна] AS [Страна]
- FROM [dbo].[Count_hotel] AS [Count_hotel]</DefiningQuery>
- </EntitySet>
- <EntitySet Name="Description" EntityType="Self.Description" store:Type="Views" store:Schema="dbo">
- <DefiningQuery>SELECT
- [Description].[Название тура] AS [Название тура],
- [Description].[Превью] AS [Превью],
- [Description].[Цена] AS [Цена],
- [Description].[Тип] AS [Тип],
- [Description].[Описание] AS [Описание]
- FROM [dbo].[Description] AS [Description]</DefiningQuery>
- </EntitySet>
- <EntitySet Name="Hotel_Desc" EntityType="Self.Hotel_Desc" store:Type="Views" store:Schema="dbo">
- <DefiningQuery>SELECT
- [Hotel_Desc].[Название отеля] AS [Название отеля],
- [Hotel_Desc].[Картинка] AS [Картинка],
- [Hotel_Desc].[Автор] AS [Автор],
- [Hotel_Desc].[Описание] AS [Описание]
- FROM [dbo].[Hotel_Desc] AS [Hotel_Desc]</DefiningQuery>
- </EntitySet>
- <EntitySet Name="TourView" EntityType="Self.TourView" store:Type="Views" store:Schema="dbo">
- <DefiningQuery>SELECT
- [TourView].[Название страны] AS [Название страны],
- [TourView].[Название отеля] AS [Название отеля],
- [TourView].[Количество звёзд] AS [Количество звёзд],
- [TourView].[Номер билета] AS [Номер билета],
- [TourView].[Название тура] AS [Название тура],
- [TourView].[Превью] AS [Превью],
- [TourView].[Цена] AS [Цена],
- [TourView].[Актуальность] AS [Актуальность],
- [TourView].[Тип тура] AS [Тип тура],
- [TourView].[Описание] AS [Описание]
- FROM [dbo].[TourView] AS [TourView]</DefiningQuery>
- </EntitySet>
- <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
- <End Role="Country" EntitySet="Country" />
- <End Role="Hotel" EntitySet="Hotel" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelComment_Hotel" Association="Self.FK_HotelComment_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelComment" EntitySet="HotelComment" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelImage_Hotel" Association="Self.FK_HotelImage_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelImage" EntitySet="HotelImage" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelOfTour_Hotel" Association="Self.FK_HotelOfTour_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelOfTour" EntitySet="HotelOfTour" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelOfTour_Tour" Association="Self.FK_HotelOfTour_Tour">
- <End Role="Tour" EntitySet="Tour" />
- <End Role="HotelOfTour" EntitySet="HotelOfTour" />
- </AssociationSet>
- <AssociationSet Name="FK_TypeOfTour_Tour" Association="Self.FK_TypeOfTour_Tour">
- <End Role="Tour" EntitySet="Tour" />
- <End Role="TypeOfTour" EntitySet="TypeOfTour" />
- </AssociationSet>
- <AssociationSet Name="FK_TypeOfTour_Type" Association="Self.FK_TypeOfTour_Type">
- <End Role="Type" EntitySet="Type" />
- <End Role="TypeOfTour" EntitySet="TypeOfTour" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|