Unique index in generator