<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="1.0"
	xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
	<edmx:DataServices m:DataServiceVersion="2.0"
		xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
		<Schema Namespace="EPM_DEVELOPER_SCENARIO_SRV" xml:lang="en"
			xmlns="http://schemas.microsoft.com/ado/2008/09/edm">

			<EntityType Name="Product" sap:content-version="1"
				xmlns:sap="http://www.sap.com/Protocols/SAPData">
				<Key>
					<PropertyRef Name="ProductId"/>
				</Key>
				<Property Name="ProductId" Type="Edm.String" Nullable="false"
					MaxLength="10" sap:label="Product ID" sap:creatable="false"
					sap:updatable="false"/>
				<Property Name="Category" Type="Edm.String" Nullable="false"
					MaxLength="40" sap:label="Product Category" sap:creatable="false"
					sap:updatable="false" sap:sortable="false"/>
				<Property Name="Name" Type="Edm.String" Nullable="false"
					MaxLength="255" sap:label="Name" sap:creatable="false"
					sap:updatable="false"/>
				<Property Name="ShortDescription" Type="Edm.String"
					Nullable="false" MaxLength="255" sap:label="ShortDescription"
					sap:creatable="false" sap:updatable="false" sap:sortable="false"/>
				<Property Name="SupplierName" Type="Edm.String" Nullable="false"
					MaxLength="80" sap:label="Company Name" sap:creatable="false"
					sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
				<Property Name="Weight" Type="Edm.Decimal" Nullable="false"
					Precision="13" Scale="3" sap:label="Weight" sap:creatable="false"
					sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
				<Property Name="WeightUnit" Type="Edm.String" Nullable="false"
					MaxLength="3" sap:label="Weight Unit" sap:creatable="false"
					sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
				<Property Name="Price" Type="Edm.Decimal" Nullable="false"
					Precision="23" Scale="4" sap:label="Price" sap:creatable="false"
					sap:updatable="false" sap:filterable="false"/>
				<Property Name="Status" Type="Edm.String" Nullable="false"
					sap:label="Status" sap:creatable="false"
					sap:updatable="false" sap:filterable="false"/>
				<Property Name="CurrencyCode" Type="Edm.String" Nullable="false"
					MaxLength="5" sap:label="Currency Code" sap:creatable="false"
					sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
				<Property Name="DimensionWidth" Type="Edm.Decimal"
					Nullable="false" Precision="13" Scale="3" sap:label="Dimension Width"
					sap:creatable="false" sap:updatable="false" sap:sortable="false"
					sap:filterable="false"/>
				<Property Name="DimensionDepth" Type="Edm.Decimal"
					Nullable="false" Precision="13" Scale="3" sap:label="Dimension Depth"
					sap:creatable="false" sap:updatable="false" sap:sortable="false"
					sap:filterable="false"/>
				<Property Name="DimensionHeight" Type="Edm.Decimal"
					Nullable="false" Precision="13" Scale="3" sap:label="Dimension Height"
					sap:creatable="false" sap:updatable="false" sap:sortable="false"
					sap:filterable="false"/>
				<Property Name="DimensionUnit" Type="Edm.String" Nullable="false"
					MaxLength="3" sap:label="Dimension Unit" sap:creatable="false"
					sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
				<Property Name="PictureUrl" Type="Edm.String" Nullable="false"
					MaxLength="255" sap:label="Product Image URL" sap:creatable="false"
					sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
				<NavigationProperty Name="ProductCategory" Relationship="EPM_DEVELOPER_SCENARIO_SRV.FK_ProductCategory_Product" FromRole="Product" ToRole="ProductCategory"/>

			</EntityType>

			<EntityType Name="ProductCategory" sap:content-version="1"
				xmlns:sap="http://www.sap.com/Protocols/SAPData">
				<Key>
					<PropertyRef Name="Category"/>
				</Key>
				<Property Name="Category" Type="Edm.String" Nullable="false"
					MaxLength="40" sap:creatable="false" sap:updatable="false"
					sap:sortable="false" sap:filterable="false"/>
				<Property Name="CategoryName" Type="Edm.String" Nullable="false"
					sap:creatable="false" sap:updatable="false" sap:sortable="false"
					sap:filterable="false"/>
				<Property Name="NumberOfProducts" Type="Edm.Int32"
					Nullable="false" sap:creatable="false" sap:updatable="false"
					sap:sortable="false" sap:filterable="false"/>
				<NavigationProperty Name="Products" Relationship="EPM_DEVELOPER_SCENARIO_SRV.FK_ProductCategory_Product" FromRole="ProductCategory" ToRole="Product"/>
			</EntityType>

			<EntityType Name="FeaturedProduct" sap:content-version="1"
				xmlns:sap="http://www.sap.com/Protocols/SAPData">
				<Key>
					<PropertyRef Name="ProductId"/>
				</Key>
				<Property Name="Type" Type="Edm.String" Nullable="false"
					MaxLength="255" sap:label="Featured Type"/>
				<NavigationProperty Name="Product" Relationship="EPM_DEVELOPER_SCENARIO_SRV.FK_FeaturedProduct_Product" FromRole="FeaturedProduct" ToRole="Product"/>
			</EntityType>


			<Association Name="FK_ProductCategory_Product">
				<End Role="Product" Type="EPM_DEVELOPER_SCENARIO_SRV.Product" Multiplicity="*"/>
				<End Role="ProductCategory" Type="EPM_DEVELOPER_SCENARIO_SRV.ProductCategory" Multiplicity="1"/>
				<ReferentialConstraint>
					<Principal Role="Product">
						<PropertyRef Name="Category"/>
					</Principal>
					<Dependent Role="ProductCategory">
						<PropertyRef Name="Category"/>
					</Dependent>
				</ReferentialConstraint>
			</Association>

			<Association Name="FK_FeaturedProduct_Product">
				<End Role="Product" Type="EPM_DEVELOPER_SCENARIO_SRV.Product" Multiplicity="1"/>
				<End Role="FeaturedProduct" Type="EPM_DEVELOPER_SCENARIO_SRV.FeaturedProduct" Multiplicity="1"/>
				<ReferentialConstraint>
					<Principal Role="Product">
						<PropertyRef Name="ProductId"/>
					</Principal>
					<Dependent Role="FeaturedProduct">
						<PropertyRef Name="ProductId"/>
					</Dependent>
				</ReferentialConstraint>
			</Association>

			<EntityContainer Name="EPM_DEVELOPER_SCENARIO_SRV"
				m:IsDefaultEntityContainer="true">
				<EntitySet Name="Products" EntityType="EPM_DEVELOPER_SCENARIO_SRV.Product"
					sap:creatable="false" sap:updatable="false" sap:deletable="false"
					sap:pageable="false" sap:content-version="1"
					xmlns:sap="http://www.sap.com/Protocols/SAPData"/>
				<EntitySet Name="ProductCategories"
					EntityType="EPM_DEVELOPER_SCENARIO_SRV.ProductCategory"
					sap:creatable="false" sap:updatable="false" sap:deletable="false"
					sap:pageable="false" sap:content-version="1"
					xmlns:sap="http://www.sap.com/Protocols/SAPData"/>
				<EntitySet Name="FeaturedProducts" EntityType="EPM_DEVELOPER_SCENARIO_SRV.FeaturedProduct"
					sap:content-version="1"
					xmlns:sap="http://www.sap.com/Protocols/SAPData"/>
				<AssociationSet Name="EPM_DEVELOPER_SCENARIO_SRV.FK_ProductCategory_Product"
					Association="EPM_DEVELOPER_SCENARIO_SRV.FK_ProductCategory_Product">
					<End Role="Product" EntitySet="Products"/>
					<End Role="ProductCategory" EntitySet="ProductCategories"/>
				</AssociationSet>
				<AssociationSet Name="EPM_DEVELOPER_SCENARIO_SRV.FK_FeaturedProduct_Product"
					Association="EPM_DEVELOPER_SCENARIO_SRV.FK_FeaturedProduct_Product">
					<End Role="Product" EntitySet="Products"/>
					<End Role="FeaturedProduct" EntitySet="FeaturedProducts"/>
				</AssociationSet>
			</EntityContainer>
		</Schema>
	</edmx:DataServices>
</edmx:Edmx>