<?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="QiwaService" 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="Cases" EntityType="QiwaService.Cases"/>
        <EntitySet Name="Activities" EntityType="QiwaService.Activities">
          <NavigationPropertyBinding Path="qiwaCase" Target="Cases"/>
        </EntitySet>
        <EntitySet Name="Queue" EntityType="QiwaService.Queue"/>
        <ActionImport Name="submitStep" Action="QiwaService.submitStep"/>
      </EntityContainer>
      <EntityType Name="Cases">
        <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"/>
        <Property Name="applicationId" Type="Edm.String" MaxLength="50"/>
        <Property Name="scenario" Type="Edm.String" MaxLength="100"/>
        <Property Name="employeeId" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeName" Type="Edm.String" MaxLength="255"/>
        <Property Name="email" Type="Edm.String" MaxLength="200"/>
        <Property Name="mobile" Type="Edm.String" MaxLength="50"/>
        <Property Name="nationality" Type="Edm.String" MaxLength="100"/>
        <Property Name="department" Type="Edm.String" MaxLength="150"/>
        <Property Name="employeeType" Type="Edm.String" MaxLength="100"/>
        <Property Name="candidateId" Type="Edm.String" MaxLength="100"/>
        <Property Name="sapId" Type="Edm.String" MaxLength="100"/>
        <Property Name="currentStage" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentOwner" Type="Edm.String" MaxLength="150"/>
        <Property Name="status" Type="Edm.String" MaxLength="50"/>
        <Property Name="currentStep" Type="Edm.Int32"/>
        <Property Name="createdOn" Type="Edm.Date"/>
        <Property Name="iqamaProfession" Type="Edm.String" MaxLength="200"/>
        <Property Name="iqamaIssueDate" Type="Edm.Date"/>
        <Property Name="iqamaExpiryDate" Type="Edm.Date"/>
        <Property Name="bankIban" Type="Edm.String" MaxLength="50"/>
        <Property Name="bankKey" Type="Edm.String" MaxLength="50"/>
        <Property Name="nationalAddress" Type="Edm.String" MaxLength="500"/>
        <Property Name="salaryDetails" Type="Edm.String" MaxLength="500"/>
        <Property Name="contractualDetails" Type="Edm.String" MaxLength="500"/>
        <Property Name="education" Type="Edm.String" MaxLength="200"/>
        <Property Name="nationalId" Type="Edm.String" MaxLength="100"/>
        <Property Name="hireDate" Type="Edm.Date"/>
        <Property Name="medicalClass" Type="Edm.String" MaxLength="100"/>
        <Property Name="qiwaValidationStatus" Type="Edm.String" MaxLength="50"/>
        <Property Name="qiwaAdminComments" Type="Edm.String"/>
        <Property Name="contractNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="qiwaRequestDate" Type="Edm.Date"/>
        <Property Name="contractStatus" Type="Edm.String" MaxLength="50"/>
        <Property Name="hrInitiationComments" Type="Edm.String"/>
        <Property Name="acceptanceDate" Type="Edm.Date"/>
        <Property Name="acceptanceStatus" Type="Edm.String" MaxLength="50"/>
        <Property Name="sponsorName" Type="Edm.String" MaxLength="200"/>
        <Property Name="acceptanceAttachmentFile" Type="Edm.String" MaxLength="500"/>
        <Property Name="acceptanceComments" Type="Edm.String"/>
      </EntityType>
      <EntityType Name="Activities">
        <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="qiwaCase" Type="QiwaService.Cases">
          <ReferentialConstraint Property="qiwaCase_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="qiwaCase_ID" Type="Edm.Guid"/>
        <Property Name="description" Type="Edm.String" MaxLength="255"/>
        <Property Name="performedBy" Type="Edm.String" MaxLength="100"/>
        <Property Name="performedAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </EntityType>
      <EntityType Name="Queue">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="caseNo" Type="Edm.String" MaxLength="50"/>
        <Property Name="scenario" Type="Edm.String" MaxLength="100"/>
        <Property Name="employeeId" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeName" Type="Edm.String" MaxLength="255"/>
        <Property Name="email" Type="Edm.String" MaxLength="200"/>
        <Property Name="nationality" Type="Edm.String" MaxLength="100"/>
        <Property Name="department" Type="Edm.String" MaxLength="150"/>
        <Property Name="employeeType" Type="Edm.String" MaxLength="100"/>
        <Property Name="currentStage" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentOwner" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentStep" Type="Edm.Int32"/>
        <Property Name="status" Type="Edm.String" MaxLength="50"/>
        <Property Name="createdOn" Type="Edm.Date"/>
        <Property Name="contractNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="contractStatus" Type="Edm.String" MaxLength="50"/>
        <Property Name="acceptanceStatus" Type="Edm.String" MaxLength="50"/>
      </EntityType>
      <ComplexType Name="QiwaResult">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="caseId" Type="Edm.Guid"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="nextStep" Type="Edm.Int32"/>
      </ComplexType>
      <Action Name="submitStep" IsBound="false">
        <Parameter Name="caseId" Type="Edm.Guid"/>
        <Parameter Name="step" Type="Edm.Int32"/>
        <Parameter Name="outcome" Type="Edm.String"/>
        <Parameter Name="payload" Type="Edm.String"/>
        <Parameter Name="performedBy" Type="Edm.String"/>
        <ReturnType Type="QiwaService.QiwaResult"/>
      </Action>
      <Annotations Target="QiwaService.Cases/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="QiwaService.Cases/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="QiwaService.Cases/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="QiwaService.Cases/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="QiwaService.Cases/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="QiwaService.Activities/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="QiwaService.Activities/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="QiwaService.Activities/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="QiwaService.Activities/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="QiwaService.Activities/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="QiwaService.EntityContainer/Queue">
        <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="QiwaService.Queue/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>