[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / DatabaseNotificationOptions

# Interface: DatabaseNotificationOptions

Defined in: [admin/src/databaseNotifications.ts:33](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/databaseNotifications.ts#L33)

## Properties

### table?

> `optional` **table?**: `string`

Defined in: [admin/src/databaseNotifications.ts:35](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/databaseNotifications.ts#L35)

Table holding the notifications. Defaults to `"notifications"`.

***

### notifiable?

> `optional` **notifiable?**: () => `unknown`

Defined in: [admin/src/databaseNotifications.ts:41](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/databaseNotifications.ts#L41)

Who the bell is showing. Defaults to the signed-in user from
`@zerotal/auth`; returning `null` shows nothing, which is the right answer
for a guest.

#### Returns

`unknown`

***

### limit?

> `optional` **limit?**: `number`

Defined in: [admin/src/databaseNotifications.ts:43](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/databaseNotifications.ts#L43)

How many to show. Defaults to 20 — a bell is not an archive.

***

### present?

> `optional` **present?**: (`row`, `data`) => [`AdminNotification`](AdminNotification)

Defined in: [admin/src/databaseNotifications.ts:49](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/databaseNotifications.ts#L49)

Turn a stored row into what the panel renders. The default reads `title`,
`body`/`message`, `url`/`href` and `icon` out of the payload, which is what
most notifications carry.

#### Parameters

##### row

[`StoredNotification`](StoredNotification)

##### data

`Record`\<`string`, `unknown`\>

#### Returns

[`AdminNotification`](AdminNotification)
