{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clusterhack-dev/json-schema/clusterhack-dev-team-model-schema.json",
  "title": "TeamModel",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clusterhack-dev-openapi.yml#/components/schemas/TeamModel",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "title": "Team name",
      "maxLength": 100
    },
    "github_url": {
      "title": "Project git link",
      "oneOf": [
        {
          "type": "string",
          "format": "uri",
          "maxLength": 200
        },
        {
          "type": "string",
          "maxLength": 0
        }
      ]
    },
    "captain": {
      "type": "string",
      "title": "Team captain",
      "maxLength": 100
    },
    "readiness_level": {
      "type": "integer",
      "maximum": 32767,
      "minimum": 0,
      "title": "How much the team is ready, from 0 to 100%"
    },
    "last_updated": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "title": "When was last updated"
    },
    "readiness": {
      "type": "boolean",
      "title": "Ready or Not Ready"
    },
    "avatar": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "presentation2": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "title": "Team presentation"
    },
    "table_number": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": 0
    },
    "description": {
      "type": "string",
      "title": "Team Description",
      "maxLength": 300
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "title": "When the entry was created"
    },
    "active": {
      "type": "boolean",
      "title": "Is the team working now?"
    },
    "event": {
      "type": [
        "integer",
        "null"
      ],
      "title": "What event"
    },
    "who_crate": {
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true,
      "title": "Who created the team"
    },
    "nominations": {
      "type": [
        "integer",
        "null"
      ],
      "title": "What nomination"
    },
    "twitch_chanel": {
      "type": [
        "string",
        "null"
      ],
      "title": "Team Twitch channel",
      "description": "like this: gamemania",
      "maxLength": 100
    },
    "banned": {
      "type": "boolean",
      "readOnly": true,
      "title": "Blocked"
    },
    "accessible": {
      "type": "boolean",
      "readOnly": true,
      "title": "Eligible to participate or not"
    },
    "accessible_adm": {
      "type": "boolean",
      "readOnly": true,
      "title": "Permission to participate from administrator"
    },
    "your_event_team_step": {
      "type": [
        "integer",
        "null"
      ],
      "title": "At what step is the command"
    },
    "project_name": {
      "type": "string",
      "maxLength": 200
    },
    "project_description": {
      "type": "string"
    },
    "mentors": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    }
  },
  "required": [
    "accessible",
    "accessible_adm",
    "banned",
    "created",
    "description",
    "id",
    "last_updated",
    "name",
    "who_crate"
  ]
}