{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://dashremix.com/spec/code/1.3.0/code@1.schema.json",
 "title": "code@1 v1.3.0",
 "description": "One property per table (an array of rows). Generated from schema.sql by spec/build.py. Extension tables (x_<owner>_*) belong to forks and board-derived tables (d_*) to the board that rebuilds them; both are allowed as additional properties.",
 "type": "object",
 "properties": {
  "meta": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "key": {
      "type": [
       "string",
       "null"
      ]
     },
     "value": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [],
    "additionalProperties": false
   }
  },
  "repos": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "repo_id": {
      "type": "string"
     },
     "default_branch": {
      "type": [
       "string",
       "null"
      ]
     },
     "is_private": {
      "type": [
       "integer",
       "null"
      ]
     },
     "language": {
      "type": [
       "string",
       "null"
      ]
     },
     "stars": {
      "type": [
       "integer",
       "null"
      ]
     },
     "archived": {
      "type": [
       "integer",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "repo_id"
    ],
    "additionalProperties": false
   }
  },
  "people": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "person_key": {
      "type": "string"
     },
     "display_name": {
      "type": [
       "string",
       "null"
      ]
     },
     "is_bot": {
      "type": "integer"
     },
     "team": {
      "type": [
       "string",
       "null"
      ]
     },
     "is_me": {
      "type": [
       "integer",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "person_key",
     "is_bot"
    ],
    "additionalProperties": false
   }
  },
  "pull_requests": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "pr_id": {
      "type": "string"
     },
     "repo_id": {
      "type": "string"
     },
     "number": {
      "type": "integer"
     },
     "title": {
      "type": [
       "string",
       "null"
      ]
     },
     "author_key": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "ready_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "first_review_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "first_approval_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "merged_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "closed_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "additions": {
      "type": [
       "integer",
       "null"
      ]
     },
     "deletions": {
      "type": [
       "integer",
       "null"
      ]
     },
     "changed_files": {
      "type": [
       "integer",
       "null"
      ]
     },
     "commits_n": {
      "type": [
       "integer",
       "null"
      ]
     },
     "base_branch": {
      "type": [
       "string",
       "null"
      ]
     },
     "head_branch": {
      "type": [
       "string",
       "null"
      ]
     },
     "labels": {
      "type": [
       "string",
       "null"
      ]
     },
     "is_draft": {
      "type": "integer"
     },
     "is_revert": {
      "type": "integer"
     },
     "linked_issues": {
      "type": [
       "string",
       "null"
      ]
     },
     "first_commit_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "merge_sha": {
      "type": [
       "string",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "source_ref": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "pr_id",
     "repo_id",
     "number",
     "created_at",
     "is_draft",
     "is_revert"
    ],
    "additionalProperties": false
   }
  },
  "reviews": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "review_id": {
      "type": "string"
     },
     "pr_id": {
      "type": "string"
     },
     "reviewer_key": {
      "type": [
       "string",
       "null"
      ]
     },
     "submitted_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "state": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "approved",
       "changes_requested",
       "commented",
       "dismissed",
       null
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "review_id",
     "pr_id",
     "submitted_at"
    ],
    "additionalProperties": false
   }
  },
  "deployments": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "deploy_id": {
      "type": "string"
     },
     "repo_id": {
      "type": "string"
     },
     "environment": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "finished_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "status": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "success",
       "failure",
       "error",
       "inactive",
       "in_progress",
       "queued",
       "pending",
       "cancelled",
       null
      ]
     },
     "sha": {
      "type": [
       "string",
       "null"
      ]
     },
     "ref": {
      "type": [
       "string",
       "null"
      ]
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "kind": {
      "type": "string",
      "enum": [
       "github_deployment",
       "workflow_run",
       "release",
       "tag",
       "manual"
      ]
     },
     "pr_ids": {
      "type": [
       "string",
       "null"
      ]
     },
     "live_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "status_history": {
      "type": [
       "string",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "source_ref": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "deploy_id",
     "repo_id",
     "created_at",
     "kind"
    ],
    "additionalProperties": false
   }
  },
  "incidents": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "incident_id": {
      "type": "string"
     },
     "repo_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "opened_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "resolved_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "severity": {
      "type": [
       "string",
       "null"
      ]
     },
     "caused_by_deploy_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "kind": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "issue_label",
       "revert_pr",
       "hotfix_branch",
       "manual",
       "deploy_failure",
       "rollback",
       null
      ]
     },
     "title": {
      "type": [
       "string",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "source_ref": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "incident_id",
     "opened_at"
    ],
    "additionalProperties": false
   }
  },
  "issues": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "issue_id": {
      "type": "string"
     },
     "repo_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "number": {
      "type": [
       "integer",
       "null"
      ]
     },
     "title": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "closed_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "state_reason": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "completed",
       "not_planned",
       "duplicate",
       "reopened",
       null
      ]
     },
     "labels": {
      "type": [
       "string",
       "null"
      ]
     },
     "is_bug": {
      "type": "integer"
     },
     "assignee_key": {
      "type": [
       "string",
       "null"
      ]
     },
     "milestone": {
      "type": [
       "string",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "source_ref": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "issue_id",
     "created_at",
     "is_bug"
    ],
    "additionalProperties": false
   }
  },
  "commits": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "commit_id": {
      "type": "string"
     },
     "repo_id": {
      "type": "string"
     },
     "sha": {
      "type": "string"
     },
     "author_key": {
      "type": [
       "string",
       "null"
      ]
     },
     "committer_key": {
      "type": [
       "string",
       "null"
      ]
     },
     "authored_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "committed_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "author_tz_offset": {
      "type": [
       "integer",
       "null"
      ]
     },
     "parents_n": {
      "type": [
       "integer",
       "null"
      ]
     },
     "is_merge": {
      "type": "integer"
     },
     "on_default": {
      "type": "integer"
     },
     "subject": {
      "type": [
       "string",
       "null"
      ]
     },
     "additions": {
      "type": [
       "integer",
       "null"
      ]
     },
     "deletions": {
      "type": [
       "integer",
       "null"
      ]
     },
     "files_n": {
      "type": [
       "integer",
       "null"
      ]
     },
     "created_files_n": {
      "type": [
       "integer",
       "null"
      ]
     },
     "patch_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "word_change_ratio": {
      "type": [
       "number",
       "null"
      ]
     },
     "agent_mode": {
      "type": "string",
      "enum": [
       "human",
       "agent_assisted",
       "agent_authored",
       "bot"
      ]
     },
     "agent_name": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "claude",
       "codex",
       "cursor",
       "copilot",
       "devin",
       "aider",
       "gemini",
       "grok",
       "other",
       null
      ]
     },
     "co_author_keys": {
      "type": [
       "string",
       "null"
      ]
     },
     "revert_of": {
      "type": [
       "string",
       "null"
      ]
     },
     "pr_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "source_ref": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "commit_id",
     "repo_id",
     "sha",
     "authored_at",
     "is_merge",
     "on_default",
     "agent_mode"
    ],
    "additionalProperties": false
   }
  },
  "commit_files": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "commit_id": {
      "type": "string"
     },
     "path": {
      "type": "string"
     },
     "additions": {
      "type": "integer"
     },
     "deletions": {
      "type": "integer"
     },
     "change": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "A",
       "M",
       null
      ]
     },
     "is_binary": {
      "type": "integer"
     }
    },
    "required": [
     "commit_id",
     "path",
     "additions",
     "deletions",
     "is_binary"
    ],
    "additionalProperties": false
   }
  },
  "branches": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "branch_id": {
      "type": "string"
     },
     "repo_id": {
      "type": "string"
     },
     "kind": {
      "type": "string",
      "enum": [
       "default",
       "local",
       "remote"
      ]
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "head_sha": {
      "type": [
       "string",
       "null"
      ]
     },
     "last_commit_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "ahead": {
      "type": [
       "integer",
       "null"
      ]
     },
     "behind": {
      "type": [
       "integer",
       "null"
      ]
     },
     "unmerged_commits": {
      "type": [
       "string",
       "null"
      ]
     },
     "is_default": {
      "type": "integer"
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "branch_id",
     "repo_id",
     "kind",
     "is_default"
    ],
    "additionalProperties": false
   }
  },
  "ownership": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "repo_id": {
      "type": "string"
     },
     "head_sha": {
      "type": "string"
     },
     "path": {
      "type": "string"
     },
     "person_key": {
      "type": "string"
     },
     "lines": {
      "type": "integer"
     }
    },
    "required": [
     "repo_id",
     "head_sha",
     "path",
     "person_key",
     "lines"
    ],
    "additionalProperties": false
   }
  },
  "services": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "service_id": {
      "type": "string"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "team": {
      "type": [
       "string",
       "null"
      ]
     },
     "repo_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "service_id"
    ],
    "additionalProperties": false
   }
  },
  "ci_runs": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "ci_run_id": {
      "type": "string"
     },
     "repo_id": {
      "type": "string"
     },
     "service_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "workflow": {
      "type": "string"
     },
     "run_ref": {
      "type": "string"
     },
     "attempt": {
      "type": "integer"
     },
     "kind": {
      "type": "string",
      "enum": [
       "build",
       "test",
       "deployment"
      ]
     },
     "test_name": {
      "type": [
       "string",
       "null"
      ]
     },
     "conclusion": {
      "type": "string",
      "enum": [
       "success",
       "failure",
       "cancelled"
      ]
     },
     "started_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "completed_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "environment": {
      "type": [
       "string",
       "null"
      ]
     },
     "branch": {
      "type": [
       "string",
       "null"
      ]
     },
     "source": {
      "type": "string"
     },
     "source_ref": {
      "type": "string"
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "ci_run_id",
     "repo_id",
     "workflow",
     "run_ref",
     "attempt",
     "kind",
     "conclusion",
     "completed_at",
     "source",
     "source_ref"
    ],
    "additionalProperties": false
   }
  },
  "uptime_checks": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "check_id": {
      "type": "string"
     },
     "service_id": {
      "type": "string"
     },
     "first_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "last_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "state": {
      "type": "string",
      "enum": [
       "up",
       "down",
       "degraded",
       "maintenance",
       "unknown"
      ]
     },
     "response_ms": {
      "type": [
       "number",
       "null"
      ]
     },
     "source": {
      "type": "string"
     },
     "source_ref": {
      "type": "string"
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "check_id",
     "service_id",
     "first_at",
     "last_at",
     "state",
     "source",
     "source_ref"
    ],
    "additionalProperties": false
   }
  },
  "dependency_snapshots": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "snapshot_id": {
      "type": "string"
     },
     "repo_id": {
      "type": "string"
     },
     "manifest": {
      "type": "string"
     },
     "ecosystem": {
      "type": "string",
      "enum": [
       "npm",
       "pypi",
       "maven",
       "rubygems",
       "cargo",
       "go",
       "nuget",
       "composer"
      ]
     },
     "snapshot_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "layout": {
      "type": [
       "string",
       "null"
      ]
     },
     "advisories_read": {
      "type": "integer"
     },
     "releases_read": {
      "type": "integer"
     },
     "source": {
      "type": "string"
     },
     "source_ref": {
      "type": "string"
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "snapshot_id",
     "repo_id",
     "manifest",
     "ecosystem",
     "snapshot_on",
     "advisories_read",
     "releases_read",
     "source",
     "source_ref"
    ],
    "additionalProperties": false
   }
  },
  "dependencies": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "snapshot_id": {
      "type": "string"
     },
     "package_path": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "version": {
      "type": [
       "string",
       "null"
      ]
     },
     "is_direct": {
      "type": [
       "integer",
       "null"
      ]
     },
     "license": {
      "type": [
       "string",
       "null"
      ]
     },
     "latest_version": {
      "type": [
       "string",
       "null"
      ]
     },
     "released_on": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "is_outdated": {
      "type": [
       "integer",
       "null"
      ]
     },
     "source": {
      "type": "string"
     },
     "source_ref": {
      "type": "string"
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "snapshot_id",
     "package_path",
     "name",
     "source",
     "source_ref"
    ],
    "additionalProperties": false
   }
  },
  "advisories": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "snapshot_id": {
      "type": "string"
     },
     "alert_key": {
      "type": "string"
     },
     "package": {
      "type": "string"
     },
     "advisory_id": {
      "type": "string"
     },
     "severity": {
      "type": "string",
      "enum": [
       "low",
       "moderate",
       "high",
       "critical"
      ]
     },
     "state": {
      "type": "string",
      "enum": [
       "open",
       "fixed",
       "dismissed",
       "auto_dismissed"
      ]
     },
     "fixed_version": {
      "type": [
       "string",
       "null"
      ]
     },
     "opened_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "closed_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     },
     "source": {
      "type": "string"
     },
     "source_ref": {
      "type": "string"
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "snapshot_id",
     "alert_key",
     "package",
     "advisory_id",
     "severity",
     "state",
     "source",
     "source_ref"
    ],
    "additionalProperties": false
   }
  },
  "sprints": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "sprint_id": {
      "type": "string"
     },
     "repo_id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "start_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "end_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "committed_points": {
      "type": [
       "number",
       "null"
      ]
     },
     "source": {
      "type": "string"
     },
     "source_ref": {
      "type": [
       "string",
       "null"
      ]
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "sprint_id",
     "repo_id",
     "name",
     "start_on",
     "end_on",
     "source"
    ],
    "additionalProperties": false
   }
  },
  "sprint_snapshots": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "sprint_id": {
      "type": "string"
     },
     "snapshot_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "item_key": {
      "type": "string"
     },
     "issue_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "status": {
      "type": [
       "string",
       "null"
      ]
     },
     "state": {
      "type": "string",
      "enum": [
       "open",
       "done",
       "unknown"
      ]
     },
     "points": {
      "type": [
       "number",
       "null"
      ]
     },
     "source": {
      "type": "string"
     },
     "source_ref": {
      "type": "string"
     },
     "imported_at": {
      "type": [
       "string",
       "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$"
     }
    },
    "required": [
     "sprint_id",
     "snapshot_on",
     "item_key",
     "state",
     "source",
     "source_ref"
    ],
    "additionalProperties": false
   }
  },
  "import_issues": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "issue_id": {
      "type": "string"
     },
     "severity": {
      "type": "string",
      "enum": [
       "info",
       "warn",
       "error"
      ]
     },
     "kind": {
      "type": "string"
     },
     "file": {
      "type": [
       "string",
       "null"
      ]
     },
     "line": {
      "type": [
       "integer",
       "null"
      ]
     },
     "detail": {
      "type": "string"
     },
     "handling": {
      "type": "string"
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "issue_id",
     "severity",
     "kind",
     "detail",
     "handling"
    ],
    "additionalProperties": false
   }
  },
  "annotations": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "annotation_id": {
      "type": "string"
     },
     "target": {
      "type": "string"
     },
     "kind": {
      "type": "string"
     },
     "body": {
      "type": "string"
     },
     "author": {
      "type": [
       "string",
       "null"
      ]
     },
     "source_ref": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ]
     },
     "data_hash": {
      "type": [
       "string",
       "null"
      ]
     },
     "status": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "annotation_id",
     "target",
     "kind",
     "body"
    ],
    "additionalProperties": false
   }
  },
  "metric_registry": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "metric_id": {
      "type": "string"
     },
     "version": {
      "type": [
       "integer",
       "null"
      ]
     },
     "unit": {
      "type": [
       "string",
       "null"
      ]
     },
     "params": {
      "type": [
       "string",
       "null"
      ]
     },
     "description": {
      "type": [
       "string",
       "null"
      ]
     },
     "sql": {
      "type": [
       "string",
       "null"
      ]
     },
     "test": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "metric_id"
    ],
    "additionalProperties": false
   }
  }
 },
 "required": [
  "meta",
  "repos",
  "people",
  "pull_requests",
  "reviews"
 ],
 "patternProperties": {
  "^x_[a-z0-9_]+$": {
   "type": "array"
  },
  "^d_[a-z0-9_]+$": {
   "type": "array"
  }
 },
 "additionalProperties": false
}
