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

# CustomerCompensationAutoRule

> The schema definition for the CustomerCompensationAutoRule resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the customer compensation auto rule.

## Specific attributes

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

internal

varchar

public

required

The internal of the customer compensation auto rule.

**Rules**: Max length: 200 characters

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

is\_current

boolean

default:"true"

public

required

Indicates whether the customer compensation auto rule is current.

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

is\_hard

boolean

default:"false"

public

required

Indicates whether the customer compensation auto rule is hard.

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

params

jsonb

public

required

The params of the customer compensation auto rule.

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

rule

varchar

public

required

The rule of the customer compensation auto rule.

**Rules**: Possible values: account\_cooldown, account\_good\_standing, daily\_auto\_budget, evidence\_at\_least, max\_units, max\_value, subject\_not\_compensated. Max length: 50 characters

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

rule\_set\_version

integer

default:"1"

public

required

The rule set version of the customer compensation auto rule.

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

type

varchar

public

required

The type of the customer compensation auto rule.

**Rules**: Max length: 100 characters

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

version

integer

default:"1"

public

required

The version of the customer compensation auto rule.

## Foreign keys

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

user\_saved

uuid

public

Optional reference to the Users associated with the customer compensation auto rule.

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