公共 API 参考(@saas/contracts + @core/saas-kit + apps/api 对外接口)
    Preparing search index...

    R4b bootstrap 脚本为每条存量 organization_subscription 行产出的事件(ES R4 第二上下文推广)。

    Raised by the R4b bootstrap script for each pre-existing organization_subscription row (ES R4 第二上下文推广 · module-es-r4-second-context-subscriptions·裁ⓒ·沿 tenants bootstrapped 律)。 eventType subscription.bootstrapped, eventVersion 1, aggregateType subscription。

    语义:存量流起点快照——全流回放采「最后快照重启」(覆盖此前一切·不重排历史·同 tenants R1b); version 从流现有 max+1 续位·幂等律=流内已含本事件则跳过。aggregateId=订阅行 id(裁ⓐ甲)。

    PII 边界:payload 仅治理态 + opaque 计划码·无 subject PII(表列=id/organizationId/plan/status/limits/period/provider refs)。

    Hierarchy (View Summary)

    Index
    aggregateId: string

    事件所属聚合根 id。

    aggregateType: string

    事件所属聚合类型名。

    causationId?: string

    因果链:直接触发本事件的事件 id。

    correlationId?: string

    关联 id:贯穿一次请求链。

    eventId: string

    事件唯一 id。

    eventType: string

    事件类型名(稳定契约)。

    eventVersion: number

    事件 schema 版本。

    occurredAt: Date

    事件发生时间。

    事件负载。

    AGGREGATE_TYPE: "subscription" = 'subscription'

    该事件聚合类型常量(供订阅/投影路由)。

    EVENT_TYPE: "subscription.bootstrapped" = DOMAIN_EVENTS.subscriptionBootstrapped

    该事件类型常量(稳定契约名)。

    EVENT_VERSION: 1

    该事件 schema 版本号。