{
  "type": "Crew",
  "domain": "fieldservice",
  "description": "一緒に作業する人の班 1 つです。人数、技能、拠点、働ける時間を持ちます。班の人の名前や連絡先は持ちません。車両と班を分けておくと、日によって組み合わせを変えられます。",
  "contextUrl": "https://datamodels.jp/context/fieldservice/v1.jsonld",
  "propertyDetails": {
    "label": {
      "ngsiType": "LanguageProperty",
      "valueType": "object",
      "example": {
        "languageMap": {
          "ja": "収集班 A",
          "en": "Collection team A"
        }
      },
      "required": false,
      "description": "班の呼び名。言語ごとに書きます（例：{\"ja\": \"収集班 A\", \"en\": \"Collection team A\"}）。",
      "@context": "http://www.w3.org/2000/01/rdf-schema#label"
    },
    "provider": {
      "ngsiType": "Relationship",
      "valueType": "uri",
      "example": "urn:ngsi-ld:Organization:131016",
      "required": false,
      "description": "作業を引き受ける組織（自治体、委託先など）",
      "@context": "https://schema.org/provider"
    },
    "localGovernmentCode": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "131016",
      "required": false,
      "description": "作業する自治体の全国地方公共団体コード（6 桁）",
      "@context": "https://datamodels.jp/ns/common/localGovernmentCode",
      "validation": {
        "pattern": "^\\d{6}$"
      }
    },
    "size": {
      "ngsiType": "Property",
      "valueType": "integer",
      "example": 2,
      "required": true,
      "description": "人数",
      "@context": "https://datamodels.jp/ns/fieldservice/size",
      "validation": {
        "minimum": 1
      }
    },
    "skills": {
      "ngsiType": "Property",
      "valueType": "array",
      "example": [
        "two-person"
      ],
      "required": false,
      "description": "班ができること（例：two-person、carry-out）。車両の skills と合わせて、依頼の skills と照らし合わせます。",
      "@context": "https://datamodels.jp/ns/fieldservice/skills",
      "validation": {
        "items": {
          "minLength": 1
        },
        "minItems": 1,
        "uniqueItems": true
      }
    },
    "depot": {
      "ngsiType": "Relationship",
      "valueType": "uri",
      "example": "urn:ngsi-ld:Facility:131016-131016F00001",
      "required": false,
      "description": "出発する拠点（Facility）",
      "@context": "https://datamodels.jp/ns/fieldservice/depot",
      "objectType": "https://datamodels.jp/ns/facility/Facility"
    },
    "workingHours": {
      "ngsiType": "Property",
      "valueType": "array",
      "example": [
        {
          "dayOfWeek": [
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday",
            "Saturday"
          ],
          "opens": "08:00",
          "closes": "16:00"
        }
      ],
      "required": false,
      "description": "班が働ける曜日と時間（OpeningHours の値のリスト）。車両の workingHours と重なる時間だけ計画します。",
      "@context": "https://datamodels.jp/ns/fieldservice/workingHours",
      "validation": {
        "minItems": 1
      }
    },
    "assignedVehicle": {
      "ngsiType": "Relationship",
      "valueType": "uri",
      "example": "urn:ngsi-ld:ServiceVehicle:131016:truck-02",
      "required": false,
      "description": "ふだん使う車両（ServiceVehicle）。日ごとの組み合わせは RoutePlan に残ります。",
      "@context": "https://datamodels.jp/ns/fieldservice/assignedVehicle",
      "objectType": "https://datamodels.jp/ns/fieldservice/ServiceVehicle"
    },
    "source": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "データの出典（URL など）",
      "@context": "https://smart-data-models.github.io/data-models/terms.jsonld#/definitions/source",
      "validation": {
        "minLength": 1
      }
    }
  },
  "additionalProperties": false
}
