<?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="ScopeService" 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="ScopeDefinitions" EntityType="ScopeService.ScopeDefinitions"/>
        <ActionImport Name="saveScopeDefinition" Action="ScopeService.saveScopeDefinition"/>
        <ActionImport Name="deleteScopeDefinition" Action="ScopeService.deleteScopeDefinition"/>
      </EntityContainer>
      <EntityType Name="ScopeDefinitions">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="modifiedBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="modules" Type="Edm.String"/>
        <Property Name="countries" Type="Edm.String"/>
        <Property Name="legalEntities" Type="Edm.Int32"/>
        <Property Name="status" Type="Edm.String" MaxLength="20" DefaultValue="Draft"/>
        <Property Name="expensePolicies" Type="Edm.Int32"/>
        <Property Name="expenseTypes" Type="Edm.Int32"/>
        <Property Name="expenseTypesBasis" Type="Edm.String" MaxLength="50"/>
        <Property Name="expenseAuditRules" Type="Edm.Int32"/>
        <Property Name="expenseAuditRulesBasis" Type="Edm.String" MaxLength="50"/>
        <Property Name="expenseCreditCardPrograms" Type="Edm.Int32"/>
        <Property Name="expenseTaxConfiguration" Type="Edm.String" MaxLength="50"/>
        <Property Name="expenseWorkflows" Type="Edm.Int32"/>
        <Property Name="expenseWorkflowAssumptions" Type="Edm.String"/>
        <Property Name="expenseTravelAllowance" Type="Edm.Int32"/>
        <Property Name="expenseTravelAllowanceBasis" Type="Edm.String" MaxLength="50"/>
        <Property Name="requestPolicies" Type="Edm.Int32"/>
        <Property Name="requestSegments" Type="Edm.Int32"/>
        <Property Name="requestSegmentsBasis" Type="Edm.String" MaxLength="50"/>
        <Property Name="requestAuditRules" Type="Edm.Int32"/>
        <Property Name="requestAuditRulesBasis" Type="Edm.String" MaxLength="50"/>
        <Property Name="requestWorkflows" Type="Edm.Int32"/>
        <Property Name="requestWorkflowAssumptions" Type="Edm.String"/>
        <Property Name="scopeData" Type="Edm.String"/>
      </EntityType>
      <ComplexType Name="SaveScopeResult">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="ID" Type="Edm.Guid"/>
        <Property Name="status" Type="Edm.String"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <Action Name="saveScopeDefinition" IsBound="false">
        <Parameter Name="ID" Type="Edm.Guid"/>
        <Parameter Name="modules" Type="Edm.String"/>
        <Parameter Name="countries" Type="Edm.String"/>
        <Parameter Name="legalEntities" Type="Edm.Int32"/>
        <Parameter Name="expensePolicies" Type="Edm.Int32"/>
        <Parameter Name="expenseTypes" Type="Edm.Int32"/>
        <Parameter Name="expenseTypesBasis" Type="Edm.String"/>
        <Parameter Name="expenseAuditRules" Type="Edm.Int32"/>
        <Parameter Name="expenseAuditRulesBasis" Type="Edm.String"/>
        <Parameter Name="expenseCreditCardPrograms" Type="Edm.Int32"/>
        <Parameter Name="expenseTaxConfiguration" Type="Edm.String"/>
        <Parameter Name="expenseWorkflows" Type="Edm.Int32"/>
        <Parameter Name="expenseWorkflowAssumptions" Type="Edm.String"/>
        <Parameter Name="expenseTravelAllowance" Type="Edm.Int32"/>
        <Parameter Name="expenseTravelAllowanceBasis" Type="Edm.String"/>
        <Parameter Name="requestPolicies" Type="Edm.Int32"/>
        <Parameter Name="requestSegments" Type="Edm.Int32"/>
        <Parameter Name="requestSegmentsBasis" Type="Edm.String"/>
        <Parameter Name="requestAuditRules" Type="Edm.Int32"/>
        <Parameter Name="requestAuditRulesBasis" Type="Edm.String"/>
        <Parameter Name="requestWorkflows" Type="Edm.Int32"/>
        <Parameter Name="requestWorkflowAssumptions" Type="Edm.String"/>
        <Parameter Name="scopeData" Type="Edm.String"/>
        <Parameter Name="status" Type="Edm.String"/>
        <ReturnType Type="ScopeService.SaveScopeResult"/>
      </Action>
      <Action Name="deleteScopeDefinition" IsBound="false">
        <Parameter Name="ID" Type="Edm.Guid"/>
        <ReturnType Type="ScopeService.SaveScopeResult"/>
      </Action>
      <Annotations Target="ScopeService.ScopeDefinitions/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="ScopeService.ScopeDefinitions/createdAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Created On"/>
      </Annotations>
      <Annotations Target="ScopeService.ScopeDefinitions/createdBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Created By"/>
      </Annotations>
      <Annotations Target="ScopeService.ScopeDefinitions/modifiedAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Changed On"/>
      </Annotations>
      <Annotations Target="ScopeService.ScopeDefinitions/modifiedBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Changed By"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>