<?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="EmailReminderService" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <EntityContainer Name="EntityContainer">
        <EntitySet Name="EmailReminder" EntityType="EmailReminderService.EmailReminder">
          <NavigationPropertyBinding Path="rule" Target="ReminderRules"/>
        </EntitySet>
        <EntitySet Name="ReminderRules" EntityType="EmailReminderService.ReminderRules"/>
      </EntityContainer>
      <EntityType Name="EmailReminder">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="name" Type="Edm.String" MaxLength="150" Nullable="false"/>
        <Property Name="reminderType" Type="Edm.String" MaxLength="100" Nullable="false"/>
        <NavigationProperty Name="rule" Type="EmailReminderService.ReminderRules">
          <ReferentialConstraint Property="rule_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="rule_ID" Type="Edm.Guid"/>
        <Property Name="frequencyType" Type="Edm.String" MaxLength="50" Nullable="false"/>
        <Property Name="frequencyValue" Type="Edm.Int32"/>
        <Property Name="emailSubject" Type="Edm.String" MaxLength="255" Nullable="false"/>
        <Property Name="emailBody" Type="Edm.String" Nullable="false"/>
        <Property Name="groupID_ID" Type="Edm.Guid"/>
        <Property Name="isActive" Type="Edm.Boolean" DefaultValue="true"/>
        <Property Name="created_at" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="updated_at" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdBy_ID" Type="Edm.Guid"/>
        <Property Name="updatedBy_ID" Type="Edm.Guid"/>
      </EntityType>
      <EntityType Name="ReminderRules">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="name" Type="Edm.String" MaxLength="150" Nullable="false"/>
        <Property Name="reminderType" Type="Edm.String" MaxLength="100" Nullable="false"/>
        <Property Name="appliesTo" Type="Edm.String"/>
        <Property Name="conditionLogic" Type="Edm.String" MaxLength="10" DefaultValue="AND"/>
        <Property Name="conditions" Type="Edm.String"/>
        <Property Name="isDefault" Type="Edm.Boolean" DefaultValue="false"/>
        <Property Name="isActive" Type="Edm.Boolean" DefaultValue="true"/>
        <Property Name="created_at" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="updated_at" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdBy_ID" Type="Edm.Guid"/>
        <Property Name="updatedBy_ID" Type="Edm.Guid"/>
      </EntityType>
      <Annotations Target="EmailReminderService.EmailReminder/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="EmailReminderService.EmailReminder/created_at">
        <Annotation Term="Core.Computed" Bool="true"/>
      </Annotations>
      <Annotations Target="EmailReminderService.EmailReminder/updated_at">
        <Annotation Term="Core.Computed" Bool="true"/>
      </Annotations>
      <Annotations Target="EmailReminderService.ReminderRules/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="EmailReminderService.ReminderRules/created_at">
        <Annotation Term="Core.Computed" Bool="true"/>
      </Annotations>
      <Annotations Target="EmailReminderService.ReminderRules/updated_at">
        <Annotation Term="Core.Computed" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>