{
  "$defs": {
    "CoDeterminationRegime": {
      "description": "Co-determination regime.",
      "oneOf": [
        {
          "enum": [
            "de_betriebsrat",
            "at_betriebsrat",
            "es_comite_empresa"
          ],
          "type": "string"
        },
        {
          "const": "fr_cse",
          "description": "FR Comité Social et Économique.",
          "type": "string"
        },
        {
          "const": "nl_ondernemingsraad",
          "description": "NL Ondernemingsraad.",
          "type": "string"
        },
        {
          "const": "it_rsu",
          "description": "IT Rappresentanze Sindacali Unitarie.",
          "type": "string"
        },
        {
          "const": "eu_works_council",
          "description": "EU Works Council Directive 2009/38/EC.",
          "type": "string"
        },
        {
          "const": "se_beteiligung",
          "description": "SE Europäische Aktiengesellschaft codetermination.",
          "type": "string"
        },
        {
          "const": "none",
          "description": "None applicable.",
          "type": "string"
        }
      ]
    },
    "IsoDate": {
      "description": "ISO 8601 date (YYYY-MM-DD).",
      "format": "date",
      "type": "string"
    },
    "PathRef": {
      "description": "Path-based cross-reference relative to .corpospec/ root.\nPattern: `^[a-z0-9_-]+(/[a-z0-9_.-]+)+$`",
      "pattern": "^[a-z0-9_-]+(/[a-z0-9_.-]+)+$",
      "type": "string"
    }
  },
  "$id": "https://corpospec.com/schemas/v0.16.0/works-council.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Works-council record (per-entity).",
  "properties": {
    "chair": {
      "$ref": "#/$defs/PathRef"
    },
    "charter_document": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "elected_on": {
      "$ref": "#/$defs/IsoDate"
    },
    "entity": {
      "$ref": "#/$defs/PathRef"
    },
    "framework_agreements": {
      "description": "Standing Betriebsvereinbarungen.",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "headcount_at_election": {
      "description": "Headcount the regime was configured for (BetrVG thresholds:\n5/21/51/101 …).",
      "format": "int32",
      "type": "integer"
    },
    "id": {
      "$ref": "#/$defs/PathRef"
    },
    "members": {
      "description": "PathRefs to people/team/ members.",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "regime": {
      "$ref": "#/$defs/CoDeterminationRegime"
    },
    "seats": {
      "format": "int32",
      "type": "integer"
    },
    "term_years": {
      "description": "Term in years (BetrVG = 4y).",
      "format": "int32",
      "type": "integer"
    }
  },
  "required": [
    "id",
    "entity",
    "regime",
    "headcount_at_election",
    "seats",
    "elected_on",
    "term_years",
    "members",
    "chair"
  ],
  "title": "WorksCouncil",
  "type": "object",
  "x-corpospec-pillar": "people"
}