<?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">
        <ActionImport Name="userLogin" Action="LoginService.userLogin"/>
        <ActionImport Name="adminLogin" Action="LoginService.adminLogin"/>
        <ActionImport Name="createUser" Action="LoginService.createUser"/>
        <ActionImport Name="fetchAllUsers" Action="LoginService.fetchAllUsers"/>
      </EntityContainer>
      <ComplexType Name="return_LoginService_userLogin">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="role" Type="Edm.String"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="userId" Type="Edm.Guid"/>
      </ComplexType>
      <ComplexType Name="return_LoginService_adminLogin">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="role" Type="Edm.String"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_LoginService_createUser">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_LoginService_fetchAllUsers">
        <Property Name="ID" Type="Edm.Guid"/>
        <Property Name="name" Type="Edm.String" MaxLength="100"/>
        <Property Name="role" Type="Edm.String" MaxLength="20"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </ComplexType>
      <Action Name="userLogin" IsBound="false">
        <Parameter Name="username" Type="Edm.String"/>
        <Parameter Name="password" Type="Edm.String"/>
        <ReturnType Type="LoginService.return_LoginService_userLogin"/>
      </Action>
      <Action Name="adminLogin" IsBound="false">
        <Parameter Name="username" Type="Edm.String"/>
        <Parameter Name="password" Type="Edm.String"/>
        <ReturnType Type="LoginService.return_LoginService_adminLogin"/>
      </Action>
      <Action Name="createUser" IsBound="false">
        <Parameter Name="name" Type="Edm.String"/>
        <Parameter Name="password" Type="Edm.String"/>
        <Parameter Name="role" Type="Edm.String"/>
        <ReturnType Type="LoginService.return_LoginService_createUser"/>
      </Action>
      <Action Name="fetchAllUsers" IsBound="false">
        <ReturnType Type="Collection(LoginService.return_LoginService_fetchAllUsers)" Nullable="true"/>
      </Action>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>