The indexes as the IndexInfo the DDL generators consume.
List<IndexInfo> get indexInfos => [ for (final index in indexes.values) index.toIndexInfo(), ];