tsanga/musty

Support mongoDB indexes

jonahseguin opened this issue · 0 comments

Allow #[musty(mongo(index = "..."))] on fields in a Model struct for mongo impls.
This will create indexes.

Indexes should be sync'd manually by the user with a Model::sync(&db) call at the start of their application.
Perhaps a musty::sync![User, UserAuth, ...]; macro to allow for streamlining this code