{
  "services": [
    {
      "name": "Orders",
      "description": "Replace with a sentence about the service, or remove this line.",
      "assemblies": ["Contoso.Orders.Domain.dll"],
      "connectionString": "Orders",
      "domain": {
        "streams":    [ { "type": "Contoso.Orders.Domain.OrderId" } ],
        "events":     [ { "namespace": "Contoso.Orders.Domain.Events" } ],
        "aggregates": [ { "type": "Contoso.Orders.Domain.Order", "id": "Contoso.Orders.Domain.OrderId" } ],
        "naming":     { "events": "class-name", "aggregates": "class-name" },
        "fold":       { "methods": ["Apply"], "version": "Version" },
        "serializer": { "kind": "system-text-json" },
        "hidden":     ["Id", "Version"]
      },
      "store": {
        "kind": "cosmos",
        "database": "shop",
        "events": {
          "container": "events",
          "streamId": "stream", "sequence": "seq", "type": "kind", "payload": "body",
          "written": "at", "writtenBy": "by", "id": "id", "metadata": "meta"
        },
        "snapshots": [
          {
            "container": "snapshots", "typeName": "Order",
            "streamId": "stream", "id": "id", "version": "version", "appliedUpTo": "upTo", "payload": "state",
            "created": "createdAt", "updated": "updatedAt", "createdBy": "by"
          }
        ]
      }
    }
  ]
}
