<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema version="5.0" 
            xmlns:nwis="http://water.usgs.gov/XML/NWIS/5.0"
            
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            
            elementFormDefault="qualified">
   <xsd:complexType name="ProjectType" abstract="false">
      <xsd:annotation>
         <xsd:documentation>
            <Definition>Project. A USGS funded project. Can be local (office), regional, or national in scope.</Definition>
            <Nwisdb>PROJECT</Nwisdb>
         </xsd:documentation>
      </xsd:annotation>
      <xsd:sequence>
         <xsd:element name="Number">
            <xsd:annotation>
               <xsd:documentation>
                  <Definition>Project number. The USGS project or account number by which this project is identified. This can and in most cases should be the number used by the current USGS accounting system that funds the project. Exceptions may be possible.</Definition>
                  <Nwisdb>PROJECT.project_no</Nwisdb>
               </xsd:documentation>
            </xsd:annotation>
            <xsd:simpleType>
               <xsd:restriction base="xsd:token">
                  <xsd:minLength value="1"/>
                  <xsd:maxLength value="12"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="Name">
            <xsd:annotation>
               <xsd:documentation>
                  <Definition>Project name. The unique name that identifies the project.</Definition>
               </xsd:documentation>
            </xsd:annotation>
            <xsd:simpleType>
               <xsd:restriction base="xsd:token">
                  <xsd:minLength value="1"/>
                  <xsd:maxLength value="64"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="Description">
            <xsd:annotation>
               <xsd:documentation>
                  <Definition>Project description. A text field that describes the project.</Definition>
                  <Nwisdb>PROJECT.project_ds</Nwisdb>
               </xsd:documentation>
            </xsd:annotation>
            <xsd:simpleType>
               <xsd:restriction base="xsd:token">
                  <xsd:minLength value="1"/>
                  <xsd:maxLength value="256"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="Start" type="xsd:dateTime">
            <xsd:annotation>
               <xsd:documentation>
                  <Definition>Project start date. The date the project begins or is scheduled to begin.</Definition>
                  <Nwisdb>PROJECT.project_start_dt</Nwisdb>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element name="End" type="xsd:dateTime" minOccurs="0" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <Nwisdb>PROJECT.project_end_dt</Nwisdb>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
      </xsd:sequence>
   </xsd:complexType>
</xsd:schema>
