<?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="ListService" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <EntityContainer Name="EntityContainer">
        <EntitySet Name="Lists" EntityType="ListService.Lists">
          <NavigationPropertyBinding Path="items" Target="Items"/>
        </EntitySet>
        <EntitySet Name="Items" EntityType="ListService.Items">
          <NavigationPropertyBinding Path="list_ID" Target="Lists"/>
          <NavigationPropertyBinding Path="parent" Target="Items"/>
        </EntitySet>
      </EntityContainer>
      <EntityType Name="Lists">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="name" Type="Edm.String" MaxLength="100"/>
        <Property Name="mapped" Type="Edm.Boolean" DefaultValue="false"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <NavigationProperty Name="items" Type="Collection(ListService.Items)" Partner="list_ID"/>
        <Property Name="isVendorList" Type="Edm.Boolean" DefaultValue="false"/>
        <Property Name="createdBy_ID" Type="Edm.Guid"/>
        <Property Name="updatedBy_ID" Type="Edm.Guid"/>
      </EntityType>
      <EntityType Name="Items">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <NavigationProperty Name="list_ID" Type="ListService.Lists" Partner="items">
          <ReferentialConstraint Property="list_ID_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="list_ID_ID" Type="Edm.Guid"/>
        <Property Name="name" Type="Edm.String" MaxLength="100"/>
        <Property Name="code" Type="Edm.String" MaxLength="100"/>
        <Property Name="parent_ID" Type="Edm.Guid"/>
        <NavigationProperty Name="parent" Type="ListService.Items">
          <ReferentialConstraint Property="parent_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </EntityType>
      <Annotations Target="ListService.Lists/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="ListService.Lists/createdAt">
        <Annotation Term="Core.Computed" Bool="true"/>
      </Annotations>
      <Annotations Target="ListService.Lists/modifiedAt">
        <Annotation Term="Core.Computed" Bool="true"/>
      </Annotations>
      <Annotations Target="ListService.Items/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="ListService.Items/createdAt">
        <Annotation Term="Core.Computed" Bool="true"/>
      </Annotations>
      <Annotations Target="ListService.Items/modifiedAt">
        <Annotation Term="Core.Computed" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>