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

# ReferralLink

> The schema definition for the ReferralLink resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the referral link.

## Specific attributes

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

revoked\_at

timestamp

public

Timestamp when the referral link was revoked.

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

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

source

varchar

public

required

The source of the referral link.

**Rules**: Possible values: customer, executive. Max length: 20 characters

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

token

varchar

public

required

The token of the referral link.

**Rules**: Max length: 64 characters

## Foreign keys

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

on\_behalf\_account

uuid

public

Optional reference to the Account associated with the referral link. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

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

owner\_account

uuid

public

Optional reference to the Account associated with the referral link. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

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

owner\_user

uuid

public

Optional reference to the Users associated with the referral link.

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

referral\_campaign\_business\_unit

uuid

public

required

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

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

revoked\_by

uuid

public

Optional reference to the Users associated with the referral link.

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

short\_link

uuid

public

Optional reference to the Short Link associated with the referral link. [Ref: Short Link Schema](https://docs.bbrands.io/schemas/short-link/short-link.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.