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

# ReferralCampaignRule

> The schema definition for the ReferralCampaignRule resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the referral campaign rule.

## Specific attributes

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

rule\_group

integer

default:"0"

public

required

The rule group of the referral campaign rule.

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

type

varchar

public

required

The type of the referral campaign rule.

**Rules**: Possible values: segment, seniority\_days. Max length: 30 characters

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

value

jsonb

public

required

The value of the referral campaign rule.

## Foreign keys

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

referral\_campaign\_business\_unit

uuid

public

required

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