<?xml version="1.0" encoding="utf-16"?>
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="cars">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element maxOccurs="unbounded" name="model">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="id" type="xsd:int" />
              <xsd:element name="last_updated" type="xsd:dateTime" />
              <xsd:element name="name" type="xsd:string" />
              <xsd:element name="url" type="xsd:string" />
              <xsd:element name="brand" type="xsd:int" />
              <xsd:element name="price_from" type="xsd:decimal" />
              <xsd:element name="price_to" type="xsd:decimal" />
              <xsd:element name="year_start" type="xsd:int" />
              <xsd:element name="year_end" type="xsd:string" />
              <xsd:element name="introduction" type="xsd:string" />
              <xsd:element name="overview" type="xsd:string" />
              <xsd:element name="order_by" type="xsd:int" />
              <xsd:element name="similar" type="xsd:int" />
              <xsd:element name="status" type="xsd:int" />
              <xsd:element name="files">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element maxOccurs="unbounded" name="file">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="id" type="xsd:int" />
                          <xsd:element name="name" type="xsd:string" />
                          <xsd:element name="path" type="xsd:string" />
                          <xsd:element name="resize_path" type="xsd:string" />
                          <xsd:element name="type" type="xsd:string" />
                          <xsd:element name="width" type="xsd:int" />
                          <xsd:element name="height" type="xsd:int" />
                          <xsd:element name="category" type="xsd:string" />
                        </xsd:sequence>
                        <xsd:attribute name="id" type="xsd:int" />
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                  <xsd:attribute name="total" type="xsd:int" />
                </xsd:complexType>
              </xsd:element>
              <xsd:element name="variations">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element maxOccurs="unbounded" name="variation">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="id" type="xsd:int" />
                          <xsd:element name="name" type="xsd:string" />
                          <xsd:element name="url" type="xsd:string" />
                          <xsd:element name="overview" type="xsd:string" />
                          <xsd:element name="retail_price" type="xsd:decimal" />
                          <xsd:element name="delivery_cost_and_plates" type="xsd:decimal" />
                          <xsd:element name="road_fund_cost" type="xsd:decimal" />
                          <xsd:element name="gear_type" type="xsd:string" />
                          <xsd:element name="fuel_type" type="xsd:int" />
                          <xsd:element name="list_order" type="xsd:int" />
                          <xsd:element name="status" type="xsd:int" />
                          <xsd:element name="last_updated" type="xsd:dateTime" />
                          <xsd:element name="year_start" type="xsd:int" />
                          <xsd:element name="year_end" type="xsd:string" />
                          <xsd:element name="files">
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element maxOccurs="unbounded" name="file">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:element name="id" type="xsd:int" />
                                      <xsd:element name="name" type="xsd:string" />
                                      <xsd:element name="path" type="xsd:string" />
                                      <xsd:element name="resize_path" type="xsd:string" />
                                      <xsd:element name="type" type="xsd:string" />
                                      <xsd:element name="width" type="xsd:int" />
                                      <xsd:element name="height" type="xsd:int" />
                                      <xsd:element name="category" type="xsd:string" />
                                    </xsd:sequence>
                                    <xsd:attribute name="id" type="xsd:int" />
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                              <xsd:attribute name="total" type="xsd:int" />
                            </xsd:complexType>
                          </xsd:element>
                          <xsd:element name="details">
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element maxOccurs="unbounded" name="detail">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:element name="id" type="xsd:int" />
                                      <xsd:element name="name" type="xsd:string" />
                                      <xsd:element name="value" type="xsd:int" />
                                      <xsd:element name="list_order" type="xsd:string" />
                                      <xsd:element name="categories">
                                        <xsd:complexType>
                                          <xsd:sequence>
                                            <xsd:element name="category">
                                              <xsd:complexType>
                                                <xsd:sequence>
                                                  <xsd:element name="id" type="xsd:int" />
                                                  <xsd:element name="name" type="xsd:string" />
                                                  <xsd:element name="url" type="xsd:string" />
                                                  <xsd:element name="list_order" type="xsd:int" />
                                                </xsd:sequence>
                                              </xsd:complexType>
                                            </xsd:element>
                                          </xsd:sequence>
                                          <xsd:attribute name="total" type="xsd:int" />
                                        </xsd:complexType>
                                      </xsd:element>
                                    </xsd:sequence>
                                    <xsd:attribute name="id" type="xsd:int" />
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                              <xsd:attribute name="total" type="xsd:int" />
                            </xsd:complexType>
                          </xsd:element>
                          <xsd:element name="colours">
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element maxOccurs="unbounded" name="colour">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:element name="id" type="xsd:int" />
                                      <xsd:element name="name" type="xsd:string" />
                                      <xsd:element name="rgb" type="xsd:string" />
                                      <xsd:element name="price_modification" type="xsd:decimal" />
                                      <xsd:element name="files">
                                        <xsd:complexType>
                                          <xsd:sequence>
                                            <xsd:element maxOccurs="unbounded" name="file">
                                              <xsd:complexType>
                                                <xsd:sequence>
                                                  <xsd:element name="id" type="xsd:int" />
                                                  <xsd:element name="name" type="xsd:string" />
                                                  <xsd:element name="width" type="xsd:int" />
                                                  <xsd:element name="height" type="xsd:int" />
                                                  <xsd:element name="type" type="xsd:string" />
                                                  <xsd:element name="path" type="xsd:string" />
                                                  <xsd:element name="resize_path" type="xsd:string" />
                                                  <xsd:element name="category" type="xsd:string" />
                                                </xsd:sequence>
                                                <xsd:attribute name="id" type="xsd:int" />
                                              </xsd:complexType>
                                            </xsd:element>
                                          </xsd:sequence>
                                          <xsd:attribute name="total" type="xsd:int" />
                                        </xsd:complexType>
                                      </xsd:element>
                                    </xsd:sequence>
                                    <xsd:attribute name="id" type="xsd:int" />
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                              <xsd:attribute name="total" type="xsd:int" />
                            </xsd:complexType>
                          </xsd:element>
                          <xsd:element name="similar_variations">
                            <xsd:complexType>
                              <xsd:attribute name="total" type="xsd:int" />
                            </xsd:complexType>
                          </xsd:element>
                        </xsd:sequence>
                        <xsd:attribute name="id" type="xsd:int" />
                        <xsd:attribute name="model_id" type="xsd:int" />
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                  <xsd:attribute name="total" type="xsd:int" />
                </xsd:complexType>
              </xsd:element>
              <xsd:element name="accessories">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element maxOccurs="unbounded" name="accessory">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="id" type="xsd:int" />
                          <xsd:element name="name" type="xsd:string" />
                          <xsd:element name="description" type="xsd:string" />
                          <xsd:element name="part_number" type="xsd:string" />
                          <xsd:element name="type" type="xsd:string" />
                          <xsd:element name="dealer_price" type="xsd:decimal" />
                          <xsd:element name="retail_price" type="xsd:decimal" />
                          <xsd:element name="fitting_time" type="xsd:decimal" />
                          <xsd:element name="fitting_instructions" type="xsd:string" />
                          <xsd:element name="components" type="xsd:string" />
                          <xsd:element name="url" type="xsd:string" />
                          <xsd:element name="category" type="xsd:string" />
                          <xsd:element name="files">
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element name="file">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:element name="id" type="xsd:int" />
                                      <xsd:element name="name" type="xsd:string" />
                                      <xsd:element name="path" type="xsd:string" />
                                      <xsd:element name="resize_path" type="xsd:string" />
                                      <xsd:element name="type" type="xsd:string" />
                                      <xsd:element name="width" type="xsd:int" />
                                      <xsd:element name="height" type="xsd:int" />
                                      <xsd:element name="category" type="xsd:string" />
                                    </xsd:sequence>
                                    <xsd:attribute name="id" type="xsd:int" />
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                              <xsd:attribute name="total" type="xsd:int" />
                            </xsd:complexType>
                          </xsd:element>
                          <xsd:element name="accessory_year_start" type="xsd:int" />
                          <xsd:element name="accessory_year_end" type="xsd:string" />
                        </xsd:sequence>
                        <xsd:attribute name="id" type="xsd:int" />
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                  <xsd:attribute name="total" type="xsd:int" />
                </xsd:complexType>
              </xsd:element>
              <xsd:element name="colours">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element maxOccurs="unbounded" name="colour">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="id" type="xsd:int" />
                          <xsd:element name="name" type="xsd:string" />
                          <xsd:element name="rgb" type="xsd:string" />
                          <xsd:element name="price_modification" type="xsd:string" />
                          <xsd:element name="files">
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element maxOccurs="unbounded" name="file">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:element name="id" type="xsd:int" />
                                      <xsd:element name="name" type="xsd:string" />
                                      <xsd:element name="width" type="xsd:int" />
                                      <xsd:element name="height" type="xsd:int" />
                                      <xsd:element name="type" type="xsd:string" />
                                      <xsd:element name="path" type="xsd:string" />
                                      <xsd:element name="resize_path" type="xsd:string" />
                                      <xsd:element name="category" type="xsd:int" />
                                    </xsd:sequence>
                                    <xsd:attribute name="id" type="xsd:int" />
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                              <xsd:attribute name="total" type="xsd:int" />
                            </xsd:complexType>
                          </xsd:element>
                        </xsd:sequence>
                        <xsd:attribute name="id" type="xsd:int" />
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                  <xsd:attribute name="total" type="xsd:int" />
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
            <xsd:attribute name="id" type="xsd:int" />
          </xsd:complexType>
        </xsd:element>
      </xsd:sequence>
      <xsd:attribute name="total" type="xsd:int" />
      <xsd:attribute name="min" type="xsd:boolean" />
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
