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

# MaihueLead

> The schema definition for the MaihueLead resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

The unique identifier for the Maihue lead record.

## Specific attributes

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

collection\_channel

varchar

public

The channel through which the lead was collected.

**Rules**: Max length: 250 characters

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

commercial\_activity

varchar

public

The commercial activity associated with the lead.

**Rules**: Max length: 250 characters

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

contact

varchar

public

required

The contact information for the lead.

**Rules**: Max length: 250 characters

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

dni

varchar

public

required

The DNI (Document of National Identity) of the lead.

**Rules**: Max length: 50 characters

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

email

varchar

public

required

The email address of the lead.

**Rules**: Max length: 250 characters

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

evaluation\_date

timestamp

public

Date associated with the evaluation of the maihue lead.

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

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

evaluation\_debt

numeric

public

The evaluated debt of the lead.

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

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

evaluation\_score

numeric

public

The evaluation score of the lead.

**Rules**: Precision: 6, Scale: 2

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

first\_name

varchar

public

The first name of the maihue lead.

**Rules**: Max length: 120 characters

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

gloss

varchar

public

Additional notes or comments about the lead.

**Rules**: Max length: 150 characters

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

ip

varchar

public

required

The IP address associated with the lead.

**Rules**: Max length: 50 characters

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

last\_name

varchar

public

The last name of the maihue lead.

**Rules**: Max length: 120 characters

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

name

varchar

public

required

The name of the lead.

**Rules**: Max length: 250 characters

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

name\_fantasy

varchar

public

The fantasy or trade name associated with the lead.

**Rules**: Max length: 250 characters

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

payment\_method

varchar

public

The preferred payment method of the lead.

**Rules**: Possible values: pac, pat, transfer. Max length: 50 characters

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

phone

varchar

public

required

The phone number of the lead.

**Rules**: Max length: 50 characters

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

s\_utm\_compaign

varchar

public

The UTM campaign parameter for the session.

**Rules**: Max length: 250 characters

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

s\_utm\_content

varchar

public

The UTM content parameter for the session.

**Rules**: Max length: 250 characters

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

s\_utm\_medium

varchar

public

The UTM medium parameter for the session.

**Rules**: Max length: 250 characters

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

s\_utm\_source

varchar

public

The UTM source parameter for the session.

**Rules**: Max length: 250 characters

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

s\_utm\_term

varchar

public

The UTM term parameter for the session.

**Rules**: Max length: 250 characters

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

type

varchar

public

required

The type of lead.

**Rules**: Possible values: business, home, horeca. Max length: 50 characters

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

utm\_compaign

varchar

public

The UTM campaign parameter.

**Rules**: Max length: 250 characters

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

utm\_content

varchar

public

The UTM content parameter.

**Rules**: Max length: 250 characters

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

utm\_medium

varchar

public

The UTM medium parameter.

**Rules**: Max length: 250 characters

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

utm\_source

varchar

public

The UTM source parameter.

**Rules**: Max length: 250 characters

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

utm\_term

varchar

public

The UTM term parameter.

**Rules**: Max length: 250 characters

## Foreign keys

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

address

uuid

public

required

The unique identifier of the associated address. [Ref: Address Schema](https://docs.bbrands.io/schemas/general/address.md)

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

business\_unit

uuid

public

Optional reference to the Business Unit associated with the maihue lead. [Ref: Business Unit Schema](https://docs.bbrands.io/schemas/product/business-unit.md)

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

country

uuid

public

required

The unique identifier of the associated country. [Ref: Country Schema](https://docs.bbrands.io/schemas/geolocation/country.md)

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

type\_dni

uuid

public

required

The unique identifier of the associated DNI type. [Ref: TypeDni Schema](https://docs.bbrands.io/schemas/general/type-dni.md)

## Tracking attributes

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

created\_at

timestamp

public

required

The timestamp when the Maihue lead record was created.

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

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

deleted\_at

timestamp

public

The timestamp when the Maihue lead record was deleted, if applicable.

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

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

is\_actived

boolean

default:"true"

public

required

Indicates whether the Maihue lead record is active.

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

is\_deleted

boolean

default:"false"

public

required

Indicates whether the Maihue lead record has been deleted.

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

updated\_at

timestamp

public

The timestamp when the Maihue lead record was last updated.

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.