/** A single path within a composite index, with its sort order. */
export interface CompositeIndexPath {
  path: string;
  order?: 'ascending' | 'descending';
}

export interface ContainerConfig {
  partitionKeyPath: string;
  defaultTtl?: number | null;
  /**
   * Composite indexes for multi-field ORDER BY queries. Azure Cosmos cannot
   * serve a query that orders by two or more fields without a matching
   * composite index (the local emulator is lenient, real Cosmos is not).
   * Each entry is an ordered list of paths, e.g.
   * `[[{ path: '/priorityOrder' }, { path: '/createdAt' }]]`.
   * Applied on container creation and reconciled onto existing containers.
   */
  compositeIndexes?: CompositeIndexPath[][];
}
