When a mapping requires a discriminator column an index should be created for that column

Description

In mongodb, for example, the following mapping:

should create the following index (or something similar):

This should also happen with the deafult column (DTYPE column).
We should skip this step if a user has defined an index for the that column.

Environment

None

Assignee

Unassigned

Reporter

Davide D'Alto