{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/requirement_entries.schema.json",
  "title": "tables/requirement_entries.json",
  "description": "The rows of the table requirement_entries that belong to the workspace, one object per row, keyed by the database's column names.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "format": "uuid"
      },
      "organization_id": {
        "type": "string",
        "format": "uuid"
      },
      "catalog_key": {
        "type": "string"
      },
      "requirement_id": {
        "type": "string"
      },
      "catalog_version": {
        "type": "string"
      },
      "status": {
        "type": "string",
        "enum": [
          "met",
          "partial",
          "not_met",
          "not_applicable"
        ]
      },
      "note": {
        "type": "string"
      },
      "owner_membership_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "decided_by": {
        "type": "string",
        "format": "uuid"
      },
      "decided_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "created_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "updated_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "revision": {
        "type": "integer"
      }
    },
    "required": [
      "id",
      "organization_id",
      "catalog_key",
      "requirement_id",
      "catalog_version",
      "status",
      "note",
      "owner_membership_id",
      "decided_by",
      "decided_at",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
