<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
  <edmx:Reference Uri="https://sap.github.io/odata-vocabularies/vocabularies/Common.xml">
    <edmx:Include Alias="Common" Namespace="com.sap.vocabularies.Common.v1"/>
  </edmx:Reference>
  <edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml">
    <edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
  </edmx:Reference>
  <edmx:Reference Uri="https://sap.github.io/odata-vocabularies/vocabularies/UI.xml">
    <edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
  </edmx:Reference>
  <edmx:DataServices>
    <Schema Namespace="PurchaseService" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <Annotation Term="Core.Links">
        <Collection>
          <Record>
            <PropertyValue Property="rel" String="author"/>
            <PropertyValue Property="href" String="https://cap.cloud.sap"/>
          </Record>
        </Collection>
      </Annotation>
      <EntityContainer Name="EntityContainer">
        <EntitySet Name="PurchaseOrders" EntityType="PurchaseService.PurchaseOrders"/>
      </EntityContainer>
      <EntityType Name="PurchaseOrders">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="orderNumber" Type="Edm.String" MaxLength="20"/>
        <Property Name="supplier" Type="Edm.String" MaxLength="100"/>
        <Property Name="amount" Type="Edm.Decimal" Precision="15" Scale="2"/>
        <Property Name="status" Type="Edm.String" MaxLength="20"/>
        <Property Name="orderDate" Type="Edm.Date"/>
      </EntityType>
      <Annotations Target="PurchaseService.PurchaseOrders">
        <Annotation Term="UI.FieldGroup" Qualifier="GeneratedGroup">
          <Record Type="UI.FieldGroupType">
            <PropertyValue Property="Data">
              <Collection>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Label" String="orderNumber"/>
                  <PropertyValue Property="Value" Path="orderNumber"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Label" String="supplier"/>
                  <PropertyValue Property="Value" Path="supplier"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Label" String="amount"/>
                  <PropertyValue Property="Value" Path="amount"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Label" String="status"/>
                  <PropertyValue Property="Value" Path="status"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Label" String="orderDate"/>
                  <PropertyValue Property="Value" Path="orderDate"/>
                </Record>
              </Collection>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="UI.Facets">
          <Collection>
            <Record Type="UI.ReferenceFacet">
              <PropertyValue Property="ID" String="GeneratedFacet1"/>
              <PropertyValue Property="Label" String="General Information"/>
              <PropertyValue Property="Target" AnnotationPath="@UI.FieldGroup#GeneratedGroup"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="UI.LineItem">
          <Collection>
            <Record Type="UI.DataField">
              <PropertyValue Property="Label" String="orderNumber"/>
              <PropertyValue Property="Value" Path="orderNumber"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Label" String="supplier"/>
              <PropertyValue Property="Value" Path="supplier"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Label" String="amount"/>
              <PropertyValue Property="Value" Path="amount"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Label" String="status"/>
              <PropertyValue Property="Value" Path="status"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Label" String="orderDate"/>
              <PropertyValue Property="Value" Path="orderDate"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations>
      <Annotations Target="PurchaseService.PurchaseOrders/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>