Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import type { SearchIndexSchema } from "./types.js";
|
||||
|
||||
/**
|
||||
* User directory (admin-only). Searchable by name and email but never
|
||||
* indexes credentials, tokens or 2FA material.
|
||||
*/
|
||||
export const usersIndex: SearchIndexSchema = {
|
||||
name: "users",
|
||||
primaryKey: "id",
|
||||
searchableAttributes: ["firstName", "lastName", "email"],
|
||||
filterableAttributes: ["tenantId", "type", "admin", "active"],
|
||||
sortableAttributes: ["createdAt", "lastLoginAt"],
|
||||
rankingRules: ["words", "typo", "proximity", "attribute", "sort", "exactness"],
|
||||
allowedDocumentFields: [
|
||||
"id",
|
||||
"tenantId",
|
||||
"firstName",
|
||||
"lastName",
|
||||
"email",
|
||||
"type",
|
||||
"admin",
|
||||
"active",
|
||||
"createdAt",
|
||||
"lastLoginAt",
|
||||
],
|
||||
};
|
||||
Reference in new issue
Block a user