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

# NotificationTemplate

> The schema definition for the NotificationTemplate resource.

## Primary key

[Navigate to header](#param-commercial-activity)

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the notification template.

## Specific attributes

[Navigate to header](#param-commercial-activity)

allowed\_origins

PgArray

public

The allowed origins of the notification template.

[Navigate to header](#param-commercial-activity)

category

varchar

public

required

The category of the notification template.

**Rules**: Possible values: marketing, payment, security, system, transactional. Max length: 20 characters

[Navigate to header](#param-commercial-activity)

channel

varchar

public

required

The channel of the notification template.

**Rules**: Possible values: email, in\_app, live\_activity, push, sms, whatsapp. Max length: 20 characters

[Navigate to header](#param-commercial-activity)

current\_version

integer

public

The current version of the notification template.

[Navigate to header](#param-commercial-activity)

data\_schema

jsonb

public

The data schema of the notification template.

[Navigate to header](#param-commercial-activity)

description

text

public

The description of the notification template.

[Navigate to header](#param-commercial-activity)

internal

varchar

public

The internal of the notification template.

**Rules**: Max length: 160 characters

[Navigate to header](#param-commercial-activity)

is\_raw

boolean

default:"false"

public

required

Indicates whether the notification template is raw.

[Navigate to header](#param-commercial-activity)

key

varchar

public

required

The key of the notification template.

**Rules**: Max length: 120 characters

[Navigate to header](#param-commercial-activity)

name

varchar

public

required

The name of the notification template.

**Rules**: Max length: 255 characters

[Navigate to header](#param-commercial-activity)

version

integer

default:"1"

public

required

The version of the notification template.

## Foreign keys

[Navigate to header](#param-commercial-activity)

notification\_event\_channel

uuid

public

Optional reference to the Notification Event Channel associated with the notification template. [Ref: Notification Event Channel Schema](https://docs.bbrands.io/schemas/notification/notification-event-channel.md)

## Tracking attributes

[Navigate to header](#param-commercial-activity)

created\_at

timestamp

public

required

Timestamp when the record was created.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

deleted\_at

timestamp

public

Timestamp when the record was soft-deleted, when applicable.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

is\_actived

boolean

default:"true"

public

required

Indicates whether the record is currently active.

[Navigate to header](#param-commercial-activity)

is\_deleted

boolean

default:"false"

public

required

Indicates whether the record has been soft-deleted.

[Navigate to header](#param-commercial-activity)

updated\_at

timestamp

public

Timestamp when the record was last updated.

**Rules**: Precision: 6, with timezone


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.