{
  "$defs": {
    "IsoCurrency": {
      "description": "ISO 4217 currency code.",
      "pattern": "^[A-Z]{3}$",
      "type": "string"
    },
    "IsoDate": {
      "description": "ISO 8601 date (YYYY-MM-DD).",
      "format": "date",
      "type": "string"
    },
    "MonetaryAmount": {
      "description": "A monetary value with currency.",
      "properties": {
        "amount": {
          "format": "double",
          "type": "number"
        },
        "currency": {
          "$ref": "#/$defs/IsoCurrency"
        }
      },
      "required": [
        "amount",
        "currency"
      ],
      "type": "object"
    },
    "NextRoundTarget": {
      "description": "KPI target the round aims to deliver before the next round.",
      "properties": {
        "achieve_by": {
          "$ref": "#/$defs/IsoDate"
        },
        "metric_ref": {
          "$ref": "#/$defs/PathRef",
          "description": "PathRef into a MetricDefinition."
        },
        "target": {
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "metric_ref",
        "target",
        "achieve_by"
      ],
      "type": "object"
    },
    "PathRef": {
      "description": "Path-based cross-reference relative to .corpospec/ root.\nPattern: `^[a-z0-9_-]+(/[a-z0-9_.-]+)+$`",
      "pattern": "^[a-z0-9_-]+(/[a-z0-9_.-]+)+$",
      "type": "string"
    },
    "RoundStage": {
      "description": "Fundraising lifecycle stage.",
      "oneOf": [
        {
          "const": "preparation",
          "description": "Assembling deck, financials, DD room.",
          "type": "string"
        },
        {
          "const": "pitching",
          "description": "Actively introducing the round to investors.",
          "type": "string"
        },
        {
          "const": "term_sheet",
          "description": "At least one TermSheet signed or under negotiation.",
          "type": "string"
        },
        {
          "const": "due_diligence",
          "description": "Investor DD active.",
          "type": "string"
        },
        {
          "const": "signing",
          "description": "Subscription agreements / convertible-note instruments being\nsigned.",
          "type": "string"
        },
        {
          "const": "closing",
          "description": "Wire transfers in progress.",
          "type": "string"
        },
        {
          "const": "closed",
          "description": "All committed funds wired, share issuances posted.",
          "type": "string"
        },
        {
          "const": "aborted",
          "description": "Round abandoned before close.",
          "type": "string"
        },
        {
          "const": "superseded",
          "description": "Rolled into a subsequent round (e.g. extension).",
          "type": "string"
        }
      ]
    },
    "ValuationRange": {
      "description": "Valuation range with low / anchor / high triple.",
      "properties": {
        "anchor": {
          "$ref": "#/$defs/MonetaryAmount"
        },
        "high": {
          "$ref": "#/$defs/MonetaryAmount"
        },
        "low": {
          "$ref": "#/$defs/MonetaryAmount"
        }
      },
      "required": [
        "low",
        "anchor",
        "high"
      ],
      "type": "object"
    }
  },
  "$id": "https://corpospec.com/schemas/v0.16.0/round.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Fundraising round record.",
  "properties": {
    "actual_close_date": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoDate"
        },
        {
          "type": "null"
        }
      ],
      "description": "Actual close date."
    },
    "cap_range": {
      "anyOf": [
        {
          "$ref": "#/$defs/ValuationRange"
        },
        {
          "type": "null"
        }
      ],
      "description": "Valuation cap for SAFE / convertible (low/anchor/high triple)."
    },
    "co_investors": {
      "description": "PathRefs into co-investors.",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "committed_amount": {
      "anyOf": [
        {
          "$ref": "#/$defs/MonetaryAmount"
        },
        {
          "type": "null"
        }
      ],
      "description": "Signed term-sheet committed amount."
    },
    "dd_room_ref": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef into the DataRoom (BDR 0076)."
    },
    "discount_rate": {
      "description": "Discount rate (e.g. 0.20 = 20%) for SAFE / convertible.",
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "entity": {
      "$ref": "#/$defs/PathRef",
      "description": "Issuing entity."
    },
    "id": {
      "$ref": "#/$defs/PathRef",
      "description": "PathRef identifier, conventionally `entity/equity/rounds/<slug>`."
    },
    "instrument_type": {
      "description": "Instrument family (when known).",
      "type": [
        "string",
        "null"
      ]
    },
    "lead_investor": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef into the lead investor."
    },
    "name": {
      "description": "Round name (e.g. \"Pre-Seed Wandeldarlehen 2026\", \"Seed 2027\",\n\"Series A 2028\").",
      "type": "string"
    },
    "next_round_targets": {
      "description": "KPI targets to next round.",
      "items": {
        "$ref": "#/$defs/NextRoundTarget"
      },
      "type": "array"
    },
    "note": {
      "description": "Free-form note.",
      "type": [
        "string",
        "null"
      ]
    },
    "post_money_valuation": {
      "anyOf": [
        {
          "$ref": "#/$defs/ValuationRange"
        },
        {
          "type": "null"
        }
      ],
      "description": "Post-money valuation range."
    },
    "pre_money_valuation": {
      "anyOf": [
        {
          "$ref": "#/$defs/ValuationRange"
        },
        {
          "type": "null"
        }
      ],
      "description": "Pre-money valuation range."
    },
    "related_decisions": {
      "description": "PathRefs into related BDR records.",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "stage": {
      "$ref": "#/$defs/RoundStage",
      "description": "Current stage."
    },
    "target_amount": {
      "anyOf": [
        {
          "$ref": "#/$defs/MonetaryAmount"
        },
        {
          "type": "null"
        }
      ],
      "description": "Target raise amount."
    },
    "target_close_date": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoDate"
        },
        {
          "type": "null"
        }
      ],
      "description": "Target close date."
    },
    "term_sheet_ref": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef into the executed TermSheet."
    },
    "transactions": {
      "description": "PathRefs into EquityTransaction records (derivable but persisted\nfor browse).",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "use_of_funds_ref": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef into the UseOfFunds record (BDR 0068)."
    },
    "wired_amount": {
      "anyOf": [
        {
          "$ref": "#/$defs/MonetaryAmount"
        },
        {
          "type": "null"
        }
      ],
      "description": "Cash in the bank."
    }
  },
  "required": [
    "id",
    "entity",
    "name",
    "stage"
  ],
  "title": "Round",
  "type": "object",
  "x-corpospec-pillar": "entity"
}