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

# ReferralReward

> The schema definition for the ReferralReward resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the referral reward.

## Specific attributes

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

cycles

integer

public

The cycles of the referral reward.

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

description

text

public

The description of the referral reward.

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

internal

varchar

public

required

The internal of the referral reward.

**Rules**: Max length: 50 characters

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

name

varchar

public

required

The name of the referral reward.

**Rules**: Max length: 100 characters

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

start\_cycle\_offset

integer

default:"0"

public

required

The start cycle offset of the referral reward.

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

translations

jsonb

public

The translations of the referral reward.

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

type

varchar

public

required

The type of the referral reward.

**Rules**: Possible values: club\_coupon, ecommerce\_code, plan\_discount\_percent, plan\_free\_cycle. Max length: 30 characters

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

validity\_days

integer

public

The validity days of the referral reward.

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

value

numeric

public

The value of the referral reward.

**Rules**: Precision: 12, Scale: 2

## Foreign keys

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

code\_coupon

uuid

public

Optional reference to the Code Coupon associated with the referral reward. [Ref: Code Coupon Schema](https://docs.bbrands.io/schemas/code/code-coupon.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.