<?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="LoginService" 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">
        <FunctionImport Name="login" Function="LoginService.login"/>
        <FunctionImport Name="createUser" Function="LoginService.createUser"/>
      </EntityContainer>
      <ComplexType Name="return_LoginService_login">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="token" Type="Edm.String"/>
        <Property Name="user" Type="LoginService.return_LoginService_login_user"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_LoginService_login_user">
        <Property Name="ID" Type="Edm.Guid"/>
        <Property Name="name" Type="Edm.String"/>
        <Property Name="role" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_LoginService_createUser">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="user" Type="LoginService.return_LoginService_createUser_user"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_LoginService_createUser_user">
        <Property Name="ID" Type="Edm.Guid"/>
        <Property Name="name" Type="Edm.String"/>
        <Property Name="role" Type="Edm.String"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </ComplexType>
      <ComplexType Name="ap_LoginService_createUser_userData">
        <Property Name="name" Type="Edm.String"/>
        <Property Name="password" Type="Edm.String"/>
        <Property Name="role" Type="Edm.String"/>
      </ComplexType>
      <Function Name="login" IsBound="false" IsComposable="false">
        <Parameter Name="username" Type="Edm.String"/>
        <Parameter Name="password" Type="Edm.String"/>
        <ReturnType Type="LoginService.return_LoginService_login"/>
      </Function>
      <Function Name="createUser" IsBound="false" IsComposable="false">
        <Parameter Name="userData" Type="LoginService.ap_LoginService_createUser_userData"/>
        <ReturnType Type="LoginService.return_LoginService_createUser"/>
      </Function>
      <Annotations Target="LoginService.login(Edm.String,Edm.String)/username">
        <Annotation Term="Core.OptionalParameter">
          <Record Type="Core.OptionalParameterType"/>
        </Annotation>
      </Annotations>
      <Annotations Target="LoginService.login(Edm.String,Edm.String)/password">
        <Annotation Term="Core.OptionalParameter">
          <Record Type="Core.OptionalParameterType"/>
        </Annotation>
      </Annotations>
      <Annotations Target="LoginService.createUser(LoginService.ap_LoginService_createUser_userData)/userData">
        <Annotation Term="Core.OptionalParameter">
          <Record Type="Core.OptionalParameterType"/>
        </Annotation>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>