<!--
		SIF Implementation Specification (New Zealand) 3.1
		(8 December, 2020
)
		
		Infrastructure Version: v3.1
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/datamodel/nz/3.1" targetNamespace="http://www.sifassociation.org/datamodel/nz/3.1" elementFormDefault="qualified" version="3.1 (rc 5)">
  <xs:complexType name="StaffPersonalType">
    <xs:sequence>
      <xs:element name="StaffPersonalRefId" minOccurs="0" nillable="true" type="RefIdType" />
      <xs:element name="StaffPersonalLocalId" minOccurs="0" type="LocalIdType" />
      <xs:element name="ESLPairwiseId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="SchoolSMSUserId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="EnableLogin" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="PersonInfo" minOccurs="0" type="PersonInfoType" />
      <xs:element name="RecordAudit" minOccurs="0" nillable="true" type="RecordAuditType" />
    </xs:sequence>
  </xs:complexType>

  <xs:element name="StaffPersonal" type="StaffPersonalType">
    <xs:unique name="StaffPersonalKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StaffPersonalRefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="StaffPersonalCollectionType">
    <xs:sequence>
      <xs:element name="StaffPersonal" type="StaffPersonalType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StaffPersonals" type="StaffPersonalCollectionType" />

</xs:schema>