> ## 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.

# ReferralCampaignBusinessUnit

> The schema definition for the ReferralCampaignBusinessUnit resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the referral campaign business unit.

## Specific attributes

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

advisor\_exclusivity\_days

integer

public

The advisor exclusivity days of the referral campaign business unit.

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

code\_suffix

varchar

public

required

The code suffix of the referral campaign business unit.

**Rules**: Max length: 5 characters

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

landing\_content

jsonb

public

The landing content of the referral campaign business unit.

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

max\_rewards

integer

public

The max rewards of the referral campaign business unit.

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

priority

integer

public

required

The priority of the referral campaign business unit.

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

reserved\_rewards

integer

default:"0"

public

required

The reserved rewards of the referral campaign business unit.

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

used\_rewards

integer

default:"0"

public

required

The used rewards of the referral campaign business unit.

## Foreign keys

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

business\_unit

uuid

public

required

Reference to the Business Unit this referral campaign business unit belongs to. [Ref: Business Unit Schema](https://docs.bbrands.io/schemas/product/business-unit.md)

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

country

uuid

public

Optional reference to the Country associated with the referral campaign business unit. [Ref: Country Schema](https://docs.bbrands.io/schemas/geolocation/country.md)

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

referral\_campaign

uuid

public

required

Reference to the Referral Campaign this referral campaign business unit belongs to. [Ref: Referral Campaign Schema](https://docs.bbrands.io/schemas/referral/referral-campaign.md)

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

referral\_workflow

uuid

public

required

Reference to the Referral Workflow this referral campaign business unit belongs to. [Ref: Referral Workflow Schema](https://docs.bbrands.io/schemas/referral/referral-workflow.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.