<?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:DataServices>
    <Schema Namespace="CandidateService" 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="Candidates" EntityType="CandidateService.Candidates"/>
        <ActionImport Name="createCandidate" Action="CandidateService.createCandidate"/>
      </EntityContainer>
      <EntityType Name="Candidates">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="userId" Type="Edm.Guid"/>
        <Property Name="candidateType" Type="Edm.String" MaxLength="50"/>
        <Property Name="fullName" Type="Edm.String" MaxLength="150"/>
        <Property Name="email" Type="Edm.String" MaxLength="100"/>
        <Property Name="phone" Type="Edm.String" MaxLength="30"/>
        <Property Name="country" Type="Edm.String" MaxLength="50"/>
        <Property Name="nationalId" Type="Edm.String" MaxLength="50"/>
        <Property Name="passportNo" Type="Edm.String" MaxLength="30"/>
        <Property Name="passportExpiry" Type="Edm.Date"/>
        <Property Name="category" Type="Edm.String" MaxLength="50"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="blockVisaID" Type="Edm.Guid"/>
      </EntityType>
      <ComplexType Name="return_CandidateService_createCandidate">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <Action Name="createCandidate" IsBound="false">
        <Parameter Name="candidateType" Type="Edm.String"/>
        <Parameter Name="fullName" Type="Edm.String"/>
        <Parameter Name="email" Type="Edm.String"/>
        <Parameter Name="phone" Type="Edm.String"/>
        <Parameter Name="country" Type="Edm.String"/>
        <Parameter Name="nationalId" Type="Edm.String"/>
        <Parameter Name="passportNo" Type="Edm.String"/>
        <Parameter Name="passportExpiry" Type="Edm.Date"/>
        <Parameter Name="category" Type="Edm.String"/>
        <Parameter Name="blockVisaID" Type="Edm.Guid"/>
        <ReturnType Type="CandidateService.return_CandidateService_createCandidate"/>
      </Action>
      <Annotations Target="CandidateService.Candidates/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>