123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="Хранилище mateoModel" 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="Attraction">
- <Key>
- <PropertyRef Name="IDAttraction" />
- </Key>
- <Property Name="IDAttraction" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="NameAttraction" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="400" />
- <Property Name="PriceOld" Type="money" />
- <Property Name="PriceBaby" Type="money" />
- <Property Name="QuantityAttraction" Type="int" Nullable="false" />
- <Property Name="ImageAttraction" Type="varbinary(max)" Nullable="false" />
- <Property Name="FKEmployees" Type="int" Nullable="false" />
- <Property Name="FKStatusAttraction" Type="int" Nullable="false" />
- <Property Name="FKType" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Card">
- <Key>
- <PropertyRef Name="IDCard" />
- </Key>
- <Property Name="IDCard" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="NumberCard" Type="nvarchar" MaxLength="19" Nullable="false" />
- <Property Name="Balance" Type="money" />
- </EntityType>
- <EntityType Name="Employees">
- <Key>
- <PropertyRef Name="IDEmployees" />
- </Key>
- <Property Name="IDEmployees" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="LastName" Type="nvarchar" MaxLength="25" Nullable="false" />
- <Property Name="FirstName" Type="nvarchar" MaxLength="25" Nullable="false" />
- <Property Name="MiddleName" Type="nvarchar" MaxLength="25" />
- <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="FKRole" Type="int" Nullable="false" />
- <Property Name="FKStatusEmployees" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="History">
- <Key>
- <PropertyRef Name="IDHistory" />
- </Key>
- <Property Name="IDHistory" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FKUser" Type="int" Nullable="false" />
- <Property Name="DateTime" Type="datetime" Nullable="false" />
- <Property Name="Summ" Type="money" Nullable="false" />
- </EntityType>
- <EntityType Name="Role">
- <Key>
- <PropertyRef Name="IDRole" />
- </Key>
- <Property Name="IDRole" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Role" Type="nvarchar" MaxLength="25" Nullable="false" />
- </EntityType>
- <EntityType Name="StatusAttraction">
- <Key>
- <PropertyRef Name="IDStatusAttraction" />
- </Key>
- <Property Name="IDStatusAttraction" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="StatusAttraction" Type="nvarchar" MaxLength="25" Nullable="false" />
- </EntityType>
- <EntityType Name="StatusEmployees">
- <Key>
- <PropertyRef Name="IDStatusEmployees" />
- </Key>
- <Property Name="IDStatusEmployees" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="StatusEmployees" Type="nvarchar" MaxLength="25" Nullable="false" />
- </EntityType>
- <EntityType Name="StatusPay">
- <Key>
- <PropertyRef Name="IDStatusPay" />
- </Key>
- <Property Name="IDStatusPay" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="StatusPay" Type="nvarchar" MaxLength="20" 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="Tickets">
- <Key>
- <PropertyRef Name="IDTickets" />
- </Key>
- <Property Name="IDTickets" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FKUser" Type="int" Nullable="false" />
- <Property Name="FKAttraction" Type="int" Nullable="false" />
- <Property Name="FKTypeTickets" Type="int" Nullable="false" />
- <Property Name="FKStatusPuy" Type="int" Nullable="false" />
- <Property Name="Quantity" Type="int" Nullable="false" />
- <Property Name="Summ" Type="money" Nullable="false" />
- <Property Name="Date" Type="date" Nullable="false" />
- </EntityType>
- <EntityType Name="Type">
- <Key>
- <PropertyRef Name="IDType" />
- </Key>
- <Property Name="IDType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Type" Type="nvarchar" MaxLength="20" Nullable="false" />
- </EntityType>
- <EntityType Name="TypeTickets">
- <Key>
- <PropertyRef Name="IDTypeTickets" />
- </Key>
- <Property Name="IDTypeTickets" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="TypeTickets" Type="nvarchar" MaxLength="20" Nullable="false" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="IDUsers" />
- </Key>
- <Property Name="IDUsers" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="LastName" Type="nvarchar" MaxLength="25" Nullable="false" />
- <Property Name="FirstName" Type="nvarchar" MaxLength="25" Nullable="false" />
- <Property Name="MiddleName" Type="nvarchar" MaxLength="25" />
- <Property Name="Image" Type="varbinary(max)" />
- <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="FKCard" Type="int" Nullable="false" />
- </EntityType>
- <Association Name="FK_Attraction_Employees">
- <End Role="Employees" Type="Self.Employees" Multiplicity="1" />
- <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Employees">
- <PropertyRef Name="IDEmployees" />
- </Principal>
- <Dependent Role="Attraction">
- <PropertyRef Name="FKEmployees" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Attraction_StatusAttraction">
- <End Role="StatusAttraction" Type="Self.StatusAttraction" Multiplicity="1" />
- <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="StatusAttraction">
- <PropertyRef Name="IDStatusAttraction" />
- </Principal>
- <Dependent Role="Attraction">
- <PropertyRef Name="FKStatusAttraction" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Attraction_Type">
- <End Role="Type" Type="Self.Type" Multiplicity="1" />
- <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Type">
- <PropertyRef Name="IDType" />
- </Principal>
- <Dependent Role="Attraction">
- <PropertyRef Name="FKType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Employees_Role">
- <End Role="Role" Type="Self.Role" Multiplicity="1" />
- <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Role">
- <PropertyRef Name="IDRole" />
- </Principal>
- <Dependent Role="Employees">
- <PropertyRef Name="FKRole" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Employees_StatusEmployees">
- <End Role="StatusEmployees" Type="Self.StatusEmployees" Multiplicity="1" />
- <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="StatusEmployees">
- <PropertyRef Name="IDStatusEmployees" />
- </Principal>
- <Dependent Role="Employees">
- <PropertyRef Name="FKStatusEmployees" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_History_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="History" Type="Self.History" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="IDUsers" />
- </Principal>
- <Dependent Role="History">
- <PropertyRef Name="FKUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_Attraction">
- <End Role="Attraction" Type="Self.Attraction" Multiplicity="1" />
- <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Attraction">
- <PropertyRef Name="IDAttraction" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="FKAttraction" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_StatusPay">
- <End Role="StatusPay" Type="Self.StatusPay" Multiplicity="1" />
- <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="StatusPay">
- <PropertyRef Name="IDStatusPay" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="FKStatusPuy" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_TypeTickets">
- <End Role="TypeTickets" Type="Self.TypeTickets" Multiplicity="1" />
- <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="TypeTickets">
- <PropertyRef Name="IDTypeTickets" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="FKTypeTickets" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="IDUsers" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="FKUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Users_Card">
- <End Role="Card" Type="Self.Card" Multiplicity="1" />
- <End Role="Users" Type="Self.Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Card">
- <PropertyRef Name="IDCard" />
- </Principal>
- <Dependent Role="Users">
- <PropertyRef Name="FKCard" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище mateoModelContainer">
- <EntitySet Name="Attraction" EntityType="Self.Attraction" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Card" EntityType="Self.Card" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="History" EntityType="Self.History" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="StatusAttraction" EntityType="Self.StatusAttraction" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="StatusEmployees" EntityType="Self.StatusEmployees" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="StatusPay" EntityType="Self.StatusPay" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Tickets" EntityType="Self.Tickets" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="TypeTickets" EntityType="Self.TypeTickets" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Attraction_Employees" Association="Self.FK_Attraction_Employees">
- <End Role="Employees" EntitySet="Employees" />
- <End Role="Attraction" EntitySet="Attraction" />
- </AssociationSet>
- <AssociationSet Name="FK_Attraction_StatusAttraction" Association="Self.FK_Attraction_StatusAttraction">
- <End Role="StatusAttraction" EntitySet="StatusAttraction" />
- <End Role="Attraction" EntitySet="Attraction" />
- </AssociationSet>
- <AssociationSet Name="FK_Attraction_Type" Association="Self.FK_Attraction_Type">
- <End Role="Type" EntitySet="Type" />
- <End Role="Attraction" EntitySet="Attraction" />
- </AssociationSet>
- <AssociationSet Name="FK_Employees_Role" Association="Self.FK_Employees_Role">
- <End Role="Role" EntitySet="Role" />
- <End Role="Employees" EntitySet="Employees" />
- </AssociationSet>
- <AssociationSet Name="FK_Employees_StatusEmployees" Association="Self.FK_Employees_StatusEmployees">
- <End Role="StatusEmployees" EntitySet="StatusEmployees" />
- <End Role="Employees" EntitySet="Employees" />
- </AssociationSet>
- <AssociationSet Name="FK_History_Users" Association="Self.FK_History_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="History" EntitySet="History" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_Attraction" Association="Self.FK_Tickets_Attraction">
- <End Role="Attraction" EntitySet="Attraction" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_StatusPay" Association="Self.FK_Tickets_StatusPay">
- <End Role="StatusPay" EntitySet="StatusPay" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_TypeTickets" Association="Self.FK_Tickets_TypeTickets">
- <End Role="TypeTickets" EntitySet="TypeTickets" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_Users" Association="Self.FK_Tickets_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Users_Card" Association="Self.FK_Users_Card">
- <End Role="Card" EntitySet="Card" />
- <End Role="Users" EntitySet="Users" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|