<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
      <Schema xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl" Namespace="PlanMyNight.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005">
        <EntityContainer Name="PlanMyNightTargetContainer" >
        </EntityContainer>
      </Schema>
    </edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema xmlns="http://schemas.microsoft.com/ado/2008/09/edm" xmlns:cg="http://schemas.microsoft.com/ado/2006/04/codegeneration" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" Namespace="PlanMyNight" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation">
        <EntityContainer Name="PlanMyNightContainer" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Itineraries" EntityType="PlanMyNight.Itinerary" />
          <EntitySet Name="ItineraryRatings" EntityType="PlanMyNight.ItineraryRating" />
          <EntitySet Name="ItineraryActivities" EntityType="PlanMyNight.ItineraryActivity" />
          <EntitySet Name="ItineraryComments" EntityType="PlanMyNight.ItineraryComment" />
        </EntityContainer>
        <EntityType Name="Itinerary">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int64" Name="Id" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="Guid" Name="UserId" Nullable="false" />
          <Property Type="String" Name="Name" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Type="DateTime" Name="Created" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="1000" FixedLength="false" Unicode="true" />
          <Property Type="Boolean" Name="IsPublic" Nullable="false" />
          <Property Type="Int32" Name="RatingCount" Nullable="false" />
          <Property Type="Int32" Name="RatingSum" Nullable="false" />
          <Property Type="Decimal" Name="Rating" Nullable="true" Precision="19" Scale="4" a:StoreGeneratedPattern="Computed" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
        </EntityType>
        <EntityType Name="ItineraryRating">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int64" Name="Id" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="Guid" Name="UserId" Nullable="false" />
          <Property Type="Int64" Name="ItineraryId" Nullable="false" />
          <Property Type="Byte" Name="Rating" Nullable="false" />
          <Property Type="DateTime" Name="Timestamp" Nullable="false" />
        </EntityType>
        <EntityType Name="ItineraryActivity">
          <Key>
            <PropertyRef Name="ItineraryId" />
            <PropertyRef Name="ActivityId" />
          </Key>
          <Property Type="Int64" Name="ItineraryId" Nullable="false" />
          <Property Type="String" Name="ActivityId" Nullable="false" MaxLength="250" FixedLength="false" Unicode="false" />
          <Property Type="Int32" Name="Order" Nullable="false" />
          <Property Type="Int16" Name="EstimatedMinutes" Nullable="false" />
          <Property Type="String" Name="State" Nullable="false" MaxLength="2" FixedLength="true" Unicode="false" />
          <Property Type="String" Name="City" Nullable="false" MaxLength="250" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Zip" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Double" Name="Latitude" Nullable="false" />
          <Property Type="Double" Name="Longitude" Nullable="false" />
          <Property Type="Int32" Name="TypeId" Nullable="false" />
        </EntityType>
        <EntityType Name="ItineraryComment">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int64" Name="Id" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="Int64" Name="ItineraryId" Nullable="false" />
          <Property Type="Guid" Name="UserId" Nullable="false" />
          <Property Type="String" Name="Body" Nullable="false" MaxLength="4000" FixedLength="false" Unicode="true" />
          <Property Type="DateTime" Name="Timestamp" Nullable="false" />
          <Property Type="String" Name="IpAddress" Nullable="false" MaxLength="16" FixedLength="false" Unicode="false" />
        </EntityType>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs" Space="C-S">
        <Alias Key="Model" Value="PlanMyNight" />
        <Alias Key="Target" Value="PlanMyNight.Store" />
        <EntityContainerMapping CdmEntityContainer="PlanMyNightContainer" StorageEntityContainer="PlanMyNightTargetContainer">
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2008/10/edmx">
    <edmx:Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </edmx:Connection>
    <edmx:Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
      </DesignerInfoPropertySet>
    </edmx:Options>
    <!-- Diagram content (shape and connector positions) -->
    <edmx:Diagrams>
      <Diagram Name="PlanMyNight" >
        <EntityTypeShape EntityType="PlanMyNight.Itinerary" Width="1.5" PointX="2.625" PointY="0.75" Height="2.7494921874999996" />
        <EntityTypeShape EntityType="PlanMyNight.ItineraryRating" Width="1.5" PointX="4.75" PointY="3.75" Height="1.9802864583333326" />
        <EntityTypeShape EntityType="PlanMyNight.ItineraryActivity" Width="1.5" PointX="2.625" PointY="3.75" Height="2.9417936197916656" />
        <EntityTypeShape EntityType="PlanMyNight.ItineraryComment" Width="1.5" PointX="4.75" PointY="0.75" Height="2.1725878906249996" />
      </Diagram>
    </edmx:Diagrams>
  </edmx:Designer>
</edmx:Edmx>
