> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelence.com/llms.txt
> Use this file to discover all available pages before exploring further.

# dbUsers

[API Reference](/api-reference/modelence/server/variables/../../../index) / [modelence](/api-reference/modelence/server/variables/../../index) / [server](/api-reference/modelence/server/variables/../index) / dbUsers

> `const` **dbUsers**: [`Store`](/api-reference/modelence/server/variables/../classes/Store)\<\{ `authMethods`: `ZodObject`\<\{ `github`: `ZodOptional`\<`ZodObject`\<\{ `id`: `ZodString`; }, `"strip"`, `ZodTypeAny`, \{ `id`: `string`; }, \{ `id`: `string`; }>>; `google`: `ZodOptional`\<`ZodObject`\<\{ `id`: `ZodString`; }, `"strip"`, `ZodTypeAny`, \{ `id`: `string`; }, \{ `id`: `string`; }>>; `password`: `ZodOptional`\<`ZodObject`\<\{ `hash`: `ZodString`; }, `"strip"`, `ZodTypeAny`, \{ `hash`: `string`; }, \{ `hash`: `string`; }>>; }, `"strip"`, `ZodTypeAny`, \{ `github?`: \{ `id`: `string`; }; `google?`: \{ `id`: `string`; }; `password?`: \{ `hash`: `string`; }; }, \{ `github?`: \{ `id`: `string`; }; `google?`: \{ `id`: `string`; }; `password?`: \{ `hash`: `string`; }; }>; `avatarUrl`: `ZodOptional`\<`ZodString`>; `createdAt`: `ZodDate`; `deletedAt`: `ZodOptional`\<`ZodDate`>; `disabledAt`: `ZodOptional`\<`ZodDate`>; `emails`: `ZodOptional`\<`ZodArray`\<`ZodObject`\<\{ `address`: `ZodString`; `verified`: `ZodBoolean`; }, `"strip"`, `ZodTypeAny`, \{ `address`: `string`; `verified`: `boolean`; }, \{ `address`: `string`; `verified`: `boolean`; }>, `"many"`>>; `firstName`: `ZodOptional`\<`ZodString`>; `handle`: `ZodString`; `lastName`: `ZodOptional`\<`ZodString`>; `roles`: `ZodOptional`\<`ZodArray`\<`ZodString`, `"many"`>>; `status`: `ZodOptional`\<`ZodEnum`\<\[`"active"`, `"disabled"`, `"deleted"`]>>; }, `Record`\<`string`, (`this`, ...`args`) => `any`>>

Defined in: [packages/modelence/src/auth/db.ts:18](https://github.com/modelence/modelence/blob/dcea4170315a023a7e8f0c3c5d551c26b7adecf3/packages/modelence/src/auth/db.ts#L18)

Database collection for storing user accounts with authentication methods and profile information.

This is where **signupWithPassword** automatically creates new users.

## Example

```typescript theme={null}
// Find user by email
const user = await dbUsers.findOne(
  { 'emails.address': 'john@example.com' }
);
```
