<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">


<xs:element name="SUTARTYS">
  <xs:annotation><xs:documentation>Vartotojo sutartys organizacijoje</xs:documentation></xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="SUTARTIS" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="SUTARTIS">
  <xs:annotation><xs:documentation/></xs:annotation>
    <xs:complexType>
      <xs:sequence>


      <xs:element minOccurs="1" maxOccurs="1" name="VASU_ID" type="xs:long">
        <xs:annotation><xs:documentation>Sutarties identifikatorius [VART.VARTOTOJU_SUTARTYS.VASU_ID]</xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="1" maxOccurs="1" name="VASU_NR" type="xs:string">
        <xs:annotation><xs:documentation>Sutarties numeris [VART.VARTOTOJU_SUTARTYS.VASU_NR]</xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="VASU_DATA" type="t_data">
        <xs:annotation><xs:documentation>Sutarties data [VART.VARTOTOJU_SUTARTYS.VASU_DATA]</xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="1" maxOccurs="1" name="VAR_ID" type="xs:long">
        <xs:annotation><xs:documentation>Vartotojo identifikatorius [VART.VARTOTOJAI.VAR_ID]</xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="SDTI_TIPAS" type="xs:integer">
        <xs:annotation><xs:documentation>Sutarties dalies tipas [VART.SUTARCIU_DALYS.SDTI_TIPAS]</xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="SDTI_PAVADINIMAS" type="xs:string">
        <xs:annotation><xs:documentation>Sutarties dalies tipo pavadinimas [VART.SUTARCIU_DALIU_TIPAI.SDTI_PAV_I]</xs:documentation></xs:annotation>
      </xs:element>

    </xs:sequence>
  </xs:complexType>
</xs:element>







<xs:simpleType name="t_data">
  <xs:annotation><xs:documentation>Data</xs:documentation></xs:annotation>
  <xs:restriction base="xs:string">
    <xs:pattern value="\d{4}-\d{2}-\d{2}"/>
  </xs:restriction>
</xs:simpleType>


</xs:schema>
