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

# CustomerCompensationApproval

> The schema definition for the CustomerCompensationApproval resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the customer compensation approval.

## Specific attributes

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

approver\_kind

varchar

public

required

The approver kind of the customer compensation approval.

**Rules**: Possible values: system, user. Max length: 20 characters

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

decision

varchar

public

required

The decision of the customer compensation approval.

**Rules**: Possible values: approved, rejected. Max length: 20 characters

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

note

text

public

The note of the customer compensation approval.

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

request\_hash

varchar

public

required

The request hash of the customer compensation approval.

**Rules**: Max length: 64 characters

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

rule\_results

jsonb

public

The rule results of the customer compensation approval.

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

rule\_set\_version

integer

public

The rule set version of the customer compensation approval.

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

tier

PgSmallInt

public

The tier of the customer compensation approval.

## Foreign keys

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

compensation

uuid

public

Optional reference to the Customer Compensation associated with the customer compensation approval. [Ref: Customer Compensation Schema](https://docs.bbrands.io/schemas/compensation/customer-compensation.md)

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

incident

uuid

public

Optional reference to the Customer Compensation Incident associated with the customer compensation approval. [Ref: Customer Compensation Incident Schema](https://docs.bbrands.io/schemas/compensation/customer-compensation-incident.md)

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

user

uuid

public

Optional reference to the Users associated with the customer compensation approval.

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