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

# CustomerCompensationIncident

> The schema definition for the CustomerCompensationIncident resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the customer compensation incident.

## Specific attributes

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

currency

varchar

default:"CLP"

public

required

The currency of the customer compensation incident.

**Rules**: Max length: 3 characters

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

ends\_at

timestamp

public

required

Timestamp when the customer compensation incident was ends.

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

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

notify\_customer

boolean

default:"true"

public

required

Indicates whether notify customer applies to the customer compensation incident.

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

problem

varchar

public

required

The problem of the customer compensation incident.

**Rules**: Max length: 100 characters

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

request\_hash

varchar

public

The request hash of the customer compensation incident.

**Rules**: Max length: 64 characters

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

required\_tier

PgSmallInt

public

The required tier of the customer compensation incident.

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

starts\_at

timestamp

public

required

Timestamp when the customer compensation incident was starts.

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

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

status

varchar

default:"draft"

public

required

The status of the customer compensation incident.

**Rules**: Possible values: applied, approved, cancelled, draft, pending\_approval, rejected. Max length: 30 characters

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

total\_value

numeric

public

The total value of the customer compensation incident.

**Rules**: Precision: 14, Scale: 2

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

type\_version

integer

public

required

The type version of the customer compensation incident.

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

units\_per\_account

integer

public

required

The units per account of the customer compensation incident.

## Foreign keys

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

maihue\_street\_machine

uuid

public

required

Reference to the Maihue Street Machine this customer compensation incident belongs to. [Ref: Maihue Street Machine Schema](https://docs.bbrands.io/schemas/maihue-street/maihue-street-machine.md)

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

type

uuid

public

required

Reference to the Customer Compensation Type this customer compensation incident belongs to. [Ref: Customer Compensation Type Schema](https://docs.bbrands.io/schemas/compensation/customer-compensation-type.md)

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

user\_requested

uuid

public

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

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

water\_type

uuid

public

Optional reference to the Maihue Street Water Type associated with the customer compensation incident. [Ref: Maihue Street Water Type Schema](https://docs.bbrands.io/schemas/maihue-street/maihue-street-water-type.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.