{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/organization_legal_acceptances.schema.json",
  "title": "tables/organization_legal_acceptances.json",
  "description": "The rows of the table organization_legal_acceptances 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"
      },
      "document": {
        "type": "string",
        "enum": [
          "dpa"
        ]
      },
      "version": {
        "type": "string"
      },
      "locale": {
        "type": "string",
        "enum": [
          "en",
          "pl"
        ]
      },
      "accepted_by": {
        "type": "string",
        "format": "uuid"
      },
      "source": {
        "type": "string",
        "enum": [
          "web",
          "mobile"
        ]
      },
      "context": {
        "type": "string",
        "enum": [
          "organization_creation",
          "workspace_entry",
          "reacceptance"
        ]
      },
      "accepted_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "request_id": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "required": [
      "id",
      "organization_id",
      "document",
      "version",
      "locale",
      "accepted_by",
      "source",
      "context",
      "accepted_at",
      "request_id"
    ],
    "additionalProperties": false
  }
}
