{
  "truncate": {
    "max-blocks": 100,
    "truncate-reported": false,
    "remove-orphans": true
  },
  "tables": {
    "__containers": {
      "fields": [
        {
          "name": "owner",
          "type": "TEXT",
          "primary-key": true,
          "comment": "OS user that owns the container."
        },
        {
          "name": "id",
          "type": "TEXT",
          "primary-key": true,
          "comment": "Container ID assigned by the engine."
        },
        { "name": "name", "type": "TEXT", "comment": "Container name." },
        {
          "name": "image",
          "type": "TEXT",
          "comment": "Image reference the container was started from."
        },
        {
          "name": "image_id",
          "type": "TEXT",
          "comment": "Image ID the container was started from."
        },
        {
          "name": "command",
          "type": "TEXT",
          "comment": "Entrypoint command line."
        },
        {
          "name": "state",
          "type": "TEXT",
          "comment": "Current container state (e.g. running, paused, etc.)."
        },
        {
          "name": "ports",
          "type": "TEXT",
          "comment": "Published port mappings as JSON."
        },
        {
          "name": "engine",
          "type": "TEXT",
          "comment": "Container engine (e.g. docker, podman)."
        },
        {
          "name": "started_at",
          "type": "TEXT",
          "comment": "Timestamp when the container was started."
        },
        {
          "name": "created_at",
          "type": "TEXT",
          "comment": "Timestamp when the container was created."
        },
        {
          "name": "collected_at",
          "type": "TEXT",
          "comment": "Timestamp when the information was observed."
        },
        {
          "name": "details",
          "type": "TEXT",
          "comment": "Engine-specific extra details as JSON."
        }
      ]
    },
    "__container_images": {
      "fields": [
        {
          "name": "owner",
          "type": "TEXT",
          "primary-key": true,
          "comment": "OS user that owns the image."
        },
        {
          "name": "id",
          "type": "TEXT",
          "primary-key": true,
          "comment": "Image ID assigned by the engine."
        },
        {
          "name": "repository",
          "type": "TEXT",
          "comment": "Image repository name."
        },
        {
          "name": "tag",
          "type": "TEXT",
          "comment": "Image tag (i.e. version number)."
        },
        {
          "name": "size_bytes",
          "type": "NUMBER",
          "comment": "Image size in bytes."
        },
        {
          "name": "created_at",
          "type": "TEXT",
          "comment": "Timestamp when the image was created."
        },
        {
          "name": "collected_at",
          "type": "TEXT",
          "comment": "Timestamp when this information was observed."
        }
      ]
    },
    "__container_volumes": {
      "fields": [
        {
          "name": "owner",
          "type": "TEXT",
          "primary-key": true,
          "comment": "OS user that owns the volume."
        },
        {
          "name": "name",
          "type": "TEXT",
          "primary-key": true,
          "comment": "Volume name."
        },
        {
          "name": "driver",
          "type": "TEXT",
          "comment": "Volume driver (e.g. local)."
        },
        {
          "name": "size_bytes",
          "type": "NUMBER",
          "comment": "Volume size in bytes."
        },
        {
          "name": "created_at",
          "type": "TEXT",
          "comment": "Timestamp when the volume was created."
        },
        {
          "name": "collected_at",
          "type": "TEXT",
          "comment": "Timestamp when this information was observed."
        }
      ]
    }
  }
}
