indexer: model auto-generation

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
records: models auto-generation

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>