diff --git a/app/config/collections.php b/app/config/collections.php index b8d244b6b2..6a11a3eacd 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1177,6 +1177,13 @@ $collections = [ 'lengths' => [320], 'orders' => [Database::ORDER_ASC], ], + [ + '$id' => '_key_phone', + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['phone'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], [ '$id' => '_key_search', 'type' => Database::INDEX_FULLTEXT, @@ -1744,7 +1751,7 @@ $collections = [ 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], ], [ - '$id' => '_key_internal', + '$id' => '_key_user', 'type' => Database::INDEX_KEY, 'attributes' => ['userInternalId'], 'lengths' => [Database::LENGTH_KEY],