<?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:Reference Uri="https://sap.github.io/odata-vocabularies/vocabularies/UI.xml">
    <edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
  </edmx:Reference>
  <edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.xml">
    <edmx:Include Alias="Validation" Namespace="Org.OData.Validation.V1"/>
  </edmx:Reference>
  <edmx:DataServices>
    <Schema Namespace="MaintenanceService" 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="FunctionalLocations" EntityType="MaintenanceService.FunctionalLocations">
          <NavigationPropertyBinding Path="equipments" Target="Equipments"/>
        </EntitySet>
        <EntitySet Name="Equipments" EntityType="MaintenanceService.Equipments">
          <NavigationPropertyBinding Path="functionalLocation" Target="FunctionalLocations"/>
          <NavigationPropertyBinding Path="sensorReadings" Target="SensorReadings"/>
          <NavigationPropertyBinding Path="notifications" Target="MaintenanceNotifications"/>
        </EntitySet>
        <EntitySet Name="SensorReadings" EntityType="MaintenanceService.SensorReadings">
          <NavigationPropertyBinding Path="equipment" Target="Equipments"/>
        </EntitySet>
        <EntitySet Name="MaintenanceNotifications" EntityType="MaintenanceService.MaintenanceNotifications">
          <NavigationPropertyBinding Path="equipment" Target="Equipments"/>
          <NavigationPropertyBinding Path="orders" Target="MaintenanceOrders"/>
          <NavigationPropertyBinding Path="workflowTasks" Target="WorkflowTasks"/>
          <NavigationPropertyBinding Path="recommendations" Target="Recommendations"/>
        </EntitySet>
        <EntitySet Name="MaintenanceOrders" EntityType="MaintenanceService.MaintenanceOrders">
          <NavigationPropertyBinding Path="notification" Target="MaintenanceNotifications"/>
        </EntitySet>
        <EntitySet Name="WorkflowTasks" EntityType="MaintenanceService.WorkflowTasks">
          <NavigationPropertyBinding Path="notification" Target="MaintenanceNotifications"/>
        </EntitySet>
        <EntitySet Name="Recommendations" EntityType="MaintenanceService.Recommendations">
          <NavigationPropertyBinding Path="notification" Target="MaintenanceNotifications"/>
        </EntitySet>
        <EntitySet Name="IntegrationEvents" EntityType="MaintenanceService.IntegrationEvents"/>
        <EntitySet Name="AiRequests" EntityType="MaintenanceService.AiRequests"/>
        <ActionImport Name="classifyNotification" Action="MaintenanceService.classifyNotification" EntitySet="MaintenanceNotifications"/>
        <ActionImport Name="generateMaintenanceRecommendation" Action="MaintenanceService.generateMaintenanceRecommendation" EntitySet="Recommendations"/>
        <ActionImport Name="createMaintenanceOrder" Action="MaintenanceService.createMaintenanceOrder" EntitySet="MaintenanceOrders"/>
        <ActionImport Name="markHumanReviewed" Action="MaintenanceService.markHumanReviewed" EntitySet="Recommendations"/>
        <ActionImport Name="retryIntegrationEvent" Action="MaintenanceService.retryIntegrationEvent" EntitySet="IntegrationEvents"/>
        <ActionImport Name="getEquipmentHealthSummary" Action="MaintenanceService.getEquipmentHealthSummary"/>
        <ActionImport Name="resetDemoData" Action="MaintenanceService.resetDemoData"/>
      </EntityContainer>
      <EntityType Name="FunctionalLocations">
        <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="locationCode" Type="Edm.String" MaxLength="40"/>
        <Property Name="name" Type="Edm.String" MaxLength="120"/>
        <Property Name="plant" Type="Edm.String" MaxLength="40"/>
        <Property Name="area" Type="Edm.String" MaxLength="80"/>
        <NavigationProperty Name="equipments" Type="Collection(MaintenanceService.Equipments)" Partner="functionalLocation"/>
      </EntityType>
      <EntityType Name="Equipments">
        <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="equipmentNo" Type="Edm.String" MaxLength="40"/>
        <Property Name="name" Type="Edm.String" MaxLength="120"/>
        <Property Name="equipmentType" Type="Edm.String" MaxLength="60"/>
        <Property Name="criticality" Type="Edm.String" MaxLength="20"/>
        <Property Name="status" Type="Edm.String" MaxLength="30"/>
        <NavigationProperty Name="functionalLocation" Type="MaintenanceService.FunctionalLocations" Partner="equipments">
          <ReferentialConstraint Property="functionalLocation_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="functionalLocation_ID" Type="Edm.Guid"/>
        <NavigationProperty Name="sensorReadings" Type="Collection(MaintenanceService.SensorReadings)" Partner="equipment">
          <OnDelete Action="Cascade"/>
        </NavigationProperty>
        <NavigationProperty Name="notifications" Type="Collection(MaintenanceService.MaintenanceNotifications)" Partner="equipment"/>
      </EntityType>
      <EntityType Name="SensorReadings">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <NavigationProperty Name="equipment" Type="MaintenanceService.Equipments" Partner="sensorReadings">
          <ReferentialConstraint Property="equipment_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="equipment_ID" Type="Edm.Guid"/>
        <Property Name="timestamp" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="temperatureC" Type="Edm.Decimal" Precision="9" Scale="2"/>
        <Property Name="vibrationMmS" Type="Edm.Decimal" Precision="9" Scale="2"/>
        <Property Name="pressureBar" Type="Edm.Decimal" Precision="9" Scale="2"/>
        <Property Name="runtimeHours" Type="Edm.Int32"/>
      </EntityType>
      <EntityType Name="MaintenanceNotifications">
        <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="notificationNo" Type="Edm.String" MaxLength="40"/>
        <NavigationProperty Name="equipment" Type="MaintenanceService.Equipments" Partner="notifications">
          <ReferentialConstraint Property="equipment_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="equipment_ID" Type="Edm.Guid"/>
        <Property Name="shortText" Type="Edm.String" MaxLength="160"/>
        <Property Name="description" Type="Edm.String" MaxLength="1000"/>
        <Property Name="status" Type="Edm.String" DefaultValue="New"/>
        <Property Name="priority" Type="Edm.String" MaxLength="20" DefaultValue="Medium"/>
        <Property Name="aiCategory" Type="Edm.String" MaxLength="80"/>
        <Property Name="riskScore" Type="Edm.Int32" DefaultValue="0"/>
        <Property Name="aiRecommendation" Type="Edm.String" MaxLength="1000"/>
        <NavigationProperty Name="orders" Type="Collection(MaintenanceService.MaintenanceOrders)" Partner="notification">
          <OnDelete Action="Cascade"/>
        </NavigationProperty>
        <NavigationProperty Name="workflowTasks" Type="Collection(MaintenanceService.WorkflowTasks)" Partner="notification">
          <OnDelete Action="Cascade"/>
        </NavigationProperty>
        <NavigationProperty Name="recommendations" Type="Collection(MaintenanceService.Recommendations)" Partner="notification">
          <OnDelete Action="Cascade"/>
        </NavigationProperty>
      </EntityType>
      <EntityType Name="MaintenanceOrders">
        <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="orderNo" Type="Edm.String" MaxLength="40"/>
        <NavigationProperty Name="notification" Type="MaintenanceService.MaintenanceNotifications" Partner="orders">
          <ReferentialConstraint Property="notification_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="notification_ID" Type="Edm.Guid"/>
        <Property Name="plannedStart" Type="Edm.Date"/>
        <Property Name="technician" Type="Edm.String" MaxLength="80"/>
        <Property Name="status" Type="Edm.String" DefaultValue="Open"/>
        <Property Name="workSummary" Type="Edm.String" MaxLength="500"/>
      </EntityType>
      <EntityType Name="WorkflowTasks">
        <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"/>
        <NavigationProperty Name="notification" Type="MaintenanceService.MaintenanceNotifications" Partner="workflowTasks">
          <ReferentialConstraint Property="notification_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="notification_ID" Type="Edm.Guid"/>
        <Property Name="assignee" Type="Edm.String" MaxLength="80"/>
        <Property Name="taskType" Type="Edm.String" MaxLength="60"/>
        <Property Name="status" Type="Edm.String" DefaultValue="Open"/>
        <Property Name="dueDate" Type="Edm.Date"/>
        <Property Name="notes" Type="Edm.String" MaxLength="500"/>
      </EntityType>
      <EntityType Name="Recommendations">
        <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"/>
        <NavigationProperty Name="notification" Type="MaintenanceService.MaintenanceNotifications" Partner="recommendations">
          <ReferentialConstraint Property="notification_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="notification_ID" Type="Edm.Guid"/>
        <Property Name="title" Type="Edm.String" MaxLength="160"/>
        <Property Name="content" Type="Edm.String" MaxLength="1000"/>
        <Property Name="confidence" Type="Edm.Decimal" Precision="5" Scale="2"/>
        <Property Name="humanReviewed" Type="Edm.Boolean" DefaultValue="false"/>
        <Property Name="reviewerNote" Type="Edm.String" MaxLength="500"/>
      </EntityType>
      <EntityType Name="IntegrationEvents">
        <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="sourceSystem" Type="Edm.String" MaxLength="80"/>
        <Property Name="targetSystem" Type="Edm.String" MaxLength="80"/>
        <Property Name="payloadType" Type="Edm.String" MaxLength="80"/>
        <Property Name="businessObject" Type="Edm.String" MaxLength="80"/>
        <Property Name="status" Type="Edm.String" DefaultValue="Received"/>
        <Property Name="retryCount" Type="Edm.Int32" DefaultValue="0"/>
        <Property Name="lastError" Type="Edm.String" MaxLength="500"/>
      </EntityType>
      <EntityType Name="AiRequests">
        <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="useCase" Type="Edm.String" MaxLength="80"/>
        <Property Name="businessObject" Type="Edm.String" MaxLength="80"/>
        <Property Name="prompt" Type="Edm.String"/>
        <Property Name="response" Type="Edm.String"/>
        <Property Name="status" Type="Edm.String" MaxLength="30"/>
        <Property Name="latencyMs" Type="Edm.Int32"/>
        <Property Name="tokenEstimate" Type="Edm.Int32"/>
        <Property Name="fallbackUsed" Type="Edm.Boolean" DefaultValue="false"/>
        <Property Name="riskFlags" Type="Edm.String" MaxLength="500"/>
      </EntityType>
      <ComplexType Name="EquipmentHealthSummary">
        <Property Name="equipmentId" Type="Edm.Guid"/>
        <Property Name="equipmentNo" Type="Edm.String"/>
        <Property Name="equipmentName" Type="Edm.String"/>
        <Property Name="criticality" Type="Edm.String"/>
        <Property Name="healthScore" Type="Edm.Int32"/>
        <Property Name="riskLevel" Type="Edm.String"/>
        <Property Name="latestTemperatureC" Type="Edm.Decimal" Precision="9" Scale="2"/>
        <Property Name="latestVibrationMmS" Type="Edm.Decimal" Precision="9" Scale="2"/>
        <Property Name="latestPressureBar" Type="Edm.Decimal" Precision="9" Scale="2"/>
        <Property Name="openNotifications" Type="Edm.Int32"/>
        <Property Name="recommendation" Type="Edm.String"/>
      </ComplexType>
      <Action Name="classifyNotification" IsBound="false">
        <Parameter Name="notificationId" Type="Edm.Guid"/>
        <ReturnType Type="MaintenanceService.MaintenanceNotifications"/>
      </Action>
      <Action Name="generateMaintenanceRecommendation" IsBound="false">
        <Parameter Name="notificationId" Type="Edm.Guid"/>
        <ReturnType Type="MaintenanceService.Recommendations"/>
      </Action>
      <Action Name="createMaintenanceOrder" IsBound="false">
        <Parameter Name="notificationId" Type="Edm.Guid"/>
        <ReturnType Type="MaintenanceService.MaintenanceOrders"/>
      </Action>
      <Action Name="markHumanReviewed" IsBound="false">
        <Parameter Name="recommendationId" Type="Edm.Guid"/>
        <Parameter Name="reviewerNote" Type="Edm.String"/>
        <ReturnType Type="MaintenanceService.Recommendations"/>
      </Action>
      <Action Name="retryIntegrationEvent" IsBound="false">
        <Parameter Name="eventId" Type="Edm.Guid"/>
        <ReturnType Type="MaintenanceService.IntegrationEvents"/>
      </Action>
      <Action Name="getEquipmentHealthSummary" IsBound="false">
        <Parameter Name="equipmentId" Type="Edm.Guid"/>
        <ReturnType Type="MaintenanceService.EquipmentHealthSummary"/>
      </Action>
      <Action Name="resetDemoData" IsBound="false">
        <ReturnType Type="Edm.String"/>
      </Action>
      <Annotations Target="MaintenanceService.FunctionalLocations/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.FunctionalLocations/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="MaintenanceService.FunctionalLocations/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="MaintenanceService.FunctionalLocations/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="MaintenanceService.FunctionalLocations/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>
      <Annotations Target="MaintenanceService.FunctionalLocations/locationCode">
        <Annotation Term="Common.FieldControl" EnumMember="Common.FieldControlType/Mandatory"/>
      </Annotations>
      <Annotations Target="MaintenanceService.Equipments">
        <Annotation Term="UI.LineItem">
          <Collection>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="equipmentNo"/>
              <PropertyValue Property="Label" String="Equipment No."/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="name"/>
              <PropertyValue Property="Label" String="Name"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="equipmentType"/>
              <PropertyValue Property="Label" String="Type"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="criticality"/>
              <PropertyValue Property="Label" String="Criticality"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="status"/>
              <PropertyValue Property="Label" String="Status"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="functionalLocation/locationCode"/>
              <PropertyValue Property="Label" String="Functional Location"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations>
      <Annotations Target="MaintenanceService.Equipments/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.Equipments/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="MaintenanceService.Equipments/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="MaintenanceService.Equipments/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="MaintenanceService.Equipments/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>
      <Annotations Target="MaintenanceService.Equipments/equipmentNo">
        <Annotation Term="Common.FieldControl" EnumMember="Common.FieldControlType/Mandatory"/>
      </Annotations>
      <Annotations Target="MaintenanceService.SensorReadings/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.MaintenanceNotifications">
        <Annotation Term="UI.HeaderInfo">
          <Record Type="UI.HeaderInfoType">
            <PropertyValue Property="TypeName" String="Maintenance Notification"/>
            <PropertyValue Property="TypeNamePlural" String="Maintenance Notifications"/>
            <PropertyValue Property="Title">
              <Record Type="UI.DataField">
                <PropertyValue Property="Value" Path="notificationNo"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="Description">
              <Record Type="UI.DataField">
                <PropertyValue Property="Value" Path="shortText"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="UI.SelectionFields">
          <Collection>
            <PropertyPath>status</PropertyPath>
            <PropertyPath>priority</PropertyPath>
            <PropertyPath>aiCategory</PropertyPath>
            <PropertyPath>equipment_ID</PropertyPath>
          </Collection>
        </Annotation>
        <Annotation Term="UI.LineItem">
          <Collection>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="notificationNo"/>
              <PropertyValue Property="Label" String="Notification"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="equipment/equipmentNo"/>
              <PropertyValue Property="Label" String="Equipment"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="shortText"/>
              <PropertyValue Property="Label" String="Issue"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="status"/>
              <PropertyValue Property="Label" String="Status"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="priority"/>
              <PropertyValue Property="Label" String="Priority"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="aiCategory"/>
              <PropertyValue Property="Label" String="AI Category"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="riskScore"/>
              <PropertyValue Property="Label" String="Risk Score"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="UI.Facets">
          <Collection>
            <Record Type="UI.ReferenceFacet">
              <PropertyValue Property="Label" String="Issue"/>
              <PropertyValue Property="Target" AnnotationPath="@UI.FieldGroup#Issue"/>
            </Record>
            <Record Type="UI.ReferenceFacet">
              <PropertyValue Property="Label" String="AI Recommendation"/>
              <PropertyValue Property="Target" AnnotationPath="@UI.FieldGroup#AI"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="UI.FieldGroup" Qualifier="Issue">
          <Record Type="UI.FieldGroupType">
            <PropertyValue Property="Data">
              <Collection>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="notificationNo"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="equipment/name"/>
                  <PropertyValue Property="Label" String="Equipment"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="shortText"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="description"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="status"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="priority"/>
                </Record>
              </Collection>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="UI.FieldGroup" Qualifier="AI">
          <Record Type="UI.FieldGroupType">
            <PropertyValue Property="Data">
              <Collection>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="aiCategory"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="riskScore"/>
                </Record>
                <Record Type="UI.DataField">
                  <PropertyValue Property="Value" Path="aiRecommendation"/>
                </Record>
              </Collection>
            </PropertyValue>
          </Record>
        </Annotation>
      </Annotations>
      <Annotations Target="MaintenanceService.MaintenanceNotifications/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.MaintenanceNotifications/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="MaintenanceService.MaintenanceNotifications/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="MaintenanceService.MaintenanceNotifications/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="MaintenanceService.MaintenanceNotifications/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>
      <Annotations Target="MaintenanceService.MaintenanceNotifications/notificationNo">
        <Annotation Term="Common.FieldControl" EnumMember="Common.FieldControlType/Mandatory"/>
      </Annotations>
      <Annotations Target="MaintenanceService.MaintenanceNotifications/status">
        <Annotation Term="Validation.AllowedValues">
          <Collection>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="New"/>
              <PropertyValue Property="Value" String="New"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Classified"/>
              <PropertyValue Property="Value" String="Classified"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="InReview"/>
              <PropertyValue Property="Value" String="InReview"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="OrderCreated"/>
              <PropertyValue Property="Value" String="OrderCreated"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Closed"/>
              <PropertyValue Property="Value" String="Closed"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations>
      <Annotations Target="MaintenanceService.MaintenanceOrders/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.MaintenanceOrders/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="MaintenanceService.MaintenanceOrders/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="MaintenanceService.MaintenanceOrders/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="MaintenanceService.MaintenanceOrders/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>
      <Annotations Target="MaintenanceService.MaintenanceOrders/status">
        <Annotation Term="Validation.AllowedValues">
          <Collection>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Open"/>
              <PropertyValue Property="Value" String="Open"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="InProgress"/>
              <PropertyValue Property="Value" String="InProgress"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Done"/>
              <PropertyValue Property="Value" String="Done"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Blocked"/>
              <PropertyValue Property="Value" String="Blocked"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations>
      <Annotations Target="MaintenanceService.WorkflowTasks/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.WorkflowTasks/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="MaintenanceService.WorkflowTasks/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="MaintenanceService.WorkflowTasks/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="MaintenanceService.WorkflowTasks/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>
      <Annotations Target="MaintenanceService.WorkflowTasks/status">
        <Annotation Term="Validation.AllowedValues">
          <Collection>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Open"/>
              <PropertyValue Property="Value" String="Open"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="InProgress"/>
              <PropertyValue Property="Value" String="InProgress"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Done"/>
              <PropertyValue Property="Value" String="Done"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Blocked"/>
              <PropertyValue Property="Value" String="Blocked"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations>
      <Annotations Target="MaintenanceService.Recommendations/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.Recommendations/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="MaintenanceService.Recommendations/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="MaintenanceService.Recommendations/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="MaintenanceService.Recommendations/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>
      <Annotations Target="MaintenanceService.IntegrationEvents/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.IntegrationEvents/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="MaintenanceService.IntegrationEvents/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="MaintenanceService.IntegrationEvents/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="MaintenanceService.IntegrationEvents/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>
      <Annotations Target="MaintenanceService.IntegrationEvents/status">
        <Annotation Term="Validation.AllowedValues">
          <Collection>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Received"/>
              <PropertyValue Property="Value" String="Received"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Mapped"/>
              <PropertyValue Property="Value" String="Mapped"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Failed"/>
              <PropertyValue Property="Value" String="Failed"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Retried"/>
              <PropertyValue Property="Value" String="Retried"/>
            </Record>
            <Record Type="Validation.AllowedValue">
              <Annotation Term="Core.SymbolicName" String="Sent"/>
              <PropertyValue Property="Value" String="Sent"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations>
      <Annotations Target="MaintenanceService.AiRequests">
        <Annotation Term="UI.LineItem">
          <Collection>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="useCase"/>
              <PropertyValue Property="Label" String="Use Case"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="businessObject"/>
              <PropertyValue Property="Label" String="Business Object"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="status"/>
              <PropertyValue Property="Label" String="Status"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="latencyMs"/>
              <PropertyValue Property="Label" String="Latency ms"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="tokenEstimate"/>
              <PropertyValue Property="Label" String="Token Estimate"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="fallbackUsed"/>
              <PropertyValue Property="Label" String="Fallback Used"/>
            </Record>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="riskFlags"/>
              <PropertyValue Property="Label" String="Risk Flags"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations>
      <Annotations Target="MaintenanceService.AiRequests/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="MaintenanceService.AiRequests/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="MaintenanceService.AiRequests/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="MaintenanceService.AiRequests/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="MaintenanceService.AiRequests/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>