{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://ordinis.nstart.cloud/schemas/cuod/antenna/1.0.0",
  "title": "Antenna (наземные антенны)",
  "description": "Антенны наземных станций приёма с характеристиками. FK на ground_station.",
  "type": "object",
  "required": ["code", "name", "ground_station", "diameter_m", "status"],
  "additionalProperties": false,
  "x-id-source": "code",
  "properties": {
    "code": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{1,31}$", "x-unique": true },
    "name": { "type": "object", "x-localized": true, "patternProperties": { "^[a-z]{2}-[A-Z]{2}$": { "type": "string", "minLength": 1 } }, "required": ["ru-RU"] },
    "ground_station": { "type": "string", "description": "FK ground_station.code.", "pattern": "^[A-Z][A-Z0-9_]{1,31}$", "x-references": "ground_station.code" },
    "diameter_m": { "type": "number", "minimum": 0.5, "maximum": 100 },
    "supported_bands": { "type": "array", "items": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{1,31}$" }, "uniqueItems": true },
    "g_t_db_per_k": { "type": "number", "description": "G/T (gain over noise temperature), дБ/К.", "minimum": -10, "maximum": 60 },
    "status": { "type": "string", "enum": ["active", "maintenance", "decommissioned", "archived"] }
  }
}
