<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Individual" targetNamespace="http://sdm-fsa-register.co.uk/documents/Individual.xsd" xmlns:mstns="http://sdm-fsa-register.co.uk/documents/Individual.xsd" xmlns="http://sdm-fsa-register.co.uk/documents/Individual.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="FsaMonthlyConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="FsaMonthlyConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FsaBackendCs.Properties.Settings.GlobalReference.Default.FsaMonthlyConnectionString" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Individual" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="Individual" msprop:Generator_DataSetName="Individual">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="IndividualDetail" msprop:Generator_UserTableName="IndividualDetail" msprop:Generator_RowDeletedName="IndividualDetailRowDeleted" msprop:Generator_RowChangedName="IndividualDetailRowChanged" msprop:Generator_RowClassName="IndividualDetailRow" msprop:Generator_RowChangingName="IndividualDetailRowChanging" msprop:Generator_RowEvArgName="IndividualDetailRowChangeEvent" msprop:Generator_RowEvHandlerName="IndividualDetailRowChangeEventHandler" msprop:Generator_TableClassName="IndividualDetailDataTable" msprop:Generator_TableVarName="tableIndividualDetail" msprop:Generator_RowDeletingName="IndividualDetailRowDeleting" msprop:Generator_TablePropName="IndividualDetail">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Reference" msprop:Generator_UserColumnName="Reference" msprop:Generator_ColumnVarNameInTable="columnReference" msprop:Generator_ColumnPropNameInRow="Reference" msprop:Generator_ColumnPropNameInTable="ReferenceColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="8" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="70" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Modified" msprop:Generator_UserColumnName="Modified" msprop:Generator_ColumnVarNameInTable="columnModified" msprop:Generator_ColumnPropNameInRow="Modified" msprop:Generator_ColumnPropNameInTable="ModifiedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Status" msprop:Generator_UserColumnName="Status" msprop:Generator_ColumnVarNameInTable="columnStatus" msprop:Generator_ColumnPropNameInRow="Status" msprop:Generator_ColumnPropNameInTable="StatusColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsOnWatchList" msdata:ReadOnly="true" msprop:Generator_UserColumnName="IsOnWatchList" msprop:Generator_ColumnVarNameInTable="columnIsOnWatchList" msprop:Generator_ColumnPropNameInRow="IsOnWatchList" msprop:Generator_ColumnPropNameInTable="IsOnWatchListColumn" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Function" msprop:Generator_UserTableName="Function" msprop:Generator_RowDeletedName="FunctionRowDeleted" msprop:Generator_RowChangedName="FunctionRowChanged" msprop:Generator_RowClassName="FunctionRow" msprop:Generator_RowChangingName="FunctionRowChanging" msprop:Generator_RowEvArgName="FunctionRowChangeEvent" msprop:Generator_RowEvHandlerName="FunctionRowChangeEventHandler" msprop:Generator_TableClassName="FunctionDataTable" msprop:Generator_TableVarName="tableFunction" msprop:Generator_RowDeletingName="FunctionRowDeleting" msprop:Generator_TablePropName="Function">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Reference" msprop:Generator_UserColumnName="Reference" msprop:Generator_ColumnVarNameInTable="columnReference" msprop:Generator_ColumnPropNameInRow="Reference" msprop:Generator_ColumnPropNameInTable="ReferenceColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="8" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OrganisationReference" msprop:Generator_UserColumnName="OrganisationReference" msprop:Generator_ColumnVarNameInTable="columnOrganisationReference" msprop:Generator_ColumnPropNameInRow="OrganisationReference" msprop:Generator_ColumnPropNameInTable="OrganisationReferenceColumn" type="xs:int" />
              <xs:element name="OrganisationName" msprop:Generator_UserColumnName="OrganisationName" msprop:Generator_ColumnVarNameInTable="columnOrganisationName" msprop:Generator_ColumnPropNameInRow="OrganisationName" msprop:Generator_ColumnPropNameInTable="OrganisationNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="130" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="StartDate" msprop:Generator_UserColumnName="StartDate" msprop:Generator_ColumnVarNameInTable="columnStartDate" msprop:Generator_ColumnPropNameInRow="StartDate" msprop:Generator_ColumnPropNameInTable="StartDateColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="EndDate" msprop:Generator_UserColumnName="EndDate" msprop:Generator_ColumnVarNameInTable="columnEndDate" msprop:Generator_ColumnPropNameInRow="EndDate" msprop:Generator_ColumnPropNameInTable="EndDateColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="75" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Employment" msprop:Generator_UserTableName="Employment" msprop:Generator_RowDeletedName="EmploymentRowDeleted" msprop:Generator_RowChangedName="EmploymentRowChanged" msprop:Generator_RowClassName="EmploymentRow" msprop:Generator_RowChangingName="EmploymentRowChanging" msprop:Generator_RowEvArgName="EmploymentRowChangeEvent" msprop:Generator_RowEvHandlerName="EmploymentRowChangeEventHandler" msprop:Generator_TableClassName="EmploymentDataTable" msprop:Generator_TableVarName="tableEmployment" msprop:Generator_RowDeletingName="EmploymentRowDeleting" msprop:Generator_TablePropName="Employment">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Reference" msprop:Generator_UserColumnName="Reference" msprop:Generator_ColumnVarNameInTable="columnReference" msprop:Generator_ColumnPropNameInRow="Reference" msprop:Generator_ColumnPropNameInTable="ReferenceColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="8" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OrganisationReference" msprop:Generator_UserColumnName="OrganisationReference" msprop:Generator_ColumnVarNameInTable="columnOrganisationReference" msprop:Generator_ColumnPropNameInRow="OrganisationReference" msprop:Generator_ColumnPropNameInTable="OrganisationReferenceColumn" type="xs:int" />
              <xs:element name="OrganisationName" msprop:Generator_UserColumnName="OrganisationName" msprop:Generator_ColumnVarNameInTable="columnOrganisationName" msprop:Generator_ColumnPropNameInRow="OrganisationName" msprop:Generator_ColumnPropNameInTable="OrganisationNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="130" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="StartDate" msprop:Generator_UserColumnName="StartDate" msprop:Generator_ColumnVarNameInTable="columnStartDate" msprop:Generator_ColumnPropNameInRow="StartDate" msprop:Generator_ColumnPropNameInTable="StartDateColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="EndDate" msprop:Generator_UserColumnName="EndDate" msprop:Generator_ColumnVarNameInTable="columnEndDate" msprop:Generator_ColumnPropNameInRow="EndDate" msprop:Generator_ColumnPropNameInTable="EndDateColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:IndividualDetail" />
      <xs:field xpath="mstns:Reference" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="IndividualDetail_Employment" msdata:parent="IndividualDetail" msdata:child="Employment" msdata:parentkey="Reference" msdata:childkey="Reference" msprop:Generator_UserRelationName="IndividualDetail_Employment" msprop:Generator_RelationVarName="relationIndividualDetail_Employment" msprop:Generator_UserChildTable="Employment" msprop:Generator_UserParentTable="IndividualDetail" msprop:Generator_ParentPropName="IndividualDetailRow" msprop:Generator_ChildPropName="GetEmploymentRows" />
      <msdata:Relationship name="IndividualDetail_Function" msdata:parent="IndividualDetail" msdata:child="Function" msdata:parentkey="Reference" msdata:childkey="Reference" msprop:Generator_UserRelationName="IndividualDetail_Function" msprop:Generator_RelationVarName="relationIndividualDetail_Function" msprop:Generator_UserChildTable="Function" msprop:Generator_UserParentTable="IndividualDetail" msprop:Generator_ParentPropName="IndividualDetailRow" msprop:Generator_ChildPropName="GetFunctionRows" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>
