Use generator key instead of guid. Key is unique in data model

 -     "generators_key_idx" UNIQUE, btree (key) WHERE deleted_at IS NULL