Apache CouchDB · Schema

Document

A CouchDB document with system fields and user-defined fields

ApacheDatabaseDocument StoreJSONNoSQLOpen SourceReplicationREST

Properties

Name Type Description
_id string Document ID
_rev string Current revision ID (major-hash format)
_deleted boolean Present and true for deleted (tombstone) documents
View JSON Schema on GitHub

JSON Schema

apache-couchdb-document-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-couchdb/refs/heads/main/json-schema/apache-couchdb-document-schema.json",
  "title": "Document",
  "description": "A CouchDB document with system fields and user-defined fields",
  "type": "object",
  "properties": {
    "_id": {
      "type": "string",
      "description": "Document ID",
      "example": "doc001"
    },
    "_rev": {
      "type": "string",
      "description": "Current revision ID (major-hash format)",
      "example": "1-abc123def456"
    },
    "_deleted": {
      "type": "boolean",
      "description": "Present and true for deleted (tombstone) documents",
      "example": false
    }
  }
}