{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-database/json-schema/oracle-database-vec-dbtable-collection-schema.json",
  "title": "VecDBTableCollection",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-database-vector-database-vector-tables-api-openapi.yml#/components/schemas/VecDBTableCollection",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/VecDBTableItem"
      }
    },
    "hasMore": {
      "type": "boolean"
    },
    "limit": {
      "type": "number"
    },
    "offset": {
      "type": "number"
    },
    "count": {
      "type": "number"
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LinkRelation"
      }
    }
  },
  "$defs": {
    "LinkRelation": {
      "type": "object",
      "properties": {
        "rel": {
          "type": "string"
        },
        "href": {
          "type": "string"
        }
      },
      "required": [
        "rel",
        "href"
      ]
    },
    "VecDBTableItem": {
      "allOf": [
        {
          "$ref": "#/$defs/VecDBTableNoLinks"
        },
        {
          "type": "object",
          "properties": {
            "links": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/LinkRelation"
              }
            }
          }
        }
      ]
    },
    "VecDBTableNoLinks": {
      "type": "object",
      "properties": {
        "table_name": {
          "type": "string",
          "description": "The name of the table"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description of the vector table"
        },
        "auto_generate_id": {
          "type": "integer",
          "description": "Whether the ID column of the table should be auto generated. Defaults to false."
        },
        "owner": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "Population status of the vector table."
        },
        "vector_type": {
          "type": "string",
          "enum": [
            "dense"
          ]
        },
        "vector_table_type": {
          "type": "string",
          "enum": [
            "BYOV",
            "MODEL"
          ],
          "description": "Creation mode of the table."
        },
        "index_params": {
          "description": "Index configuration for the table.",
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "indexing": {
              "type": "string"
            },
            "organization": {
              "type": "string"
            },
            "distance_metric": {
              "type": "string"
            },
            "accuracy": {
              "type": "integer"
            },
            "advanced_params": {
              "type": "object",
              "properties": {
                "partitions": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "efConstruction": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "neighbors": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              }
            }
          }
        },
        "annotations": {
          "description": "User metadata attached to the table.",
          "type": [
            "object",
            "null"
          ]
        },
        "embed_params": {
          "description": "Embedding model configuration (MODEL tables).",
          "properties": {
            "model": {
              "type": "string"
            },
            "embed_metadata_jsonpath": {
              "type": "string"
            }
          }
        },
        "dense_idx_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the vector index associated to the vector table."
        },
        "stats": {
          "type": [
            "object",
            "null"
          ],
          "description": "Statistics of the vector table",
          "properties": {
            "total_vectors": {
              "type": [
                "number",
                "null"
              ]
            }
          }
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "Creation timestamp of the vector table."
        },
        "updated": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Creation timestamp of the vector table."
        }
      }
    }
  }
}