|
@@ -4,7 +4,18 @@
|
|
|
<edmx:Runtime>
|
|
|
<!-- SSDL content -->
|
|
|
<edmx:StorageModels>
|
|
|
- <Schema Namespace="Хранилище gr671_kyaaModel" 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">
|
|
|
+ <Schema Namespace="Хранилище gr671_kyaaModel" 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="auth">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="login" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="pass" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="surname" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="midname" Type="nvarchar" MaxLength="50" />
|
|
|
+ </EntityType>
|
|
|
<EntityType Name="Call">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idCall" />
|
|
@@ -14,6 +25,7 @@
|
|
|
<Property Name="LongCall" Type="int" />
|
|
|
<Property Name="idLead" Type="int" />
|
|
|
<Property Name="idUser" Type="int" />
|
|
|
+ <Property Name="Comment" Type="nvarchar(max)" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Clients">
|
|
|
<Key>
|
|
@@ -31,6 +43,9 @@
|
|
|
<Property Name="StatusLead" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
<Property Name="idClient" Type="int" Nullable="false" />
|
|
|
<Property Name="idProduct" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Comment" Type="nvarchar(max)" />
|
|
|
+ <Property Name="idUser" Type="int" />
|
|
|
+ <Property Name="IsCalled" Type="bit" Nullable="false" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Products">
|
|
|
<Key>
|
|
@@ -40,16 +55,6 @@
|
|
|
<Property Name="ProductTitle" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
<Property Name="ProductType" Type="nvarchar" MaxLength="50" 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="Users">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idUser" />
|
|
@@ -77,7 +82,9 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Call_Users">
|
|
|
- <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
|
|
|
+ <End Role="Users" Type="Self.Users" Multiplicity="0..1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
<End Role="Call" Type="Self.Call" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Users">
|
|
@@ -89,7 +96,9 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Lead_Clients">
|
|
|
- <End Role="Clients" Type="Self.Clients" Multiplicity="1" />
|
|
|
+ <End Role="Clients" Type="Self.Clients" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
<End Role="Lead" Type="Self.Lead" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Clients">
|
|
@@ -101,7 +110,9 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Lead_Products">
|
|
|
- <End Role="Products" Type="Self.Products" Multiplicity="1" />
|
|
|
+ <End Role="Products" Type="Self.Products" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
<End Role="Lead" Type="Self.Lead" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Products">
|
|
@@ -112,12 +123,26 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
+ <Association Name="FK_Lead_Users">
|
|
|
+ <End Role="Users" Type="Self.Users" Multiplicity="0..1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="Lead" Type="Self.Lead" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Users">
|
|
|
+ <PropertyRef Name="idUser" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Lead">
|
|
|
+ <PropertyRef Name="idUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
<EntityContainer Name="Хранилище gr671_kyaaModelContainer">
|
|
|
+ <EntitySet Name="auth" EntityType="Self.auth" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Call" EntityType="Self.Call" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Clients" EntityType="Self.Clients" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Lead" EntityType="Self.Lead" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Products" EntityType="Self.Products" Schema="dbo" store:Type="Tables" />
|
|
|
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
|
|
|
<AssociationSet Name="FK_Call_Lead" Association="Self.FK_Call_Lead">
|
|
|
<End Role="Lead" EntitySet="Lead" />
|
|
@@ -135,12 +160,54 @@
|
|
|
<End Role="Products" EntitySet="Products" />
|
|
|
<End Role="Lead" EntitySet="Lead" />
|
|
|
</AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Lead_Users" Association="Self.FK_Lead_Users">
|
|
|
+ <End Role="Users" EntitySet="Users" />
|
|
|
+ <End Role="Lead" EntitySet="Lead" />
|
|
|
+ </AssociationSet>
|
|
|
</EntityContainer>
|
|
|
- </Schema>
|
|
|
- </edmx:StorageModels>
|
|
|
+ </Schema></edmx:StorageModels>
|
|
|
<!-- CSDL content -->
|
|
|
<edmx:ConceptualModels>
|
|
|
<Schema Namespace="gr671_kyaaModel" 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">
|
|
|
+ <EntityContainer Name="gr671_kyaaEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="auth" EntityType="gr671_kyaaModel.auth" />
|
|
|
+ <EntitySet Name="Call" EntityType="gr671_kyaaModel.Call" />
|
|
|
+ <EntitySet Name="Clients" EntityType="gr671_kyaaModel.Clients" />
|
|
|
+ <EntitySet Name="Lead" EntityType="gr671_kyaaModel.Lead" />
|
|
|
+ <EntitySet Name="Products" EntityType="gr671_kyaaModel.Products" />
|
|
|
+ <EntitySet Name="Users" EntityType="gr671_kyaaModel.Users" />
|
|
|
+ <AssociationSet Name="FK_Call_Lead" Association="gr671_kyaaModel.FK_Call_Lead">
|
|
|
+ <End Role="Lead" EntitySet="Lead" />
|
|
|
+ <End Role="Call" EntitySet="Call" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Call_Users" Association="gr671_kyaaModel.FK_Call_Users">
|
|
|
+ <End Role="Users" EntitySet="Users" />
|
|
|
+ <End Role="Call" EntitySet="Call" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Lead_Clients" Association="gr671_kyaaModel.FK_Lead_Clients">
|
|
|
+ <End Role="Clients" EntitySet="Clients" />
|
|
|
+ <End Role="Lead" EntitySet="Lead" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Lead_Products" Association="gr671_kyaaModel.FK_Lead_Products">
|
|
|
+ <End Role="Products" EntitySet="Products" />
|
|
|
+ <End Role="Lead" EntitySet="Lead" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Lead_Users" Association="gr671_kyaaModel.FK_Lead_Users">
|
|
|
+ <End Role="Users" EntitySet="Users" />
|
|
|
+ <End Role="Lead" EntitySet="Lead" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ <EntityType Name="auth">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="pass" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="midname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ </EntityType>
|
|
|
<EntityType Name="Call">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idCall" />
|
|
@@ -150,16 +217,17 @@
|
|
|
<Property Name="LongCall" Type="Int32" />
|
|
|
<Property Name="idLead" Type="Int32" />
|
|
|
<Property Name="idUser" Type="Int32" />
|
|
|
- <NavigationProperty Name="Lead" Relationship="Self.FK_Call_Lead" FromRole="Call" ToRole="Lead" />
|
|
|
- <NavigationProperty Name="Users" Relationship="Self.FK_Call_Users" FromRole="Call" ToRole="Users" />
|
|
|
+ <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Lead" Relationship="gr671_kyaaModel.FK_Call_Lead" FromRole="Call" ToRole="Lead" />
|
|
|
+ <NavigationProperty Name="Users" Relationship="gr671_kyaaModel.FK_Call_Users" FromRole="Call" ToRole="Users" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Clients">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idClient" />
|
|
|
</Key>
|
|
|
<Property Name="idClient" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <Property Name="PhoneNumbers" Type="Decimal" Precision="18" Scale="0" Nullable="false" />
|
|
|
- <NavigationProperty Name="Lead" Relationship="Self.FK_Lead_Clients" FromRole="Clients" ToRole="Lead" />
|
|
|
+ <Property Name="PhoneNumbers" Type="Decimal" Nullable="false" Precision="18" Scale="0" />
|
|
|
+ <NavigationProperty Name="Lead" Relationship="gr671_kyaaModel.FK_Lead_Clients" FromRole="Clients" ToRole="Lead" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Lead">
|
|
|
<Key>
|
|
@@ -167,50 +235,45 @@
|
|
|
</Key>
|
|
|
<Property Name="idLead" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="LeadStart" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
- <Property Name="StatusLead" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="StatusLead" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="idClient" Type="Int32" Nullable="false" />
|
|
|
<Property Name="idProduct" Type="Int32" Nullable="false" />
|
|
|
- <NavigationProperty Name="Call" Relationship="Self.FK_Call_Lead" FromRole="Lead" ToRole="Call" />
|
|
|
- <NavigationProperty Name="Clients" Relationship="Self.FK_Lead_Clients" FromRole="Lead" ToRole="Clients" />
|
|
|
- <NavigationProperty Name="Products" Relationship="Self.FK_Lead_Products" FromRole="Lead" ToRole="Products" />
|
|
|
+ <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="idUser" Type="Int32" />
|
|
|
+ <NavigationProperty Name="Call" Relationship="gr671_kyaaModel.FK_Call_Lead" FromRole="Lead" ToRole="Call" />
|
|
|
+ <NavigationProperty Name="Clients" Relationship="gr671_kyaaModel.FK_Lead_Clients" FromRole="Lead" ToRole="Clients" />
|
|
|
+ <NavigationProperty Name="Products" Relationship="gr671_kyaaModel.FK_Lead_Products" FromRole="Lead" ToRole="Products" />
|
|
|
+ <NavigationProperty Name="Users" Relationship="gr671_kyaaModel.FK_Lead_Users" FromRole="Lead" ToRole="Users" />
|
|
|
+ <Property Name="IsCalled" Type="Boolean" Nullable="false" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Products">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idProduct" />
|
|
|
</Key>
|
|
|
<Property Name="idProduct" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <Property Name="ProductTitle" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
- <Property Name="ProductType" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
- <NavigationProperty Name="Lead" Relationship="Self.FK_Lead_Products" FromRole="Products" ToRole="Lead" />
|
|
|
- </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" />
|
|
|
+ <Property Name="ProductTitle" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="ProductType" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Lead" Relationship="gr671_kyaaModel.FK_Lead_Products" FromRole="Products" ToRole="Lead" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Users">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idUser" />
|
|
|
</Key>
|
|
|
<Property Name="idUser" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
- <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
- <Property Name="Surname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="Midname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="WorkingOp" Type="Double" Nullable="false" />
|
|
|
<Property Name="SkillSales" Type="Double" Nullable="false" />
|
|
|
<Property Name="SProduct" Type="Double" Nullable="false" />
|
|
|
- <NavigationProperty Name="Call" Relationship="Self.FK_Call_Users" FromRole="Users" ToRole="Call" />
|
|
|
+ <NavigationProperty Name="Call" Relationship="gr671_kyaaModel.FK_Call_Users" FromRole="Users" ToRole="Call" />
|
|
|
+ <NavigationProperty Name="Lead" Relationship="gr671_kyaaModel.FK_Lead_Users" FromRole="Users" ToRole="Lead" />
|
|
|
</EntityType>
|
|
|
<Association Name="FK_Call_Lead">
|
|
|
- <End Role="Lead" Type="Self.Lead" Multiplicity="0..1" />
|
|
|
- <End Role="Call" Type="Self.Call" Multiplicity="*" />
|
|
|
+ <End Type="gr671_kyaaModel.Lead" Role="Lead" Multiplicity="0..1" />
|
|
|
+ <End Type="gr671_kyaaModel.Call" Role="Call" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Lead">
|
|
|
<PropertyRef Name="idLead" />
|
|
@@ -221,8 +284,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Call_Users">
|
|
|
- <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
|
|
|
- <End Role="Call" Type="Self.Call" Multiplicity="*" />
|
|
|
+ <End Type="gr671_kyaaModel.Users" Role="Users" Multiplicity="0..1" />
|
|
|
+ <End Type="gr671_kyaaModel.Call" Role="Call" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Users">
|
|
|
<PropertyRef Name="idUser" />
|
|
@@ -233,8 +296,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Lead_Clients">
|
|
|
- <End Role="Clients" Type="Self.Clients" Multiplicity="1" />
|
|
|
- <End Role="Lead" Type="Self.Lead" Multiplicity="*" />
|
|
|
+ <End Type="gr671_kyaaModel.Clients" Role="Clients" Multiplicity="1" />
|
|
|
+ <End Type="gr671_kyaaModel.Lead" Role="Lead" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Clients">
|
|
|
<PropertyRef Name="idClient" />
|
|
@@ -245,8 +308,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Lead_Products">
|
|
|
- <End Role="Products" Type="Self.Products" Multiplicity="1" />
|
|
|
- <End Role="Lead" Type="Self.Lead" Multiplicity="*" />
|
|
|
+ <End Type="gr671_kyaaModel.Products" Role="Products" Multiplicity="1" />
|
|
|
+ <End Type="gr671_kyaaModel.Lead" Role="Lead" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Products">
|
|
|
<PropertyRef Name="idProduct" />
|
|
@@ -256,98 +319,91 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <EntityContainer Name="gr671_kyaaEntities" annotation:LazyLoadingEnabled="true">
|
|
|
- <EntitySet Name="Call" EntityType="Self.Call" />
|
|
|
- <EntitySet Name="Clients" EntityType="Self.Clients" />
|
|
|
- <EntitySet Name="Lead" EntityType="Self.Lead" />
|
|
|
- <EntitySet Name="Products" EntityType="Self.Products" />
|
|
|
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
|
|
|
- <EntitySet Name="Users" EntityType="Self.Users" />
|
|
|
- <AssociationSet Name="FK_Call_Lead" Association="Self.FK_Call_Lead">
|
|
|
- <End Role="Lead" EntitySet="Lead" />
|
|
|
- <End Role="Call" EntitySet="Call" />
|
|
|
- </AssociationSet>
|
|
|
- <AssociationSet Name="FK_Call_Users" Association="Self.FK_Call_Users">
|
|
|
- <End Role="Users" EntitySet="Users" />
|
|
|
- <End Role="Call" EntitySet="Call" />
|
|
|
- </AssociationSet>
|
|
|
- <AssociationSet Name="FK_Lead_Clients" Association="Self.FK_Lead_Clients">
|
|
|
- <End Role="Clients" EntitySet="Clients" />
|
|
|
- <End Role="Lead" EntitySet="Lead" />
|
|
|
- </AssociationSet>
|
|
|
- <AssociationSet Name="FK_Lead_Products" Association="Self.FK_Lead_Products">
|
|
|
- <End Role="Products" EntitySet="Products" />
|
|
|
- <End Role="Lead" EntitySet="Lead" />
|
|
|
- </AssociationSet>
|
|
|
- </EntityContainer>
|
|
|
+ <Association Name="FK_Lead_Users">
|
|
|
+ <End Type="gr671_kyaaModel.Users" Role="Users" Multiplicity="0..1" />
|
|
|
+ <End Type="gr671_kyaaModel.Lead" Role="Lead" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Users">
|
|
|
+ <PropertyRef Name="idUser" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Lead">
|
|
|
+ <PropertyRef Name="idUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
</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="Хранилище gr671_kyaaModelContainer" CdmEntityContainer="gr671_kyaaEntities">
|
|
|
+ <EntitySetMapping Name="auth">
|
|
|
+ <EntityTypeMapping TypeName="gr671_kyaaModel.auth">
|
|
|
+ <MappingFragment StoreEntitySet="auth">
|
|
|
+ <ScalarProperty Name="midname" ColumnName="midname" />
|
|
|
+ <ScalarProperty Name="name" ColumnName="name" />
|
|
|
+ <ScalarProperty Name="surname" ColumnName="surname" />
|
|
|
+ <ScalarProperty Name="pass" ColumnName="pass" />
|
|
|
+ <ScalarProperty Name="login" ColumnName="login" />
|
|
|
+ <ScalarProperty Name="id" ColumnName="id" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
<EntitySetMapping Name="Call">
|
|
|
<EntityTypeMapping TypeName="gr671_kyaaModel.Call">
|
|
|
<MappingFragment StoreEntitySet="Call">
|
|
|
- <ScalarProperty Name="idCall" ColumnName="idCall" />
|
|
|
- <ScalarProperty Name="CallDate" ColumnName="CallDate" />
|
|
|
- <ScalarProperty Name="LongCall" ColumnName="LongCall" />
|
|
|
- <ScalarProperty Name="idLead" ColumnName="idLead" />
|
|
|
+ <ScalarProperty Name="Comment" ColumnName="Comment" />
|
|
|
<ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
|
+ <ScalarProperty Name="idLead" ColumnName="idLead" />
|
|
|
+ <ScalarProperty Name="LongCall" ColumnName="LongCall" />
|
|
|
+ <ScalarProperty Name="CallDate" ColumnName="CallDate" />
|
|
|
+ <ScalarProperty Name="idCall" ColumnName="idCall" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Clients">
|
|
|
<EntityTypeMapping TypeName="gr671_kyaaModel.Clients">
|
|
|
<MappingFragment StoreEntitySet="Clients">
|
|
|
- <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
<ScalarProperty Name="PhoneNumbers" ColumnName="PhoneNumbers" />
|
|
|
+ <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Lead">
|
|
|
<EntityTypeMapping TypeName="gr671_kyaaModel.Lead">
|
|
|
<MappingFragment StoreEntitySet="Lead">
|
|
|
- <ScalarProperty Name="idLead" ColumnName="idLead" />
|
|
|
- <ScalarProperty Name="LeadStart" ColumnName="LeadStart" />
|
|
|
- <ScalarProperty Name="StatusLead" ColumnName="StatusLead" />
|
|
|
- <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
+ <ScalarProperty Name="IsCalled" ColumnName="IsCalled" />
|
|
|
+ <ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
|
+ <ScalarProperty Name="Comment" ColumnName="Comment" />
|
|
|
<ScalarProperty Name="idProduct" ColumnName="idProduct" />
|
|
|
+ <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
+ <ScalarProperty Name="StatusLead" ColumnName="StatusLead" />
|
|
|
+ <ScalarProperty Name="LeadStart" ColumnName="LeadStart" />
|
|
|
+ <ScalarProperty Name="idLead" ColumnName="idLead" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Products">
|
|
|
<EntityTypeMapping TypeName="gr671_kyaaModel.Products">
|
|
|
<MappingFragment StoreEntitySet="Products">
|
|
|
- <ScalarProperty Name="idProduct" ColumnName="idProduct" />
|
|
|
- <ScalarProperty Name="ProductTitle" ColumnName="ProductTitle" />
|
|
|
<ScalarProperty Name="ProductType" ColumnName="ProductType" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
- <EntitySetMapping Name="sysdiagrams">
|
|
|
- <EntityTypeMapping TypeName="gr671_kyaaModel.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" />
|
|
|
+ <ScalarProperty Name="ProductTitle" ColumnName="ProductTitle" />
|
|
|
+ <ScalarProperty Name="idProduct" ColumnName="idProduct" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Users">
|
|
|
<EntityTypeMapping TypeName="gr671_kyaaModel.Users">
|
|
|
<MappingFragment StoreEntitySet="Users">
|
|
|
- <ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
|
- <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
- <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
- <ScalarProperty Name="Surname" ColumnName="Surname" />
|
|
|
- <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
- <ScalarProperty Name="Midname" ColumnName="Midname" />
|
|
|
- <ScalarProperty Name="WorkingOp" ColumnName="WorkingOp" />
|
|
|
- <ScalarProperty Name="SkillSales" ColumnName="SkillSales" />
|
|
|
<ScalarProperty Name="SProduct" ColumnName="SProduct" />
|
|
|
+ <ScalarProperty Name="SkillSales" ColumnName="SkillSales" />
|
|
|
+ <ScalarProperty Name="WorkingOp" ColumnName="WorkingOp" />
|
|
|
+ <ScalarProperty Name="Midname" ColumnName="Midname" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Surname" ColumnName="Surname" />
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
+ <ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|