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

# Database

> Waboxapp local sync: searchable entities, `.search()` filters, and operators.

The Waboxapp plugin syncs data locally. Use `corsair.waboxapp.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

<Info>
  **New to Corsair?** See [database operations](/concepts/database), [data synchronization](/concepts/integrations), and [multi-tenancy](/concepts/multi-tenancy).
</Info>

## Accounts

Path: `waboxapp.db.accounts.search`

```ts theme={null}
const rows = await corsair.waboxapp.db.accounts.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field       | Type      | Operators                                  |
| ----------- | --------- | ------------------------------------------ |
| `entity_id` | `string`  | equals, contains, startsWith, endsWith, in |
| `success`   | `boolean` | equals                                     |
| `uid`       | `string`  | equals, contains, startsWith, endsWith, in |
| `hook_url`  | `string`  | equals, contains, startsWith, endsWith, in |
| `alias`     | `string`  | equals, contains, startsWith, endsWith, in |
| `platform`  | `string`  | equals, contains, startsWith, endsWith, in |
| `battery`   | `string`  | equals, contains, startsWith, endsWith, in |
| `plugged`   | `string`  | equals, contains, startsWith, endsWith, in |
| `locale`    | `string`  | equals, contains, startsWith, endsWith, in |
| `error`     | `string`  | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Messages

Path: `waboxapp.db.messages.search`

```ts theme={null}
const rows = await corsair.waboxapp.db.messages.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field       | Type      | Operators                                  |
| ----------- | --------- | ------------------------------------------ |
| `entity_id` | `string`  | equals, contains, startsWith, endsWith, in |
| `success`   | `boolean` | equals                                     |
| `error`     | `string`  | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***
