﻿<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="Model.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <EntityType Name="DocumentMimeTypes">
          <Key>
            <PropertyRef Name="DocumentMimeTypeID" />
          </Key>
          <Property Name="DocumentMimeTypeID" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="MimeType" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="IconFileName" Type="varchar" MaxLength="255" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="DocumentQuestionHistory">
          <Key>
            <PropertyRef Name="DocumentQuestionHistoryID" />
          </Key>
          <Property Name="DocumentQuestionHistoryID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DocumentQuestionID" Type="bigint" Nullable="false" />
          <Property Name="QuestionPassed" Type="varchar" MaxLength="20" />
          <Property Name="CheckedByID" Type="bigint" />
          <Property Name="CheckedDate" Type="datetime" />
          <Property Name="IsLatestVerifierCheck" Type="bit" Nullable="false" />
          <Property Name="DocumentID" Type="bigint" Nullable="false" />
          <Property Name="DocumentTypeQuestionID" Type="bigint" />
        </EntityType>
        <EntityType Name="DocumentQuestions">
          <Key>
            <PropertyRef Name="DocumentQuestionID" />
          </Key>
          <Property Name="DocumentQuestionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DocumentID" Type="bigint" Nullable="false" />
          <Property Name="DocumentTypeQuestionID" Type="bigint" Nullable="false" />
          <Property Name="QuestionPassed" Type="varchar" MaxLength="20" />
          <Property Name="CheckedByID" Type="bigint" />
          <Property Name="CheckedDate" Type="datetime" />
          <Property Name="Comments" Type="varchar" MaxLength="255" />
        </EntityType>
        <EntityType Name="Documents">
          <Key>
            <PropertyRef Name="DocumentID" />
          </Key>
          <Property Name="DocumentID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="DocumentStoreLocationID" Type="bigint" Nullable="false" />
          <Property Name="EntityID" Type="int" Nullable="false" />
          <Property Name="ItemID" Type="bigint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="255" />
          <Property Name="Description" Type="varchar" MaxLength="255" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="DocumentMimeTypeID" Type="smallint" Nullable="false" />
          <Property Name="DocumentVerificationStatusID" Type="smallint" Nullable="false" />
          <Property Name="ExpiryDate" Type="datetime" />
          <Property Name="OriginatingEntityID" Type="bigint" />
          <Property Name="OriginatingItemID" Type="bigint" />
          <Property Name="OriginatingDocumentID" Type="bigint" />
          <Property Name="LastReminderRequestSentDate" Type="datetime" />
        </EntityType>
        <EntityType Name="DocumentStore">
          <Key>
            <PropertyRef Name="DocumentStoreID" />
          </Key>
          <Property Name="DocumentStoreID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DocumentID" Type="bigint" Nullable="false" />
          <Property Name="Version" Type="smallint" Nullable="false" />
          <Property Name="ContentBLOB" Type="image" Nullable="false" />
          <Property Name="MimeType" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="Size" Type="bigint" Nullable="false" />
          <Property Name="Name" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Ext" Type="varchar" MaxLength="5" Nullable="false" />
        </EntityType>
        <EntityType Name="DocumentStoreLocations">
          <Key>
            <PropertyRef Name="DocumentStoreLocationID" />
          </Key>
          <Property Name="DocumentStoreLocationID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DocumentStoreTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="ConnectionString" Type="varchar" MaxLength="2000" Nullable="false" />
          <Property Name="AuthTypeID" Type="smallint" Nullable="false" />
          <Property Name="AuthDomain" Type="varchar" MaxLength="50" />
          <Property Name="AuthUser" Type="varchar" MaxLength="50" />
          <Property Name="AuthPassword" Type="varchar" MaxLength="50" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="DocumentStoreTypes">
          <Key>
            <PropertyRef Name="DocumentStoreTypeID" />
          </Key>
          <Property Name="DocumentStoreTypeID" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
        </EntityType>
        <EntityType Name="DocumentTypeQuestions">
          <Key>
            <PropertyRef Name="DocumentTypeQuestionID" />
          </Key>
          <Property Name="DocumentTypeQuestionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="CaptureFieldID" Type="smallint" Nullable="false" />
          <Property Name="Question" Type="varchar" MaxLength="2000" Nullable="false" />
          <Property Name="OrderBy" Type="bigint" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="DocumentTypes">
          <Key>
            <PropertyRef Name="DocumentTypeID" />
          </Key>
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsDocumentTitleEditable" Type="bit" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsExpiryDateRequired" Type="bit" />
          <Property Name="IsUniqueEntityDocument" Type="bit" />
        </EntityType>
        <EntityType Name="DocumentVerificationStatus">
          <Key>
            <PropertyRef Name="DocumentVerificationStatusID" />
          </Key>
          <Property Name="DocumentVerificationStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="ScanSessionDocuments">
          <Key>
            <PropertyRef Name="ScanSessionDocumentID" />
          </Key>
          <Property Name="ScanSessionDocumentID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ScanSessionID" Type="bigint" Nullable="false" />
          <Property Name="DocumentID" Type="bigint" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="DocumentStoreLocationID" Type="bigint" Nullable="false" />
          <Property Name="EntityID" Type="int" Nullable="false" />
          <Property Name="ItemID" Type="bigint" Nullable="false" />
          <Property Name="RelatedFieldKey" Type="varchar" MaxLength="255" />
        </EntityType>
        <EntityType Name="ScanSessions">
          <Key>
            <PropertyRef Name="ScanSessionID" />
          </Key>
          <Property Name="ScanSessionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="UserID" Type="bigint" Nullable="false" />
          <Property Name="ScanToken" Type="varchar" MaxLength="16" Nullable="false" />
          <Property Name="TokenExpiryDate" Type="datetime" Nullable="false" />
        </EntityType>
        <EntityType Name="Users">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="UserStatusID" Type="smallint" Nullable="false" />
          <Property Name="EntityID" Type="int" />
          <Property Name="ItemID" Type="varchar" MaxLength="20" />
          <Property Name="LastName" Type="varchar" MaxLength="50" />
          <Property Name="FirstName" Type="varchar" MaxLength="50" />
          <Property Name="FullName" Type="varchar" MaxLength="101" StoreGeneratedPattern="Computed" Nullable="false" />
          <Property Name="KnownAs" Type="varchar" MaxLength="101" />
          <Property Name="Email" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="NTAccount" Type="varchar" MaxLength="255" />
          <Property Name="Cell" Type="varchar" MaxLength="10" />
          <Property Name="IsPasswordExpired" Type="bit" />
          <Property Name="PasswordDate" Type="datetime" />
          <Property Name="PasswordHash" Type="varchar" MaxLength="255" />
          <Property Name="PasswordSalt" Type="varchar" MaxLength="20" />
          <Property Name="PasswordChallenge" Type="varchar" MaxLength="20" />
          <Property Name="PasswordQuestion" Type="varchar" MaxLength="255" />
          <Property Name="PasswordAnswerHash" Type="varchar" MaxLength="255" />
          <Property Name="PasswordAnswerSalt" Type="varchar" MaxLength="20" />
          <Property Name="PasswordAnswerChallenge" Type="varchar" MaxLength="20" />
          <Property Name="FingerprintTemplate" Type="varbinary(max)" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="FingerprintRequestToken" Type="varchar" MaxLength="255" />
          <Property Name="FingerprintRequestExpiryDate" Type="datetime" />
          <Property Name="UserProfileDocID" Type="bigint" />
          <Property Name="OfficeLocationID" Type="bigint" />
        </EntityType>
        <EntityType Name="AuthTypes">
          <Key>
            <PropertyRef Name="AuthTypeID" />
          </Key>
          <Property Name="AuthTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <Association Name="FK_DocumentQuestionHistory_Documents">
          <End Role="Documents" Type="Self.Documents" Multiplicity="1" />
          <End Role="DocumentQuestionHistory" Type="Self.DocumentQuestionHistory" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Documents">
              <PropertyRef Name="DocumentID" />
            </Principal>
            <Dependent Role="DocumentQuestionHistory">
              <PropertyRef Name="DocumentID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentQuestions_Documents">
          <End Role="Documents" Type="Self.Documents" Multiplicity="1" />
          <End Role="DocumentQuestions" Type="Self.DocumentQuestions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Documents">
              <PropertyRef Name="DocumentID" />
            </Principal>
            <Dependent Role="DocumentQuestions">
              <PropertyRef Name="DocumentID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentQuestions_DocumentTypeQuestions">
          <End Role="DocumentTypeQuestions" Type="Self.DocumentTypeQuestions" Multiplicity="1" />
          <End Role="DocumentQuestions" Type="Self.DocumentQuestions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypeQuestions">
              <PropertyRef Name="DocumentTypeQuestionID" />
            </Principal>
            <Dependent Role="DocumentQuestions">
              <PropertyRef Name="DocumentTypeQuestionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentMimeTypes">
          <End Role="DocumentMimeTypes" Type="Self.DocumentMimeTypes" Multiplicity="1" />
          <End Role="Documents" Type="Self.Documents" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentMimeTypes">
              <PropertyRef Name="DocumentMimeTypeID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentMimeTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentStoreLocations">
          <End Role="DocumentStoreLocations" Type="Self.DocumentStoreLocations" Multiplicity="1" />
          <End Role="Documents" Type="Self.Documents" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentStoreLocations">
              <PropertyRef Name="DocumentStoreLocationID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentStoreLocationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentTypes">
          <End Role="DocumentTypes" Type="Self.DocumentTypes" Multiplicity="1" />
          <End Role="Documents" Type="Self.Documents" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_Users_CreatedByID">
          <End Role="Users" Type="Self.Users" Multiplicity="1" />
          <End Role="Documents" Type="Self.Documents" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="CreatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_Users_UpdatedByID">
          <End Role="Users" Type="Self.Users" Multiplicity="1" />
          <End Role="Documents" Type="Self.Documents" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="UpdatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_AuthTypes">
          <End Role="AuthTypes" Type="Self.AuthTypes" Multiplicity="1" />
          <End Role="DocumentStoreLocations" Type="Self.DocumentStoreLocations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AuthTypes">
              <PropertyRef Name="AuthTypeID" />
            </Principal>
            <Dependent Role="DocumentStoreLocations">
              <PropertyRef Name="AuthTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_DocumentStoreTypes">
          <End Role="DocumentStoreTypes" Type="Self.DocumentStoreTypes" Multiplicity="1" />
          <End Role="DocumentStoreLocations" Type="Self.DocumentStoreLocations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentStoreTypes">
              <PropertyRef Name="DocumentStoreTypeID" />
            </Principal>
            <Dependent Role="DocumentStoreLocations">
              <PropertyRef Name="DocumentStoreTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_Users_CreatedByID">
          <End Role="Users" Type="Self.Users" Multiplicity="1" />
          <End Role="DocumentStoreLocations" Type="Self.DocumentStoreLocations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="DocumentStoreLocations">
              <PropertyRef Name="CreatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_Users_UpdatedByID">
          <End Role="Users" Type="Self.Users" Multiplicity="1" />
          <End Role="DocumentStoreLocations" Type="Self.DocumentStoreLocations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="DocumentStoreLocations">
              <PropertyRef Name="UpdatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentTypeQuestions_DocumentTypes">
          <End Role="DocumentTypes" Type="Self.DocumentTypes" Multiplicity="1" />
          <End Role="DocumentTypeQuestions" Type="Self.DocumentTypeQuestions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="DocumentTypeQuestions">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumeStore_Documents">
          <End Role="Documents" Type="Self.Documents" Multiplicity="1" />
          <End Role="DocumentStore" Type="Self.DocumentStore" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Documents">
              <PropertyRef Name="DocumentID" />
            </Principal>
            <Dependent Role="DocumentStore">
              <PropertyRef Name="DocumentID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ScanSessionDocuments_DocumentTypes">
          <End Role="DocumentTypes" Type="Self.DocumentTypes" Multiplicity="1" />
          <End Role="ScanSessionDocuments" Type="Self.ScanSessionDocuments" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ScanSessionDocuments">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ScanSessionDocuments_ScanSessions">
          <End Role="ScanSessions" Type="Self.ScanSessions" Multiplicity="1" />
          <End Role="ScanSessionDocuments" Type="Self.ScanSessionDocuments" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ScanSessions">
              <PropertyRef Name="ScanSessionID" />
            </Principal>
            <Dependent Role="ScanSessionDocuments">
              <PropertyRef Name="ScanSessionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ScanSessions_Users">
          <End Role="Users" Type="Self.Users" Multiplicity="1" />
          <End Role="ScanSessions" Type="Self.ScanSessions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="ScanSessions">
              <PropertyRef Name="UserID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Function Name="Pr_DocumentCopyMany" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="DocumentIDs" Type="varchar" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="CopiedByUserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentIDUpdateEntity" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="DocumentID" Type="bigint" Mode="In" />
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
          <Parameter Name="RelatedFieldKey" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentQuestionUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="DocumentQuestionID" Type="bigint" Mode="In" />
          <Parameter Name="DocumentID" Type="bigint" Mode="In" />
          <Parameter Name="QuestionPassed" Type="varchar" Mode="In" />
          <Parameter Name="CheckedByID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentsAwaitingVerificationGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="EntityID" Type="bigint" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentsAwaitingVerificationQuestionsResetAndGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="EntityID" Type="bigint" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
          <Parameter Name="ResetQuestions" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentTemplateDataGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentVerificationQuestionsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="DocumentID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ScanSessionCreateSingle" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
          <Parameter Name="RelatedFieldKey" Type="varchar" Mode="In" />
          <Parameter Name="DocumentTypeID" Type="smallint" Mode="In" />
          <Parameter Name="DocumentID" Type="bigint" Mode="In" />
          <Parameter Name="DocumentStoreLocationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="DocumentMimeTypes" EntityType="Self.DocumentMimeTypes" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentQuestionHistory" EntityType="Self.DocumentQuestionHistory" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentQuestions" EntityType="Self.DocumentQuestions" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="Documents" EntityType="Self.Documents" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentStore" EntityType="Self.DocumentStore" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentStoreLocations" EntityType="Self.DocumentStoreLocations" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentStoreTypes" EntityType="Self.DocumentStoreTypes" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentTypeQuestions" EntityType="Self.DocumentTypeQuestions" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentTypes" EntityType="Self.DocumentTypes" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentVerificationStatus" EntityType="Self.DocumentVerificationStatus" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="ScanSessionDocuments" EntityType="Self.ScanSessionDocuments" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="ScanSessions" EntityType="Self.ScanSessions" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="Users" EntityType="Self.Users" Schema="Security" store:Type="Tables" />
          <EntitySet Name="AuthTypes" EntityType="Self.AuthTypes" Schema="System" store:Type="Tables" />
          <AssociationSet Name="FK_DocumentQuestionHistory_Documents" Association="Self.FK_DocumentQuestionHistory_Documents">
            <End Role="Documents" EntitySet="Documents" />
            <End Role="DocumentQuestionHistory" EntitySet="DocumentQuestionHistory" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentQuestions_Documents" Association="Self.FK_DocumentQuestions_Documents">
            <End Role="Documents" EntitySet="Documents" />
            <End Role="DocumentQuestions" EntitySet="DocumentQuestions" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentQuestions_DocumentTypeQuestions" Association="Self.FK_DocumentQuestions_DocumentTypeQuestions">
            <End Role="DocumentTypeQuestions" EntitySet="DocumentTypeQuestions" />
            <End Role="DocumentQuestions" EntitySet="DocumentQuestions" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_DocumentMimeTypes" Association="Self.FK_Documents_DocumentMimeTypes">
            <End Role="DocumentMimeTypes" EntitySet="DocumentMimeTypes" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_DocumentStoreLocations" Association="Self.FK_Documents_DocumentStoreLocations">
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_DocumentTypes" Association="Self.FK_Documents_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_Users_CreatedByID" Association="Self.FK_Documents_Users_CreatedByID">
            <End Role="Users" EntitySet="Users" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_Users_UpdatedByID" Association="Self.FK_Documents_Users_UpdatedByID">
            <End Role="Users" EntitySet="Users" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_AuthTypes" Association="Self.FK_DocumentStoreLocations_AuthTypes">
            <End Role="AuthTypes" EntitySet="AuthTypes" />
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_DocumentStoreTypes" Association="Self.FK_DocumentStoreLocations_DocumentStoreTypes">
            <End Role="DocumentStoreTypes" EntitySet="DocumentStoreTypes" />
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_Users_CreatedByID" Association="Self.FK_DocumentStoreLocations_Users_CreatedByID">
            <End Role="Users" EntitySet="Users" />
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_Users_UpdatedByID" Association="Self.FK_DocumentStoreLocations_Users_UpdatedByID">
            <End Role="Users" EntitySet="Users" />
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentTypeQuestions_DocumentTypes" Association="Self.FK_DocumentTypeQuestions_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="DocumentTypeQuestions" EntitySet="DocumentTypeQuestions" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumeStore_Documents" Association="Self.FK_DocumeStore_Documents">
            <End Role="Documents" EntitySet="Documents" />
            <End Role="DocumentStore" EntitySet="DocumentStore" />
          </AssociationSet>
          <AssociationSet Name="FK_ScanSessionDocuments_DocumentTypes" Association="Self.FK_ScanSessionDocuments_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="ScanSessionDocuments" EntitySet="ScanSessionDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ScanSessionDocuments_ScanSessions" Association="Self.FK_ScanSessionDocuments_ScanSessions">
            <End Role="ScanSessions" EntitySet="ScanSessions" />
            <End Role="ScanSessionDocuments" EntitySet="ScanSessionDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ScanSessions_Users" Association="Self.FK_ScanSessions_Users">
            <End Role="Users" EntitySet="Users" />
            <End Role="ScanSessions" EntitySet="ScanSessions" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="Model" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
        <EntityContainer Name="DocumentContext" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="DocumentMimeTypes" EntityType="Model.DocumentMimeType" />
          <EntitySet Name="Documents" EntityType="Model.Document" />
          <EntitySet Name="DocumentStores" EntityType="Model.DocumentStore" />
          <EntitySet Name="DocumentStoreLocations" EntityType="Model.DocumentStoreLocation" />
          <EntitySet Name="DocumentStoreTypes" EntityType="Model.DocumentStoreType" />
          <EntitySet Name="DocumentTypes" EntityType="Model.DocumentType" />
          <EntitySet Name="AuthTypes" EntityType="Model.AuthType" />
          <AssociationSet Name="FK_Documents_DocumentTypes" Association="Model.FK_Documents_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumeStore_Documents" Association="Model.FK_DocumeStore_Documents">
            <End Role="Documents" EntitySet="Documents" />
            <End Role="DocumentStore" EntitySet="DocumentStores" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_AuthTypes" Association="Model.FK_DocumentStoreLocations_AuthTypes">
            <End Role="AuthTypes" EntitySet="AuthTypes" />
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_DocumentStoreTypes" Association="Model.FK_DocumentStoreLocations_DocumentStoreTypes">
            <End Role="DocumentStoreTypes" EntitySet="DocumentStoreTypes" />
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <FunctionImport Name="Pr_DocumentCopyMany" ReturnType="Collection(String)">
            <Parameter Name="DocumentIDs" Mode="In" Type="String" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="CopiedByUserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="DocumentsUsers" EntityType="Model.DocumentsUser" />
         
        
        
         
          <AssociationSet Name="FK_Documents_Users_CreatedByID" Association="Model.FK_Documents_Users_CreatedByID">
            <End Role="User" EntitySet="DocumentsUsers" />
            <End Role="Document" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_Users_UpdatedByID" Association="Model.FK_Documents_Users_UpdatedByID">
            <End Role="User" EntitySet="DocumentsUsers" />
            <End Role="Document" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_Users_CreatedByID" Association="Model.FK_DocumentStoreLocations_Users_CreatedByID">
            <End Role="User" EntitySet="DocumentsUsers" />
            <End Role="DocumentStoreLocation" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_Users_UpdatedByID" Association="Model.FK_DocumentStoreLocations_Users_UpdatedByID">
            <End Role="User" EntitySet="DocumentsUsers" />
            <End Role="DocumentStoreLocation" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_DocumentMimeTypes" Association="Model.FK_Documents_DocumentMimeTypes">
            <End Role="DocumentMimeType" EntitySet="DocumentMimeTypes" />
            <End Role="Document" EntitySet="Documents" />
          </AssociationSet>
          <FunctionImport Name="Pr_DocumentTemplateDataGet" ReturnType="Collection(String)">
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
          </FunctionImport>
          <AssociationSet Name="FK_Documents_DocumentStoreLocations" Association="Model.FK_Documents_DocumentStoreLocations">
            <End Role="DocumentStoreLocation" EntitySet="DocumentStoreLocations" />
            <End Role="Document" EntitySet="Documents" />
          </AssociationSet>
          <EntitySet Name="DocumentQuestionHistories" EntityType="Model.DocumentQuestionHistory" />
          <EntitySet Name="DocumentQuestions" EntityType="Model.DocumentQuestion" />
          <EntitySet Name="DocumentTypeQuestions" EntityType="Model.DocumentTypeQuestion" />
          <EntitySet Name="DocumentVerificationStatus" EntityType="Model.DocumentVerificationStatu" />
          <AssociationSet Name="FK_DocumentQuestionHistoy_DocumentQuestions" Association="Model.FK_DocumentQuestionHistoy_DocumentQuestions">
            <End Role="DocumentQuestion" EntitySet="DocumentQuestions" />
            <End Role="DocumentQuestionHistory" EntitySet="DocumentQuestionHistories" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentQuestions_Documents" Association="Model.FK_DocumentQuestions_Documents">
            <End Role="Document" EntitySet="Documents" />
            <End Role="DocumentQuestion" EntitySet="DocumentQuestions" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentQuestions_DocumentTypeQuestions" Association="Model.FK_DocumentQuestions_DocumentTypeQuestions">
            <End Role="DocumentTypeQuestion" EntitySet="DocumentTypeQuestions" />
            <End Role="DocumentQuestion" EntitySet="DocumentQuestions" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentTypeQuestions_DocumentTypes" Association="Model.FK_DocumentTypeQuestions_DocumentTypes">
            <End Role="DocumentType" EntitySet="DocumentTypes" />
            <End Role="DocumentTypeQuestion" EntitySet="DocumentTypeQuestions" />
          </AssociationSet>
          <FunctionImport Name="Pr_DocumentsAwaitingVerificationGet" ReturnType="Collection(Model.Pr_DocumentsAwaitingVerificationGet_Result)">
            <Parameter Name="EntityID" Mode="In" Type="Int64" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_DocumentsAwaitingVerificationQuestionsResetAndGet" ReturnType="Collection(Model.Pr_DocumentsAwaitingVerificationQuestionsResetAndGet_Result)">
            <Parameter Name="EntityID" Mode="In" Type="Int64" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="ResetQuestions" Mode="In" Type="Boolean" />
          </FunctionImport>
          <AssociationSet Name="FK_DocumentQuestionHistory_Documents" Association="Model.FK_DocumentQuestionHistory_Documents">
            <End Role="Document" EntitySet="Documents" />
            <End Role="DocumentQuestionHistory" EntitySet="DocumentQuestionHistories" />
          </AssociationSet>
          <FunctionImport Name="Pr_DocumentQuestionUpdate">
            <Parameter Name="DocumentQuestionID" Mode="In" Type="Int64" />
            <Parameter Name="DocumentID" Mode="In" Type="Int64" />
            <Parameter Name="QuestionPassed" Mode="In" Type="String" />
            <Parameter Name="CheckedByID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_DocumentVerificationQuestionsGet" ReturnType="Collection(Model.Pr_DocumentVerificationQuestionsGet_Result)">
            <Parameter Name="DocumentID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="ScanSessionDocuments" EntityType="Model.ScanSessionDocument" />
          <EntitySet Name="ScanSessions" EntityType="Model.ScanSession" />
          <AssociationSet Name="FK_ScanSessionDocuments_DocumentTypes" Association="Model.FK_ScanSessionDocuments_DocumentTypes">
            <End Role="DocumentType" EntitySet="DocumentTypes" />
            <End Role="ScanSessionDocument" EntitySet="ScanSessionDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ScanSessionDocuments_ScanSessions" Association="Model.FK_ScanSessionDocuments_ScanSessions">
            <End Role="ScanSession" EntitySet="ScanSessions" />
            <End Role="ScanSessionDocument" EntitySet="ScanSessionDocuments" />
          </AssociationSet>
          <FunctionImport Name="Pr_ScanSessionCreateSingle" ReturnType="Collection(Model.Pr_ScanSessionCreateSingle_Result)">
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="RelatedFieldKey" Mode="In" Type="String" />
            <Parameter Name="DocumentTypeID" Mode="In" Type="Int16" />
            <Parameter Name="DocumentID" Mode="In" Type="Int64" />
            <Parameter Name="DocumentStoreLocationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <AssociationSet Name="FK_ScanSessions_Users" Association="Model.FK_ScanSessions_Users">
            <End Role="DocumentsUser" EntitySet="DocumentsUsers" />
            <End Role="ScanSession" EntitySet="ScanSessions" />
          </AssociationSet>
          <FunctionImport Name="Pr_DocumentIDUpdateEntity">
            <Parameter Name="DocumentID" Mode="In" Type="Int64" />
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="RelatedFieldKey" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_DocumentsGet" ReturnType="Collection(Model.Pr_DocumentsGet_Result)">
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
          </FunctionImport>
        </EntityContainer>
        <EntityType Name="DocumentMimeType">
          <Key>
            <PropertyRef Name="DocumentMimeTypeID" />
          </Key>
          <Property Name="DocumentMimeTypeID" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="MimeType" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" />
          <Property Name="IconFileName" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="Documents" Relationship="Model.FK_Documents_DocumentMimeTypes" FromRole="DocumentMimeType" ToRole="Document" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
        </EntityType>
        <EntityType Name="Document">
          <Key>
            <PropertyRef Name="DocumentID" />
          </Key>
          <Property Name="DocumentID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="EntityID" Type="Int32" Nullable="false" />
          <Property Name="ItemID" Type="Int64" Nullable="false" />
          <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_Documents_DocumentTypes" FromRole="Documents" ToRole="DocumentTypes" />
          <NavigationProperty Name="DocumentStores" Relationship="Model.FK_DocumeStore_Documents" FromRole="Documents" ToRole="DocumentStore" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="3" />
          <NavigationProperty Name="UserCreatedBy" Relationship="Model.FK_Documents_Users_CreatedByID" FromRole="Document" ToRole="User" >
          </NavigationProperty>
          <NavigationProperty Name="UserUpdatedBy" Relationship="Model.FK_Documents_Users_UpdatedByID" FromRole="Document" ToRole="User" >
          </NavigationProperty>
          <Property Type="Int16" Name="DocumentMimeTypeID" Nullable="false" />
          <NavigationProperty Name="DocumentMimeType" Relationship="Model.FK_Documents_DocumentMimeTypes" FromRole="Document" ToRole="DocumentMimeType" />
          <Property Type="Int64" Name="DocumentStoreLocationID" Nullable="false" />
          <NavigationProperty Name="DocumentStoreLocation" Relationship="Model.FK_Documents_DocumentStoreLocations" FromRole="Document" ToRole="DocumentStoreLocation" >
          </NavigationProperty>
          <Property Type="String" Name="Title" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="DocumentVerificationStatusID" Type="Int16" Nullable="false" />
          <NavigationProperty Name="DocumentQuestions" Relationship="Model.FK_DocumentQuestions_Documents" FromRole="Document" ToRole="DocumentQuestion" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentQuestionHistories" Relationship="Model.FK_DocumentQuestionHistory_Documents" FromRole="Document" ToRole="DocumentQuestionHistory" />
          <Property Name="ExpiryDate" Type="DateTime" Precision="3" />
          <Property Name="OriginatingEntityID" Type="Int64" />
          <Property Name="OriginatingItemID" Type="Int64" />
          <Property Name="OriginatingDocumentID" Type="Int64" />
          <Property Name="LastReminderRequestSentDate" Type="DateTime" Precision="3" />
         
        </EntityType>
        <EntityType Name="DocumentStore">
          <Key>
            <PropertyRef Name="DocumentStoreID" />
          </Key>
          <Property Name="DocumentStoreID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentID" Type="Int64" Nullable="false" />
          <Property Name="Version" Type="Int16" Nullable="false" />
          <Property Name="ContentBLOB" Type="Binary" Nullable="false" MaxLength="Max" FixedLength="false" />
          <Property Name="MimeType" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" />
          <Property Name="Size" Type="Int64" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="Ext" Type="String" Nullable="false" MaxLength="5" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="Document" Relationship="Model.FK_DocumeStore_Documents" FromRole="DocumentStore" ToRole="Documents" />
        </EntityType>
        <EntityType Name="DocumentStoreLocation">
          <Key>
            <PropertyRef Name="DocumentStoreLocationID" />
          </Key>
          <Property Name="DocumentStoreLocationID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentStoreTypeID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="ConnectionString" Type="String" Nullable="false" MaxLength="2000" Unicode="false" FixedLength="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="AuthTypeID" Type="Int16" Nullable="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="AuthDomain" Type="String" MaxLength="50" Unicode="false" FixedLength="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="AuthUser" Type="String" MaxLength="50" Unicode="false" FixedLength="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="AuthPassword" Type="String" MaxLength="50" Unicode="false" FixedLength="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="CreatedByID" Type="Int64" Nullable="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <NavigationProperty Name="AuthType" Relationship="Model.FK_DocumentStoreLocations_AuthTypes" FromRole="DocumentStoreLocations" ToRole="AuthTypes" />
          <NavigationProperty Name="DocumentStoreType" Relationship="Model.FK_DocumentStoreLocations_DocumentStoreTypes" FromRole="DocumentStoreLocations" ToRole="DocumentStoreTypes" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="UserCreatedBy" Relationship="Model.FK_DocumentStoreLocations_Users_CreatedByID" FromRole="DocumentStoreLocation" ToRole="User" />
          <NavigationProperty Name="UserUpdatedBy" Relationship="Model.FK_DocumentStoreLocations_Users_UpdatedByID" FromRole="DocumentStoreLocation" ToRole="User" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Documents" Relationship="Model.FK_Documents_DocumentStoreLocations" FromRole="DocumentStoreLocation" ToRole="Document" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="DocumentStoreType">
          <Key>
            <PropertyRef Name="DocumentStoreTypeID" />
          </Key>
          <Property Name="DocumentStoreTypeID" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="DocumentStoreLocations" Relationship="Model.FK_DocumentStoreLocations_DocumentStoreTypes" FromRole="DocumentStoreTypes" ToRole="DocumentStoreLocations" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="DocumentType">
          <Key>
            <PropertyRef Name="DocumentTypeID" />
          </Key>
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Documents" Relationship="Model.FK_Documents_DocumentTypes" FromRole="DocumentTypes" ToRole="Documents" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Boolean" Name="IsDocumentTitleEditable" Nullable="false" />
          <NavigationProperty Name="DocumentTypeQuestions" Relationship="Model.FK_DocumentTypeQuestions_DocumentTypes" FromRole="DocumentType" ToRole="DocumentTypeQuestion" />
          <Property Name="IsExpiryDateRequired" Type="Boolean" />
          <Property Name="IsUniqueEntityDocument" Type="Boolean" />
          <NavigationProperty Name="ScanSessionDocuments" Relationship="Model.FK_ScanSessionDocuments_DocumentTypes" FromRole="DocumentType" ToRole="ScanSessionDocument" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="AuthType">
          <Key>
            <PropertyRef Name="AuthTypeID" />
          </Key>
          <Property Name="AuthTypeID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="DocumentStoreLocations" Relationship="Model.FK_DocumentStoreLocations_AuthTypes" FromRole="AuthTypes" ToRole="DocumentStoreLocations" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_Documents_DocumentTypes">
          <End Role="DocumentTypes" Type="Model.DocumentType" Multiplicity="1" />
          <End Role="Documents" Type="Model.Document" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumeStore_Documents">
          <End Role="Documents" Type="Model.Document" Multiplicity="1" />
          <End Role="DocumentStore" Type="Model.DocumentStore" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Documents">
              <PropertyRef Name="DocumentID" />
            </Principal>
            <Dependent Role="DocumentStore">
              <PropertyRef Name="DocumentID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_AuthTypes">
          <End Role="AuthTypes" Type="Model.AuthType" Multiplicity="1" />
          <End Role="DocumentStoreLocations" Type="Model.DocumentStoreLocation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AuthTypes">
              <PropertyRef Name="AuthTypeID" />
            </Principal>
            <Dependent Role="DocumentStoreLocations">
              <PropertyRef Name="AuthTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_DocumentStoreTypes">
          <End Role="DocumentStoreTypes" Type="Model.DocumentStoreType" Multiplicity="1" />
          <End Role="DocumentStoreLocations" Type="Model.DocumentStoreLocation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentStoreTypes">
              <PropertyRef Name="DocumentStoreTypeID" />
            </Principal>
            <Dependent Role="DocumentStoreLocations">
              <PropertyRef Name="DocumentStoreTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="DocumentsUser">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Type="Int64" Name="UserID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="FullName" Nullable="false" MaxLength="101" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="String" Name="KnownAs" MaxLength="101" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Email" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" Precision="3" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" Precision="3" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <NavigationProperty Name="Documents" Relationship="Model.FK_Documents_Users_CreatedByID" FromRole="User" ToRole="Document" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Documents1" Relationship="Model.FK_Documents_Users_UpdatedByID" FromRole="User" ToRole="Document" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentStoreLocations" Relationship="Model.FK_DocumentStoreLocations_Users_CreatedByID" FromRole="User" ToRole="DocumentStoreLocation" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentStoreLocations1" Relationship="Model.FK_DocumentStoreLocations_Users_UpdatedByID" FromRole="User" ToRole="DocumentStoreLocation" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ScanSessions" Relationship="Model.FK_ScanSessions_Users" FromRole="DocumentsUser" ToRole="ScanSession" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="UserStatusID" Type="Int16" Nullable="false" />
          <Property Name="UserProfileDocID" Type="Int64" />
          <Property Name="OfficeLocationID" Type="Int64" />
        </EntityType>
        
         
        <Association Name="FK_Documents_Users_CreatedByID">
          <End Type="Model.DocumentsUser" Role="User" Multiplicity="1" />
          <End Type="Model.Document" Role="Document" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="Document">
              <PropertyRef Name="CreatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_Users_UpdatedByID">
          <End Type="Model.DocumentsUser" Role="User" Multiplicity="1" />
          <End Type="Model.Document" Role="Document" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="Document">
              <PropertyRef Name="UpdatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_Users_CreatedByID">
          <End Type="Model.DocumentsUser" Role="User" Multiplicity="1" />
          <End Type="Model.DocumentStoreLocation" Role="DocumentStoreLocation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="DocumentStoreLocation">
              <PropertyRef Name="CreatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_Users_UpdatedByID">
          <End Type="Model.DocumentsUser" Role="User" Multiplicity="1" />
          <End Type="Model.DocumentStoreLocation" Role="DocumentStoreLocation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="DocumentStoreLocation">
              <PropertyRef Name="UpdatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentMimeTypes">
          <End Type="Model.DocumentMimeType" Role="DocumentMimeType" Multiplicity="1" />
          <End Type="Model.Document" Role="Document" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentMimeType">
              <PropertyRef Name="DocumentMimeTypeID" />
            </Principal>
            <Dependent Role="Document">
              <PropertyRef Name="DocumentMimeTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentStoreLocations">
          <End Type="Model.DocumentStoreLocation" Role="DocumentStoreLocation" Multiplicity="1" />
          <End Type="Model.Document" Role="Document" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentStoreLocation">
              <PropertyRef Name="DocumentStoreLocationID" />
            </Principal>
            <Dependent Role="Document">
              <PropertyRef Name="DocumentStoreLocationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="DocumentQuestionHistory">
          <Key>
            <PropertyRef Name="DocumentQuestionHistoryID" />
          </Key>
          <Property Name="DocumentQuestionHistoryID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentQuestionID" Type="Int64" Nullable="false" />
          <Property Name="QuestionPassed" Type="String" MaxLength="20" Unicode="false" FixedLength="false" />
          <Property Name="CheckedByID" Type="Int64" />
          <Property Name="CheckedDate" Type="DateTime" Precision="3" />
          <Property Name="IsLatestVerifierCheck" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="DocumentQuestion" Relationship="Model.FK_DocumentQuestionHistoy_DocumentQuestions" FromRole="DocumentQuestionHistory" ToRole="DocumentQuestion" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="DocumentID" Type="Int64" Nullable="false" />
          <NavigationProperty Name="Document" Relationship="Model.FK_DocumentQuestionHistory_Documents" FromRole="DocumentQuestionHistory" ToRole="Document" />
          <Property Name="DocumentTypeQuestionID" Type="Int64" />
        </EntityType>
        <EntityType Name="DocumentQuestion">
          <Key>
            <PropertyRef Name="DocumentQuestionID" />
          </Key>
          <Property Name="DocumentQuestionID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentID" Type="Int64" Nullable="false" />
          <Property Name="DocumentTypeQuestionID" Type="Int64" Nullable="false" />
          <Property Name="QuestionPassed" Type="String" MaxLength="20" Unicode="false" FixedLength="false" />
          <Property Name="CheckedByID" Type="Int64" />
          <Property Name="CheckedDate" Type="DateTime" Precision="3" />
          <NavigationProperty Name="DocumentQuestionHistories" Relationship="Model.FK_DocumentQuestionHistoy_DocumentQuestions" FromRole="DocumentQuestion" ToRole="DocumentQuestionHistory" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Document" Relationship="Model.FK_DocumentQuestions_Documents" FromRole="DocumentQuestion" ToRole="Document" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentTypeQuestion" Relationship="Model.FK_DocumentQuestions_DocumentTypeQuestions" FromRole="DocumentQuestion" ToRole="DocumentTypeQuestion" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="Comments" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="DocumentTypeQuestion">
          <Key>
            <PropertyRef Name="DocumentTypeQuestionID" />
          </Key>
          <Property Name="DocumentTypeQuestionID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="CaptureFieldID" Type="Int16" Nullable="false" />
          <Property Name="Question" Type="String" Nullable="false" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Name="OrderBy" Type="Int64" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="DocumentQuestions" Relationship="Model.FK_DocumentQuestions_DocumentTypeQuestions" FromRole="DocumentTypeQuestion" ToRole="DocumentQuestion" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_DocumentTypeQuestions_DocumentTypes" FromRole="DocumentTypeQuestion" ToRole="DocumentType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="DocumentVerificationStatu">
          <Key>
            <PropertyRef Name="DocumentVerificationStatusID" />
          </Key>
          <Property Name="DocumentVerificationStatusID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
        </EntityType>
        <Association Name="FK_DocumentQuestionHistoy_DocumentQuestions">
          <End Type="Model.DocumentQuestion" Role="DocumentQuestion" Multiplicity="1" />
          <End Type="Model.DocumentQuestionHistory" Role="DocumentQuestionHistory" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentQuestion">
              <PropertyRef Name="DocumentQuestionID" />
            </Principal>
            <Dependent Role="DocumentQuestionHistory">
              <PropertyRef Name="DocumentQuestionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentQuestions_Documents">
          <End Type="Model.Document" Role="Document" Multiplicity="1" />
          <End Type="Model.DocumentQuestion" Role="DocumentQuestion" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Document">
              <PropertyRef Name="DocumentID" />
            </Principal>
            <Dependent Role="DocumentQuestion">
              <PropertyRef Name="DocumentID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentQuestions_DocumentTypeQuestions">
          <End Type="Model.DocumentTypeQuestion" Role="DocumentTypeQuestion" Multiplicity="1" />
          <End Type="Model.DocumentQuestion" Role="DocumentQuestion" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypeQuestion">
              <PropertyRef Name="DocumentTypeQuestionID" />
            </Principal>
            <Dependent Role="DocumentQuestion">
              <PropertyRef Name="DocumentTypeQuestionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentTypeQuestions_DocumentTypes">
          <End Type="Model.DocumentType" Role="DocumentType" Multiplicity="1" />
          <End Type="Model.DocumentTypeQuestion" Role="DocumentTypeQuestion" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentType">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="DocumentTypeQuestion">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_DocumentsAwaitingVerificationGet_Result">
          <Property Type="Int64" Name="DocumentID" Nullable="false" />
          <Property Type="Int16" Name="DocumentTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" />
          <Property Type="Int16" Name="DocumentVerificationStatusID" Nullable="false" />
          <Property Type="String" Name="DocumentDescription" Nullable="false" MaxLength="255" />
        </ComplexType>
        <ComplexType Name="Pr_DocumentsAwaitingVerificationQuestionsResetAndGet_Result">
          <Property Type="Int64" Name="DocumentQuestionID" Nullable="false" />
          <Property Type="Int64" Name="DocumentID" Nullable="false" />
          <Property Type="String" Name="QuestionPassed" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="Comments" Nullable="true" MaxLength="255" />
          <Property Type="Int16" Name="CaptureFieldID" Nullable="false" />
          <Property Type="String" Name="Question" Nullable="false" MaxLength="2000" />
          <Property Type="Int64" Name="OrderBy" Nullable="false" />
          </ComplexType>
        <Association Name="FK_DocumentQuestionHistory_Documents">
          <End Type="Model.Document" Role="Document" Multiplicity="1" />
          <End Type="Model.DocumentQuestionHistory" Role="DocumentQuestionHistory" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Document">
              <PropertyRef Name="DocumentID" />
            </Principal>
            <Dependent Role="DocumentQuestionHistory">
              <PropertyRef Name="DocumentID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_DocumentVerificationQuestionsGet_Result">
          <Property Type="Int64" Name="DocumentQuestionID" Nullable="false" />
          <Property Type="Int64" Name="DocumentID" Nullable="false" />
          <Property Type="String" Name="QuestionPassed" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="Comments" Nullable="true" MaxLength="255" />
          <Property Type="Int16" Name="CaptureFieldID" Nullable="false" />
          <Property Type="String" Name="Question" Nullable="false" MaxLength="2000" />
          <Property Type="Int64" Name="OrderBy" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_DocumentsGet_Result">
          <Property Type="Int64" Name="DocumentID" Nullable="false" />
          <Property Type="Int16" Name="DocumentTypeID" Nullable="false" />
          <Property Type="Int64" Name="DocumentStoreLocationID" Nullable="false" />
          <Property Type="Int32" Name="EntityID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="23" />
          <Property Type="Int16" Name="DocumentMimeTypeID" Nullable="false" />
          <Property Type="Int16" Name="DocumentVerificationStatusID" Nullable="false" />
          <Property Type="DateTime" Name="ExpiryDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="OriginatingEntityID" Nullable="true" />
          <Property Type="Int64" Name="OriginatingItemID" Nullable="true" />
          <Property Type="Int64" Name="OriginatingDocumentID" Nullable="true" />
          <Property Type="Boolean" Name="IsUniqueEntityDocument" Nullable="true" />
          <Property Type="String" Name="DocumentType" Nullable="false" MaxLength="255" />
          <Property Type="Int16" Name="Currentversion" Nullable="true" />
        </ComplexType>
        <EntityType Name="ScanSessionDocument">
          <Key>
            <PropertyRef Name="ScanSessionDocumentID" />
          </Key>
          <Property Name="ScanSessionDocumentID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ScanSessionID" Type="Int64" Nullable="false" />
          <Property Name="DocumentID" Type="Int64" />
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="EntityID" Type="Int32" Nullable="false" />
          <Property Name="ItemID" Type="Int64" Nullable="false" />
          <Property Name="RelatedFieldKey" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_ScanSessionDocuments_DocumentTypes" FromRole="ScanSessionDocument" ToRole="DocumentType" />
          <NavigationProperty Name="ScanSession" Relationship="Model.FK_ScanSessionDocuments_ScanSessions" FromRole="ScanSessionDocument" ToRole="ScanSession" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="DocumentStoreLocationID" Type="Int64" Nullable="false" />
        </EntityType>
        <EntityType Name="ScanSession">
          <Key>
            <PropertyRef Name="ScanSessionID" />
          </Key>
          <Property Name="ScanSessionID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="UserID" Type="Int64" Nullable="false" />
          <Property Name="ScanToken" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="false" />
          <Property Name="TokenExpiryDate" Type="DateTime" Nullable="false" Precision="3" />
          <NavigationProperty Name="Documents" Relationship="Model.FK_ScanSessionDocuments_ScanSessions" FromRole="ScanSession" ToRole="ScanSessionDocument" />
          <NavigationProperty Name="CreatedBy" Relationship="Model.FK_ScanSessions_Users" FromRole="ScanSession" ToRole="DocumentsUser" />
        </EntityType>
        <Association Name="FK_ScanSessionDocuments_DocumentTypes">
          <End Type="Model.DocumentType" Role="DocumentType" Multiplicity="1" />
          <End Type="Model.ScanSessionDocument" Role="ScanSessionDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentType">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ScanSessionDocument">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ScanSessionDocuments_ScanSessions">
          <End Type="Model.ScanSession" Role="ScanSession" Multiplicity="1" />
          <End Type="Model.ScanSessionDocument" Role="ScanSessionDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ScanSession">
              <PropertyRef Name="ScanSessionID" />
            </Principal>
            <Dependent Role="ScanSessionDocument">
              <PropertyRef Name="ScanSessionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_ScanSessionCreateSingle_Result">
          <Property Type="String" Name="ScanToken" Nullable="true" MaxLength="16" />
        </ComplexType>
        <Association Name="FK_ScanSessions_Users">
          <End Type="Model.DocumentsUser" Role="DocumentsUser" Multiplicity="1" />
          <End Type="Model.ScanSession" Role="ScanSession" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentsUser">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="ScanSession">
              <PropertyRef Name="UserID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="DocumentContext">
          <EntitySetMapping Name="DocumentMimeTypes"><EntityTypeMapping TypeName="Model.DocumentMimeType"><MappingFragment StoreEntitySet="DocumentMimeTypes">
            <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="DocumentMimeTypeID" ColumnName="DocumentMimeTypeID" />
            <ScalarProperty Name="MimeType" ColumnName="MimeType" />
            <ScalarProperty Name="IconFileName" ColumnName="IconFileName" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="Documents"><EntityTypeMapping TypeName="Model.Document"><MappingFragment StoreEntitySet="Documents">
            <ScalarProperty Name="LastReminderRequestSentDate" ColumnName="LastReminderRequestSentDate" />
                <ScalarProperty Name="OriginatingDocumentID" ColumnName="OriginatingDocumentID" />
                <ScalarProperty Name="OriginatingItemID" ColumnName="OriginatingItemID" />
                <ScalarProperty Name="OriginatingEntityID" ColumnName="OriginatingEntityID" />
                <ScalarProperty Name="ExpiryDate" ColumnName="ExpiryDate" />
                <ScalarProperty Name="DocumentVerificationStatusID" ColumnName="DocumentVerificationStatusID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="DocumentMimeTypeID" ColumnName="DocumentMimeTypeID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
            <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
            <ScalarProperty Name="EntityID" ColumnName="EntityID" />
            <ScalarProperty Name="ItemID" ColumnName="ItemID" />
            <ScalarProperty Name="Description" ColumnName="Description" />
            <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="DocumentStores"><EntityTypeMapping TypeName="Model.DocumentStore"><MappingFragment StoreEntitySet="DocumentStore">
            <ScalarProperty Name="DocumentStoreID" ColumnName="DocumentStoreID" />
            <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
            <ScalarProperty Name="Version" ColumnName="Version" />
            <ScalarProperty Name="ContentBLOB" ColumnName="ContentBLOB" />
            <ScalarProperty Name="MimeType" ColumnName="MimeType" />
            <ScalarProperty Name="Size" ColumnName="Size" />
            <ScalarProperty Name="Name" ColumnName="Name" />
            <ScalarProperty Name="Ext" ColumnName="Ext" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="DocumentStoreLocations"><EntityTypeMapping TypeName="Model.DocumentStoreLocation"><MappingFragment StoreEntitySet="DocumentStoreLocations">
            <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
            <ScalarProperty Name="DocumentStoreTypeID" ColumnName="DocumentStoreTypeID" />
            <ScalarProperty Name="Title" ColumnName="Title" />
            <ScalarProperty Name="ConnectionString" ColumnName="ConnectionString" />
            <ScalarProperty Name="AuthTypeID" ColumnName="AuthTypeID" />
            <ScalarProperty Name="AuthDomain" ColumnName="AuthDomain" />
            <ScalarProperty Name="AuthUser" ColumnName="AuthUser" />
            <ScalarProperty Name="AuthPassword" ColumnName="AuthPassword" />
            <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
            <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
            <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
            <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="DocumentStoreTypes"><EntityTypeMapping TypeName="Model.DocumentStoreType"><MappingFragment StoreEntitySet="DocumentStoreTypes">
            <ScalarProperty Name="DocumentStoreTypeID" ColumnName="DocumentStoreTypeID" />
            <ScalarProperty Name="Description" ColumnName="Description" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="DocumentTypes"><EntityTypeMapping TypeName="Model.DocumentType"><MappingFragment StoreEntitySet="DocumentTypes">
            <ScalarProperty Name="IsUniqueEntityDocument" ColumnName="IsUniqueEntityDocument" />
                <ScalarProperty Name="IsExpiryDateRequired" ColumnName="IsExpiryDateRequired" />
                <ScalarProperty Name="IsDocumentTitleEditable" ColumnName="IsDocumentTitleEditable" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
            <ScalarProperty Name="Description" ColumnName="Description" />
            <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="AuthTypes"><EntityTypeMapping TypeName="Model.AuthType"><MappingFragment StoreEntitySet="AuthTypes">
            <ScalarProperty Name="AuthTypeID" ColumnName="AuthTypeID" />
            <ScalarProperty Name="Title" ColumnName="Title" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_DocumentCopyMany" FunctionName="Model.Store.Pr_DocumentCopyMany" />
          <EntitySetMapping Name="DocumentsUsers">
            <EntityTypeMapping TypeName="Model.DocumentsUser">
              <MappingFragment StoreEntitySet="Users">
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="UserProfileDocID" ColumnName="UserProfileDocID" />
                <ScalarProperty Name="UserStatusID" ColumnName="UserStatusID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_DocumentTemplateDataGet" FunctionName="Model.Store.Pr_DocumentTemplateDataGet" />
          <EntitySetMapping Name="DocumentQuestionHistories">
            <EntityTypeMapping TypeName="Model.DocumentQuestionHistory">
              <MappingFragment StoreEntitySet="DocumentQuestionHistory">
                <ScalarProperty Name="DocumentTypeQuestionID" ColumnName="DocumentTypeQuestionID" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="IsLatestVerifierCheck" ColumnName="IsLatestVerifierCheck" />
                <ScalarProperty Name="CheckedDate" ColumnName="CheckedDate" />
                <ScalarProperty Name="CheckedByID" ColumnName="CheckedByID" />
                <ScalarProperty Name="QuestionPassed" ColumnName="QuestionPassed" />
                <ScalarProperty Name="DocumentQuestionID" ColumnName="DocumentQuestionID" />
                <ScalarProperty Name="DocumentQuestionHistoryID" ColumnName="DocumentQuestionHistoryID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentQuestions">
            <EntityTypeMapping TypeName="Model.DocumentQuestion">
              <MappingFragment StoreEntitySet="DocumentQuestions">
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="CheckedDate" ColumnName="CheckedDate" />
                <ScalarProperty Name="CheckedByID" ColumnName="CheckedByID" />
                <ScalarProperty Name="QuestionPassed" ColumnName="QuestionPassed" />
                <ScalarProperty Name="DocumentTypeQuestionID" ColumnName="DocumentTypeQuestionID" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="DocumentQuestionID" ColumnName="DocumentQuestionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentTypeQuestions">
            <EntityTypeMapping TypeName="Model.DocumentTypeQuestion">
              <MappingFragment StoreEntitySet="DocumentTypeQuestions">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
                <ScalarProperty Name="Question" ColumnName="Question" />
                <ScalarProperty Name="CaptureFieldID" ColumnName="CaptureFieldID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="DocumentTypeQuestionID" ColumnName="DocumentTypeQuestionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentVerificationStatus">
            <EntityTypeMapping TypeName="Model.DocumentVerificationStatu">
              <MappingFragment StoreEntitySet="DocumentVerificationStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="DocumentVerificationStatusID" ColumnName="DocumentVerificationStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_DocumentsAwaitingVerificationGet" FunctionName="Model.Store.Pr_DocumentsAwaitingVerificationGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_DocumentsAwaitingVerificationGet_Result">
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="DocumentVerificationStatusID" ColumnName="DocumentVerificationStatusID" />
                <ScalarProperty Name="DocumentDescription" ColumnName="DocumentDescription" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_DocumentsAwaitingVerificationQuestionsResetAndGet" FunctionName="Model.Store.Pr_DocumentsAwaitingVerificationQuestionsResetAndGet" >
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_DocumentsAwaitingVerificationQuestionsResetAndGet_Result">
                <ScalarProperty Name="DocumentQuestionID" ColumnName="DocumentQuestionID" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="QuestionPassed" ColumnName="QuestionPassed" />
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="CaptureFieldID" ColumnName="CaptureFieldID" />
                <ScalarProperty Name="Question" ColumnName="Question" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
                </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_DocumentQuestionUpdate" FunctionName="Model.Store.Pr_DocumentQuestionUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_DocumentVerificationQuestionsGet" FunctionName="Model.Store.Pr_DocumentVerificationQuestionsGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_DocumentVerificationQuestionsGet_Result">
                <ScalarProperty Name="DocumentQuestionID" ColumnName="DocumentQuestionID" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="QuestionPassed" ColumnName="QuestionPassed" />
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="CaptureFieldID" ColumnName="CaptureFieldID" />
                <ScalarProperty Name="Question" ColumnName="Question" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="ScanSessionDocuments">
            <EntityTypeMapping TypeName="Model.ScanSessionDocument">
              <MappingFragment StoreEntitySet="ScanSessionDocuments">
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="RelatedFieldKey" ColumnName="RelatedFieldKey" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="ScanSessionID" ColumnName="ScanSessionID" />
                <ScalarProperty Name="ScanSessionDocumentID" ColumnName="ScanSessionDocumentID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ScanSessions">
            <EntityTypeMapping TypeName="Model.ScanSession">
              <MappingFragment StoreEntitySet="ScanSessions">
                <ScalarProperty Name="TokenExpiryDate" ColumnName="TokenExpiryDate" />
                <ScalarProperty Name="ScanToken" ColumnName="ScanToken" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="ScanSessionID" ColumnName="ScanSessionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ScanSessionCreateSingle" FunctionName="Model.Store.Pr_ScanSessionCreateSingle" >
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ScanSessionCreateSingle_Result">
                <ScalarProperty Name="ScanToken" ColumnName="ScanToken" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_DocumentIDUpdateEntity" FunctionName="Model.Store.Pr_DocumentIDUpdateEntity" />
          <FunctionImportMapping FunctionImportName="Pr_DocumentsGet" FunctionName="Model.Store.Pr_DocumentsGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_DocumentsGet_Result">
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="DocumentMimeTypeID" ColumnName="DocumentMimeTypeID" />
                <ScalarProperty Name="DocumentVerificationStatusID" ColumnName="DocumentVerificationStatusID" />
                <ScalarProperty Name="ExpiryDate" ColumnName="ExpiryDate" />
                <ScalarProperty Name="OriginatingEntityID" ColumnName="OriginatingEntityID" />
                <ScalarProperty Name="OriginatingItemID" ColumnName="OriginatingItemID" />
                <ScalarProperty Name="OriginatingDocumentID" ColumnName="OriginatingDocumentID" />
                <ScalarProperty Name="IsUniqueEntityDocument" ColumnName="IsUniqueEntityDocument" />
                <ScalarProperty Name="DocumentType" ColumnName="DocumentType" />
                <ScalarProperty Name="Currentversion" ColumnName="Currentversion" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
        <DesignerProperty Name="UseLegacyProvider" Value="False" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="DocumentModel" ZoomLevel="80">
        <EntityTypeShape EntityType="Model.DocumentMimeType" Width="1.875" PointX="0.625" PointY="0.5" Height="1.9802864583333317" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.Document" Width="2.125" PointX="4.125" PointY="0.5" Height="4.480205078125" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DocumentStore" Width="1.5" PointX="9.25" PointY="0.625" Height="2.7494921874999996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DocumentStoreLocation" Width="2.125" PointX="7" PointY="3.625" Height="4.480205078125" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DocumentStoreType" Width="2.125" PointX="10.375" PointY="3.875" Height="1.5956835937499996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DocumentType" Width="1.5" PointX="7.25" PointY="0.5" Height="1.7879850260416665" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.AuthType" Width="2.125" PointX="9.875" PointY="5.75" Height="1.5956835937499996" IsExpanded="true" />
        <AssociationConnector Association="Model.FK_Documents_DocumentTypes" ManuallyRouted="false">
          <ConnectorPoint PointX="7.25" PointY="1.3939925130208333" />
          <ConnectorPoint PointX="6.25" PointY="1.3939925130208333" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_DocumeStore_Documents" ManuallyRouted="false">
          <ConnectorPoint PointX="6.25" PointY="2.8624886067708331" />
          <ConnectorPoint PointX="9.25" PointY="2.8624886067708331" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_DocumentStoreLocations_AuthTypes" ManuallyRouted="false">
          <ConnectorPoint PointX="9.875" PointY="6.547841796875" />
          <ConnectorPoint PointX="9.125" PointY="6.547841796875" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_DocumentStoreLocations_DocumentStoreTypes" ManuallyRouted="false">
          <ConnectorPoint PointX="10.375" PointY="4.672841796875" />
          <ConnectorPoint PointX="9.125" PointY="4.672841796875" />
        </AssociationConnector>
        <EntityTypeShape EntityType="Model.DocumentsUser" Width="2.125" PointX="0.5" PointY="2.625" Height="6.21091796875" />
         
       
        
       
        <AssociationConnector Association="Model.FK_Documents_Users_CreatedByID" >
          <ConnectorPoint PointX="2.625" PointY="4.2448725954691566" />
          <ConnectorPoint PointX="4.125" PointY="4.2448725954691566" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_Documents_Users_UpdatedByID" >
          <ConnectorPoint PointX="2.625" PointY="3.3724362977345788" />
          <ConnectorPoint PointX="4.125" PointY="3.3724362977345788" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_DocumentStoreLocations_Users_CreatedByID" >
          <ConnectorPoint PointX="2.625" PointY="6.6326806640625" />
          <ConnectorPoint PointX="7" PointY="6.6326806640625" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_DocumentStoreLocations_Users_UpdatedByID" >
          <ConnectorPoint PointX="2.625" PointY="5.952861328125" />
          <ConnectorPoint PointX="7" PointY="5.952861328125" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_Documents_DocumentMimeTypes" >
          <ConnectorPoint PointX="2.5" PointY="1.4901432291666659" />
          <ConnectorPoint PointX="4.125" PointY="1.4901432291666659" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_Documents_DocumentStoreLocations" >
          <ConnectorPoint PointX="7" PointY="4.3026025390625" />
          <ConnectorPoint PointX="6.25" PointY="4.3026025390625" />
        </AssociationConnector>
        <EntityTypeShape EntityType="Model.DocumentQuestionHistory" Width="1.5" PointX="15" PointY="10.375" />
        <EntityTypeShape EntityType="Model.DocumentQuestion" Width="1.5" PointX="12.75" PointY="10.125" />
        <EntityTypeShape EntityType="Model.DocumentTypeQuestion" Width="1.5" PointX="9.5" PointY="13.5" />
        <EntityTypeShape EntityType="Model.DocumentVerificationStatu" Width="1.5" PointX="4.75" PointY="15.5" />
        <AssociationConnector Association="Model.FK_DocumentQuestionHistoy_DocumentQuestions" />
        <AssociationConnector Association="Model.FK_DocumentQuestions_Documents" />
        <AssociationConnector Association="Model.FK_DocumentQuestions_DocumentTypeQuestions" />
        <AssociationConnector Association="Model.FK_DocumentTypeQuestions_DocumentTypes" />
        <AssociationConnector Association="Model.FK_DocumentQuestionHistory_Documents" />
      </Diagram>
      <Diagram DiagramId="2dadbe3d2fc748beaa005cb688824740" Name="ScanSessions" >
        <EntityTypeShape EntityType="Model.ScanSessionDocument" Width="1.5" PointX="4.625" PointY="0.875" />
        <EntityTypeShape EntityType="Model.ScanSession" Width="1.5" PointX="2.375" PointY="1.25" />
        <AssociationConnector Association="Model.FK_ScanSessionDocuments_ScanSessions" />
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>