<?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="login" Action="LoginService.login"/>
        <ActionImport Name="validateToken" Action="LoginService.validateToken"/>
        <ActionImport Name="logout" Action="LoginService.logout"/>
      </EntityContainer>
      <ComplexType Name="LoginUser">
        <Property Name="ID" Type="Edm.Guid"/>
        <Property Name="username" Type="Edm.String"/>
        <Property Name="email" Type="Edm.String"/>
        <Property Name="role" Type="Edm.String"/>
        <Property Name="firstName" Type="Edm.String"/>
        <Property Name="lastName" Type="Edm.String"/>
        <Property Name="language" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="LoginResult">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="user" Type="LoginService.LoginUser"/>
        <Property Name="token" Type="Edm.String"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_LoginService_validateToken">
        <Property Name="valid" Type="Edm.Boolean"/>
        <Property Name="user" Type="LoginService.LoginUser"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_LoginService_logout">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <Action Name="login" IsBound="false">
        <Parameter Name="username" Type="Edm.String"/>
        <Parameter Name="password" Type="Edm.String"/>
        <ReturnType Type="LoginService.LoginResult"/>
      </Action>
      <Action Name="validateToken" IsBound="false">
        <ReturnType Type="LoginService.return_LoginService_validateToken"/>
      </Action>
      <Action Name="logout" IsBound="false">
        <ReturnType Type="LoginService.return_LoginService_logout"/>
      </Action>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>