ioxiocom / firedantic

Database models for Firestore using Pydantic base models.
BSD 3-Clause "New" or "Revised" License
43 stars 14 forks source link

Add composite indexes support #64

Closed fbjorn closed 4 months ago

fbjorn commented 5 months ago

Add support for defining and creating composite indexes in Firestore.

Model and AsyncModel are got new field __composite_indexes__ that should contain a list of collection_index and collection_group_index function results, that return a tuple representing an index.