123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669 |
- <?xml version="1.0" encoding="utf-8"?>
- <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
- <!-- EF Runtime content -->
- <edmx:Runtime>
- <!-- SSDL content -->
- <edmx:StorageModels>
- <Schema Namespace="Хранилище TheBestV2Model" 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="Authorization_History">
- <Key>
- <PropertyRef Name="ID_Auth" />
- </Key>
- <Property Name="ID_Auth" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ID_User" Type="int" Nullable="false" />
- <Property Name="Time_Auth" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="Date_task">
- <Key>
- <PropertyRef Name="ID_task" />
- </Key>
- <Property Name="ID_task" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name_task" Type="varchar" MaxLength="255" />
- <Property Name="Description_task" Type="varchar" MaxLength="255" />
- <Property Name="Date_start_job" Type="date" />
- <Property Name="Date_finish_job" Type="date" />
- <Property Name="ID_status" Type="int" />
- </EntityType>
- <EntityType Name="Date_Users">
- <Key>
- <PropertyRef Name="Login" />
- </Key>
- <Property Name="Login" Type="varchar" MaxLength="255" Nullable="false" />
- <Property Name="Password" Type="varchar" MaxLength="255" />
- <Property Name="ID_user" Type="int" />
- <Property Name="ID_role" Type="int" />
- </EntityType>
- <EntityType Name="Role">
- <Key>
- <PropertyRef Name="ID_role" />
- </Key>
- <Property Name="ID_role" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name_role" Type="varchar" MaxLength="255" />
- </EntityType>
- <EntityType Name="Status">
- <Key>
- <PropertyRef Name="ID_status" />
- </Key>
- <Property Name="ID_status" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Status" Type="varchar" MaxLength="255" />
- </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="Task">
- <Key>
- <PropertyRef Name="ID_Task_For_User" />
- </Key>
- <Property Name="ID_Task_For_User" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ID_task" Type="int" />
- <Property Name="ID_user" Type="int" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="ID_user" />
- </Key>
- <Property Name="ID_user" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Surname" Type="varchar" MaxLength="255" />
- <Property Name="Name" Type="varchar" MaxLength="255" />
- <Property Name="Patronymic" Type="varchar" MaxLength="255" />
- <Property Name="Phone" Type="varchar" MaxLength="255" />
- <Property Name="Email" Type="varchar" MaxLength="255" />
- </EntityType>
- <!--Ошибки, обнаруженные при создании:
- предупреждение 6002: В таблице или представлении "TheBestV2.dbo.Active_tasks" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
- <EntityType Name="Active_tasks">
- <Key>
- <PropertyRef Name="ID_task" />
- </Key>
- <Property Name="ID_task" Type="int" Nullable="false" />
- <Property Name="Name_tasks" Type="varchar" MaxLength="255" />
- <Property Name="Description_task" Type="varchar" MaxLength="255" />
- <Property Name="Date_start_job" Type="date" />
- <Property Name="Date_finish_job" Type="date" />
- </EntityType>
- <!--Ошибки, обнаруженные при создании:
- предупреждение 6002: В таблице или представлении "TheBestV2.dbo.Complete_tasks" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
- <EntityType Name="Complete_tasks">
- <Key>
- <PropertyRef Name="ID_task" />
- </Key>
- <Property Name="ID_task" Type="int" Nullable="false" />
- <Property Name="Name_tasks" Type="varchar" MaxLength="255" />
- <Property Name="Description_task" Type="varchar" MaxLength="255" />
- <Property Name="Date_start_job" Type="date" />
- <Property Name="Date_finish_job" Type="date" />
- </EntityType>
- <Association Name="FK__Authoriza__ID_Us__47DBAE45">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="Authorization_History" Type="Self.Authorization_History" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID_user" />
- </Principal>
- <Dependent Role="Authorization_History">
- <PropertyRef Name="ID_User" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Date_task__ID_st__412EB0B6">
- <End Role="Status" Type="Self.Status" Multiplicity="0..1" />
- <End Role="Date_task" Type="Self.Date_task" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Status">
- <PropertyRef Name="ID_status" />
- </Principal>
- <Dependent Role="Date_task">
- <PropertyRef Name="ID_status" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Date_User__ID_ro__3C69FB99">
- <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
- <End Role="Date_Users" Type="Self.Date_Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Role">
- <PropertyRef Name="ID_role" />
- </Principal>
- <Dependent Role="Date_Users">
- <PropertyRef Name="ID_role" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Date_User__ID_us__3B75D760">
- <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
- <End Role="Date_Users" Type="Self.Date_Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID_user" />
- </Principal>
- <Dependent Role="Date_Users">
- <PropertyRef Name="ID_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Task__ID_task__440B1D61">
- <End Role="Date_task" Type="Self.Date_task" Multiplicity="0..1" />
- <End Role="Task" Type="Self.Task" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Date_task">
- <PropertyRef Name="ID_task" />
- </Principal>
- <Dependent Role="Task">
- <PropertyRef Name="ID_task" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Task__ID_user__44FF419A">
- <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
- <End Role="Task" Type="Self.Task" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID_user" />
- </Principal>
- <Dependent Role="Task">
- <PropertyRef Name="ID_user" />
- </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="Хранилище TheBestV2ModelContainer">
- <EntitySet Name="Authorization_History" EntityType="Self.Authorization_History" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Date_task" EntityType="Self.Date_task" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Date_Users" EntityType="Self.Date_Users" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Status" EntityType="Self.Status" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Task" EntityType="Self.Task" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Active_tasks" EntityType="Self.Active_tasks" store:Type="Views" store:Schema="dbo">
- <DefiningQuery>SELECT
- [Active_tasks].[ID_task] AS [ID_task],
- [Active_tasks].[Name_tasks] AS [Name_tasks],
- [Active_tasks].[Description_task] AS [Description_task],
- [Active_tasks].[Date_start_job] AS [Date_start_job],
- [Active_tasks].[Date_finish_job] AS [Date_finish_job]
- FROM [dbo].[Active_tasks] AS [Active_tasks]</DefiningQuery>
- </EntitySet>
- <EntitySet Name="Complete_tasks" EntityType="Self.Complete_tasks" store:Type="Views" store:Schema="dbo">
- <DefiningQuery>SELECT
- [Complete_tasks].[ID_task] AS [ID_task],
- [Complete_tasks].[Name_tasks] AS [Name_tasks],
- [Complete_tasks].[Description_task] AS [Description_task],
- [Complete_tasks].[Date_start_job] AS [Date_start_job],
- [Complete_tasks].[Date_finish_job] AS [Date_finish_job]
- FROM [dbo].[Complete_tasks] AS [Complete_tasks]</DefiningQuery>
- </EntitySet>
- <AssociationSet Name="FK__Authoriza__ID_Us__47DBAE45" Association="Self.FK__Authoriza__ID_Us__47DBAE45">
- <End Role="Users" EntitySet="Users" />
- <End Role="Authorization_History" EntitySet="Authorization_History" />
- </AssociationSet>
- <AssociationSet Name="FK__Date_task__ID_st__412EB0B6" Association="Self.FK__Date_task__ID_st__412EB0B6">
- <End Role="Status" EntitySet="Status" />
- <End Role="Date_task" EntitySet="Date_task" />
- </AssociationSet>
- <AssociationSet Name="FK__Date_User__ID_ro__3C69FB99" Association="Self.FK__Date_User__ID_ro__3C69FB99">
- <End Role="Role" EntitySet="Role" />
- <End Role="Date_Users" EntitySet="Date_Users" />
- </AssociationSet>
- <AssociationSet Name="FK__Date_User__ID_us__3B75D760" Association="Self.FK__Date_User__ID_us__3B75D760">
- <End Role="Users" EntitySet="Users" />
- <End Role="Date_Users" EntitySet="Date_Users" />
- </AssociationSet>
- <AssociationSet Name="FK__Task__ID_task__440B1D61" Association="Self.FK__Task__ID_task__440B1D61">
- <End Role="Date_task" EntitySet="Date_task" />
- <End Role="Task" EntitySet="Task" />
- </AssociationSet>
- <AssociationSet Name="FK__Task__ID_user__44FF419A" Association="Self.FK__Task__ID_user__44FF419A">
- <End Role="Users" EntitySet="Users" />
- <End Role="Task" EntitySet="Task" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="TheBestV2Model" 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="Authorization_History">
- <Key>
- <PropertyRef Name="ID_Auth" />
- </Key>
- <Property Name="ID_Auth" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ID_User" Type="Int32" Nullable="false" />
- <Property Name="Time_Auth" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="Users" Relationship="Self.FK__Authoriza__ID_Us__47DBAE45" FromRole="Authorization_History" ToRole="Users" />
- </EntityType>
- <EntityType Name="Date_task">
- <Key>
- <PropertyRef Name="ID_task" />
- </Key>
- <Property Name="ID_task" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name_task" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Description_task" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Date_start_job" Type="DateTime" Precision="0" />
- <Property Name="Date_finish_job" Type="DateTime" Precision="0" />
- <Property Name="ID_status" Type="Int32" />
- <NavigationProperty Name="Status" Relationship="Self.FK__Date_task__ID_st__412EB0B6" FromRole="Date_task" ToRole="Status" />
- <NavigationProperty Name="Task" Relationship="Self.FK__Task__ID_task__440B1D61" FromRole="Date_task" ToRole="Task" />
- </EntityType>
- <EntityType Name="Date_Users">
- <Key>
- <PropertyRef Name="Login" />
- </Key>
- <Property Name="Login" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Password" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="ID_user" Type="Int32" />
- <Property Name="ID_role" Type="Int32" />
- <NavigationProperty Name="Role" Relationship="Self.FK__Date_User__ID_ro__3C69FB99" FromRole="Date_Users" ToRole="Role" />
- <NavigationProperty Name="Users" Relationship="Self.FK__Date_User__ID_us__3B75D760" FromRole="Date_Users" ToRole="Users" />
- </EntityType>
- <EntityType Name="Role">
- <Key>
- <PropertyRef Name="ID_role" />
- </Key>
- <Property Name="ID_role" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name_role" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="Date_Users" Relationship="Self.FK__Date_User__ID_ro__3C69FB99" FromRole="Role" ToRole="Date_Users" />
- </EntityType>
- <EntityType Name="Status">
- <Key>
- <PropertyRef Name="ID_status" />
- </Key>
- <Property Name="ID_status" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Status1" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="Date_task" Relationship="Self.FK__Date_task__ID_st__412EB0B6" FromRole="Status" ToRole="Date_task" />
- </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="Task">
- <Key>
- <PropertyRef Name="ID_Task_For_User" />
- </Key>
- <Property Name="ID_Task_For_User" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ID_task" Type="Int32" />
- <Property Name="ID_user" Type="Int32" />
- <NavigationProperty Name="Date_task" Relationship="Self.FK__Task__ID_task__440B1D61" FromRole="Task" ToRole="Date_task" />
- <NavigationProperty Name="Users" Relationship="Self.FK__Task__ID_user__44FF419A" FromRole="Task" ToRole="Users" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="ID_user" />
- </Key>
- <Property Name="ID_user" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Surname" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Name" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Patronymic" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Phone" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="Authorization_History" Relationship="Self.FK__Authoriza__ID_Us__47DBAE45" FromRole="Users" ToRole="Authorization_History" />
- <NavigationProperty Name="Date_Users" Relationship="Self.FK__Date_User__ID_us__3B75D760" FromRole="Users" ToRole="Date_Users" />
- <NavigationProperty Name="Task" Relationship="Self.FK__Task__ID_user__44FF419A" FromRole="Users" ToRole="Task" />
- </EntityType>
- <EntityType Name="Active_tasks">
- <Key>
- <PropertyRef Name="ID_task" />
- </Key>
- <Property Name="ID_task" Type="Int32" Nullable="false" />
- <Property Name="Name_tasks" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Description_task" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Date_start_job" Type="DateTime" Precision="0" />
- <Property Name="Date_finish_job" Type="DateTime" Precision="0" />
- </EntityType>
- <EntityType Name="Complete_tasks">
- <Key>
- <PropertyRef Name="ID_task" />
- </Key>
- <Property Name="ID_task" Type="Int32" Nullable="false" />
- <Property Name="Name_tasks" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Description_task" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Name="Date_start_job" Type="DateTime" Precision="0" />
- <Property Name="Date_finish_job" Type="DateTime" Precision="0" />
- </EntityType>
- <Association Name="FK__Authoriza__ID_Us__47DBAE45">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="Authorization_History" Type="Self.Authorization_History" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID_user" />
- </Principal>
- <Dependent Role="Authorization_History">
- <PropertyRef Name="ID_User" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Date_task__ID_st__412EB0B6">
- <End Role="Status" Type="Self.Status" Multiplicity="0..1" />
- <End Role="Date_task" Type="Self.Date_task" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Status">
- <PropertyRef Name="ID_status" />
- </Principal>
- <Dependent Role="Date_task">
- <PropertyRef Name="ID_status" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Task__ID_task__440B1D61">
- <End Role="Date_task" Type="Self.Date_task" Multiplicity="0..1" />
- <End Role="Task" Type="Self.Task" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Date_task">
- <PropertyRef Name="ID_task" />
- </Principal>
- <Dependent Role="Task">
- <PropertyRef Name="ID_task" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Date_User__ID_ro__3C69FB99">
- <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
- <End Role="Date_Users" Type="Self.Date_Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Role">
- <PropertyRef Name="ID_role" />
- </Principal>
- <Dependent Role="Date_Users">
- <PropertyRef Name="ID_role" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Date_User__ID_us__3B75D760">
- <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
- <End Role="Date_Users" Type="Self.Date_Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID_user" />
- </Principal>
- <Dependent Role="Date_Users">
- <PropertyRef Name="ID_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__Task__ID_user__44FF419A">
- <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
- <End Role="Task" Type="Self.Task" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID_user" />
- </Principal>
- <Dependent Role="Task">
- <PropertyRef Name="ID_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="TheBestV2Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Authorization_History" EntityType="Self.Authorization_History" />
- <EntitySet Name="Date_task" EntityType="Self.Date_task" />
- <EntitySet Name="Date_Users" EntityType="Self.Date_Users" />
- <EntitySet Name="Role" EntityType="Self.Role" />
- <EntitySet Name="Status" EntityType="Self.Status" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
- <EntitySet Name="Task" EntityType="Self.Task" />
- <EntitySet Name="Users" EntityType="Self.Users" />
- <EntitySet Name="Active_tasks" EntityType="Self.Active_tasks" />
- <EntitySet Name="Complete_tasks" EntityType="Self.Complete_tasks" />
- <AssociationSet Name="FK__Authoriza__ID_Us__47DBAE45" Association="Self.FK__Authoriza__ID_Us__47DBAE45">
- <End Role="Users" EntitySet="Users" />
- <End Role="Authorization_History" EntitySet="Authorization_History" />
- </AssociationSet>
- <AssociationSet Name="FK__Date_task__ID_st__412EB0B6" Association="Self.FK__Date_task__ID_st__412EB0B6">
- <End Role="Status" EntitySet="Status" />
- <End Role="Date_task" EntitySet="Date_task" />
- </AssociationSet>
- <AssociationSet Name="FK__Task__ID_task__440B1D61" Association="Self.FK__Task__ID_task__440B1D61">
- <End Role="Date_task" EntitySet="Date_task" />
- <End Role="Task" EntitySet="Task" />
- </AssociationSet>
- <AssociationSet Name="FK__Date_User__ID_ro__3C69FB99" Association="Self.FK__Date_User__ID_ro__3C69FB99">
- <End Role="Role" EntitySet="Role" />
- <End Role="Date_Users" EntitySet="Date_Users" />
- </AssociationSet>
- <AssociationSet Name="FK__Date_User__ID_us__3B75D760" Association="Self.FK__Date_User__ID_us__3B75D760">
- <End Role="Users" EntitySet="Users" />
- <End Role="Date_Users" EntitySet="Date_Users" />
- </AssociationSet>
- <AssociationSet Name="FK__Task__ID_user__44FF419A" Association="Self.FK__Task__ID_user__44FF419A">
- <End Role="Users" EntitySet="Users" />
- <End Role="Task" EntitySet="Task" />
- </AssociationSet>
- <FunctionImport Name="sp_alterdiagram">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- <Parameter Name="version" Mode="In" Type="Int32" />
- <Parameter Name="definition" Mode="In" Type="Binary" />
- </FunctionImport>
- <FunctionImport Name="sp_creatediagram">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- <Parameter Name="version" Mode="In" Type="Int32" />
- <Parameter Name="definition" Mode="In" Type="Binary" />
- </FunctionImport>
- <FunctionImport Name="sp_dropdiagram">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- </FunctionImport>
- <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(TheBestV2Model.sp_helpdiagramdefinition_Result)">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- </FunctionImport>
- <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(TheBestV2Model.sp_helpdiagrams_Result)">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- </FunctionImport>
- <FunctionImport Name="sp_renamediagram">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- <Parameter Name="new_diagramname" Mode="In" Type="String" />
- </FunctionImport>
- <FunctionImport Name="sp_upgraddiagrams" />
- </EntityContainer>
- <ComplexType Name="sp_helpdiagramdefinition_Result">
- <Property Type="Int32" Name="version" Nullable="true" />
- <Property Type="Binary" Name="definition" Nullable="true" />
- </ComplexType>
- <ComplexType Name="sp_helpdiagrams_Result">
- <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
- <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
- <Property Type="Int32" Name="ID" Nullable="false" />
- <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
- <Property Type="Int32" Name="OwnerID" Nullable="false" />
- </ComplexType>
- </Schema>
- </edmx:ConceptualModels>
- <!-- C-S mapping content -->
- <edmx:Mappings>
- <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
- <EntityContainerMapping StorageEntityContainer="Хранилище TheBestV2ModelContainer" CdmEntityContainer="TheBestV2Entities">
- <EntitySetMapping Name="Authorization_History">
- <EntityTypeMapping TypeName="TheBestV2Model.Authorization_History">
- <MappingFragment StoreEntitySet="Authorization_History">
- <ScalarProperty Name="ID_Auth" ColumnName="ID_Auth" />
- <ScalarProperty Name="ID_User" ColumnName="ID_User" />
- <ScalarProperty Name="Time_Auth" ColumnName="Time_Auth" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Date_task">
- <EntityTypeMapping TypeName="TheBestV2Model.Date_task">
- <MappingFragment StoreEntitySet="Date_task">
- <ScalarProperty Name="ID_task" ColumnName="ID_task" />
- <ScalarProperty Name="Name_task" ColumnName="Name_task" />
- <ScalarProperty Name="Description_task" ColumnName="Description_task" />
- <ScalarProperty Name="Date_start_job" ColumnName="Date_start_job" />
- <ScalarProperty Name="Date_finish_job" ColumnName="Date_finish_job" />
- <ScalarProperty Name="ID_status" ColumnName="ID_status" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Date_Users">
- <EntityTypeMapping TypeName="TheBestV2Model.Date_Users">
- <MappingFragment StoreEntitySet="Date_Users">
- <ScalarProperty Name="Login" ColumnName="Login" />
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="ID_user" ColumnName="ID_user" />
- <ScalarProperty Name="ID_role" ColumnName="ID_role" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Role">
- <EntityTypeMapping TypeName="TheBestV2Model.Role">
- <MappingFragment StoreEntitySet="Role">
- <ScalarProperty Name="ID_role" ColumnName="ID_role" />
- <ScalarProperty Name="Name_role" ColumnName="Name_role" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Status">
- <EntityTypeMapping TypeName="TheBestV2Model.Status">
- <MappingFragment StoreEntitySet="Status">
- <ScalarProperty Name="ID_status" ColumnName="ID_status" />
- <ScalarProperty Name="Status1" ColumnName="Status" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="TheBestV2Model.sysdiagrams">
- <MappingFragment StoreEntitySet="sysdiagrams">
- <ScalarProperty Name="name" ColumnName="name" />
- <ScalarProperty Name="principal_id" ColumnName="principal_id" />
- <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Task">
- <EntityTypeMapping TypeName="TheBestV2Model.Task">
- <MappingFragment StoreEntitySet="Task">
- <ScalarProperty Name="ID_Task_For_User" ColumnName="ID_Task_For_User" />
- <ScalarProperty Name="ID_task" ColumnName="ID_task" />
- <ScalarProperty Name="ID_user" ColumnName="ID_user" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Users">
- <EntityTypeMapping TypeName="TheBestV2Model.Users">
- <MappingFragment StoreEntitySet="Users">
- <ScalarProperty Name="ID_user" ColumnName="ID_user" />
- <ScalarProperty Name="Surname" ColumnName="Surname" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
- <ScalarProperty Name="Phone" ColumnName="Phone" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Active_tasks">
- <EntityTypeMapping TypeName="TheBestV2Model.Active_tasks">
- <MappingFragment StoreEntitySet="Active_tasks">
- <ScalarProperty Name="ID_task" ColumnName="ID_task" />
- <ScalarProperty Name="Name_tasks" ColumnName="Name_tasks" />
- <ScalarProperty Name="Description_task" ColumnName="Description_task" />
- <ScalarProperty Name="Date_start_job" ColumnName="Date_start_job" />
- <ScalarProperty Name="Date_finish_job" ColumnName="Date_finish_job" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Complete_tasks">
- <EntityTypeMapping TypeName="TheBestV2Model.Complete_tasks">
- <MappingFragment StoreEntitySet="Complete_tasks">
- <ScalarProperty Name="ID_task" ColumnName="ID_task" />
- <ScalarProperty Name="Name_tasks" ColumnName="Name_tasks" />
- <ScalarProperty Name="Description_task" ColumnName="Description_task" />
- <ScalarProperty Name="Date_start_job" ColumnName="Date_start_job" />
- <ScalarProperty Name="Date_finish_job" ColumnName="Date_finish_job" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище TheBestV2Model.sp_alterdiagram" />
- <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище TheBestV2Model.sp_creatediagram" />
- <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище TheBestV2Model.sp_dropdiagram" />
- <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище TheBestV2Model.sp_helpdiagramdefinition">
- <ResultMapping>
- <ComplexTypeMapping TypeName="TheBestV2Model.sp_helpdiagramdefinition_Result">
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </ComplexTypeMapping>
- </ResultMapping>
- </FunctionImportMapping>
- <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище TheBestV2Model.sp_helpdiagrams">
- <ResultMapping>
- <ComplexTypeMapping TypeName="TheBestV2Model.sp_helpdiagrams_Result">
- <ScalarProperty Name="Database" ColumnName="Database" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Owner" ColumnName="Owner" />
- <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
- </ComplexTypeMapping>
- </ResultMapping>
- </FunctionImportMapping>
- <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище TheBestV2Model.sp_renamediagram" />
- <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище TheBestV2Model.sp_upgraddiagrams" />
- </EntityContainerMapping>
- </Mapping>
- </edmx:Mappings>
- </edmx:Runtime>
- <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
- <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
- <Connection>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
- </DesignerInfoPropertySet>
- </Connection>
- <Options>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="ValidateOnBuild" Value="true" />
- <DesignerProperty Name="EnablePluralization" Value="false" />
- <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
- <DesignerProperty Name="UseLegacyProvider" Value="false" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|