index property

bool index
final

Create an INDEX on a single column. A UNIQUE index will be created when unique is true. When unique is true and index is absent or false, an index is not created.

Iterable associations are automatically indexed through a generated joins table. index declared on these fields will be ignored.

Defaults false.

Implementation

final bool index;