<?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="UserService" 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="Users" EntityType="UserService.Users"/>
        <ActionImport Name="createUser" Action="UserService.createUser"/>
        <ActionImport Name="updateUser" Action="UserService.updateUser"/>
        <ActionImport Name="deleteUser" Action="UserService.deleteUser"/>
      </EntityContainer>
      <EntityType Name="Users">
        <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="username" Type="Edm.String" MaxLength="200"/>
        <Property Name="email" Type="Edm.String" MaxLength="200"/>
        <Property Name="firstName" Type="Edm.String" MaxLength="100"/>
        <Property Name="lastName" Type="Edm.String" MaxLength="100"/>
        <Property Name="phone" Type="Edm.String" MaxLength="50"/>
        <Property Name="role" Type="Edm.String" MaxLength="100"/>
        <Property Name="userType" Type="Edm.String" MaxLength="20"/>
        <Property Name="isActive" Type="Edm.Boolean" DefaultValue="true"/>
        <Property Name="mustChangePassword" Type="Edm.Boolean" DefaultValue="true"/>
        <Property Name="language" Type="Edm.String" MaxLength="10" DefaultValue="en"/>
        <Property Name="lastLoginAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </EntityType>
      <ComplexType Name="CreateUserResult">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="ID" Type="Edm.Guid"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <Action Name="createUser" IsBound="false">
        <Parameter Name="firstName" Type="Edm.String"/>
        <Parameter Name="lastName" Type="Edm.String"/>
        <Parameter Name="email" Type="Edm.String"/>
        <Parameter Name="phone" Type="Edm.String"/>
        <Parameter Name="role" Type="Edm.String"/>
        <Parameter Name="userType" Type="Edm.String"/>
        <ReturnType Type="UserService.CreateUserResult"/>
      </Action>
      <Action Name="updateUser" IsBound="false">
        <Parameter Name="ID" Type="Edm.Guid"/>
        <Parameter Name="firstName" Type="Edm.String"/>
        <Parameter Name="lastName" Type="Edm.String"/>
        <Parameter Name="email" Type="Edm.String"/>
        <Parameter Name="phone" Type="Edm.String"/>
        <Parameter Name="role" Type="Edm.String"/>
        <Parameter Name="userType" Type="Edm.String"/>
        <ReturnType Type="UserService.CreateUserResult"/>
      </Action>
      <Action Name="deleteUser" IsBound="false">
        <Parameter Name="ID" Type="Edm.Guid"/>
        <ReturnType Type="UserService.CreateUserResult"/>
      </Action>
      <Annotations Target="UserService.EntityContainer/Users">
        <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="UserService.Users/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="UserService.Users/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="UserService.Users/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="UserService.Users/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="UserService.Users/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>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>