<?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://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml">
    <edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/>
  </edmx:Reference>
  <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="HiringProcessService" 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="Requests" EntityType="HiringProcessService.Requests">
          <NavigationPropertyBinding Path="tasks" Target="Tasks"/>
        </EntitySet>
        <EntitySet Name="Tasks" EntityType="HiringProcessService.Tasks">
          <NavigationPropertyBinding Path="hiringRequest" Target="Requests"/>
        </EntitySet>
        <ActionImport Name="refresh" Action="HiringProcessService.refresh"/>
      </EntityContainer>
      <EntityType Name="Requests">
        <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="caseNo" Type="Edm.String" MaxLength="50" Nullable="false"/>
        <Property Name="applicationId" Type="Edm.String" MaxLength="50" Nullable="false"/>
        <Property Name="processType" Type="Edm.String" MaxLength="80" Nullable="false"/>
        <Property Name="employeeId" Type="Edm.String" MaxLength="50" Nullable="false"/>
        <Property Name="employeeName" Type="Edm.String" MaxLength="255"/>
        <Property Name="status" Type="Edm.String" MaxLength="50" DefaultValue="In Progress"/>
        <Property Name="currentStage" Type="Edm.String" MaxLength="150" DefaultValue="Hiring Process Initiated"/>
        <Property Name="totalTasks" Type="Edm.Int32" DefaultValue="0"/>
        <Property Name="completedTasks" Type="Edm.Int32" DefaultValue="0"/>
        <Property Name="requestPayload" Type="Edm.String"/>
        <Property Name="completionNotes" Type="Edm.String"/>
        <Property Name="completedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <NavigationProperty Name="tasks" Type="Collection(HiringProcessService.Tasks)" Partner="hiringRequest">
          <OnDelete Action="Cascade"/>
        </NavigationProperty>
      </EntityType>
      <EntityType Name="Tasks">
        <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"/>
        <NavigationProperty Name="hiringRequest" Type="HiringProcessService.Requests" Nullable="false" Partner="tasks">
          <ReferentialConstraint Property="hiringRequest_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="hiringRequest_ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="taskType" Type="Edm.String" MaxLength="80" Nullable="false"/>
        <Property Name="taskName" Type="Edm.String" MaxLength="150" Nullable="false"/>
        <Property Name="sequence" Type="Edm.Int32"/>
        <Property Name="status" Type="Edm.String" MaxLength="50" DefaultValue="Blocked"/>
        <Property Name="currentStage" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentOwner" Type="Edm.String" MaxLength="150"/>
        <Property Name="dependency" Type="Edm.String" MaxLength="500"/>
        <Property Name="targetEntity" Type="Edm.String" MaxLength="150"/>
        <Property Name="childCaseId" Type="Edm.Guid"/>
        <Property Name="childCaseNo" Type="Edm.String" MaxLength="50"/>
        <Property Name="route" Type="Edm.String" MaxLength="200"/>
        <Property Name="startedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="completedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="comments" Type="Edm.String"/>
      </EntityType>
      <ComplexType Name="HiringRefreshResult">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <Action Name="refresh" IsBound="false">
        <Parameter Name="requestId" Type="Edm.Guid"/>
        <ReturnType Type="HiringProcessService.HiringRefreshResult"/>
      </Action>
      <Annotations Target="HiringProcessService.EntityContainer/Requests">
        <Annotation Term="Capabilities.DeleteRestrictions">
          <Record Type="Capabilities.DeleteRestrictionsType">
            <PropertyValue Property="Deletable" Bool="false"/>
          </Record>
        </Annotation>
        <Annotation Term="Capabilities.InsertRestrictions">
          <Record Type="Capabilities.InsertRestrictionsType">
            <PropertyValue Property="Insertable" Bool="false"/>
          </Record>
        </Annotation>
        <Annotation Term="Capabilities.UpdateRestrictions">
          <Record Type="Capabilities.UpdateRestrictionsType">
            <PropertyValue Property="Updatable" Bool="false"/>
          </Record>
        </Annotation>
      </Annotations>
      <Annotations Target="HiringProcessService.Requests/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="HiringProcessService.Requests/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="HiringProcessService.Requests/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="HiringProcessService.Requests/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="HiringProcessService.Requests/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>
      <Annotations Target="HiringProcessService.EntityContainer/Tasks">
        <Annotation Term="Capabilities.DeleteRestrictions">
          <Record Type="Capabilities.DeleteRestrictionsType">
            <PropertyValue Property="Deletable" Bool="false"/>
          </Record>
        </Annotation>
        <Annotation Term="Capabilities.InsertRestrictions">
          <Record Type="Capabilities.InsertRestrictionsType">
            <PropertyValue Property="Insertable" Bool="false"/>
          </Record>
        </Annotation>
        <Annotation Term="Capabilities.UpdateRestrictions">
          <Record Type="Capabilities.UpdateRestrictionsType">
            <PropertyValue Property="Updatable" Bool="false"/>
          </Record>
        </Annotation>
      </Annotations>
      <Annotations Target="HiringProcessService.Tasks/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="HiringProcessService.Tasks/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="HiringProcessService.Tasks/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="HiringProcessService.Tasks/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="HiringProcessService.Tasks/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>