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

# CodeCouponChangeRequest

> The schema definition for the CodeCouponChangeRequest resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the code coupon change request.

## Specific attributes

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

entity

varchar

public

required

The entity of the code coupon change request.

**Rules**: Possible values: maihue\_club, merchant, merchant\_branch. Max length: 30 characters

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

entity\_document\_id

uuid

public

required

The entity document ID of the code coupon change request.

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

payload

jsonb

public

required

The payload of the code coupon change request.

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

requested\_by

uuid

public

The requested by of the code coupon change request.

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

reviewed\_at

timestamp

public

Timestamp when the code coupon change request was reviewed.

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

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

reviewed\_by

uuid

public

The reviewed by of the code coupon change request.

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

review\_note

varchar

public

The review note of the code coupon change request.

**Rules**: Max length: 500 characters

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

status

varchar

default:"pending"

public

required

The status of the code coupon change request.

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

## Foreign keys

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

code\_coupon\_merchant

uuid

public

required

Reference to the Code Coupon Merchant this code coupon change request belongs to. [Ref: Code Coupon Merchant Schema](https://docs.bbrands.io/schemas/code/code-coupon-merchant.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.