﻿<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
  <edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0">
    <Schema Namespace="CodeFirstNamespace" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
      <EntityType Name="Challenge">
        <Key>
          <PropertyRef Name="ChallengeID" />
        </Key>
        <Property Name="ChallengeID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
        <Property Name="CustomerID" Type="Edm.Int32" Nullable="true" />
        <Property Name="ChallengeType" Type="Edm.Int32" Nullable="true" />
        <Property Name="StartingValue" Type="Edm.Decimal" Nullable="true" Precision="18" Scale="2" />
        <Property Name="TargetValue" Type="Edm.Decimal" Nullable="true" Precision="18" Scale="2" />
        <Property Name="StartDate" Type="Edm.DateTime" Nullable="true" />
        <Property Name="EndDate" Type="Edm.DateTime" Nullable="true" />
        <Property Name="ChallengeStatusType" Type="Edm.Int32" Nullable="true" />
      </EntityType>
      <EntityType Name="ChallengeStatusType">
        <Key>
          <PropertyRef Name="ChallengeStatusTypeID" />
        </Key>
        <Property Name="ChallengeStatusTypeID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
        <Property Name="Description" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" />
      </EntityType>
      <EntityType Name="ChallengeType">
        <Key>
          <PropertyRef Name="ChallengeTypeID" />
        </Key>
        <Property Name="ChallengeTypeID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
        <Property Name="Description" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" />
      </EntityType>
      <EntityType Name="ChallengeUpdate">
        <Key>
          <PropertyRef Name="ChallengeUpdateID" />
        </Key>
        <Property Name="ChallengeUpdateID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
        <Property Name="ChallengeID" Type="Edm.Int32" Nullable="true" />
        <Property Name="CustomerID" Type="Edm.Int32" Nullable="true" />
        <Property Name="Value" Type="Edm.Decimal" Nullable="true" Precision="18" Scale="2" />
        <Property Name="ChallengeUpdateStatusType" Type="Edm.Int32" Nullable="true" />
        <Property Name="CreatedDate" Type="Edm.DateTime" Nullable="true" />
        <Property Name="PhotoPath" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" />
        <Property Name="Notes" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" />
      </EntityType>
      <EntityType Name="test">
        <Key>
          <PropertyRef Name="testid" />
        </Key>
        <Property Name="testid" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
      </EntityType>
    </Schema>
    <Schema Namespace="System.Data.Objects" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
      <EntityContainer Name="challenge" m:IsDefaultEntityContainer="true">
        <EntitySet Name="Challenges" EntityType="CodeFirstNamespace.Challenge" />
        <EntitySet Name="ChallengeStatusTypes" EntityType="CodeFirstNamespace.ChallengeStatusType" />
        <EntitySet Name="ChallengeTypes" EntityType="CodeFirstNamespace.ChallengeType" />
        <EntitySet Name="ChallengeUpdates" EntityType="CodeFirstNamespace.ChallengeUpdate" />
        <EntitySet Name="tests" EntityType="CodeFirstNamespace.test" />
      </EntityContainer>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>