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

# PortalCustomerLink

> Reusable portal link of a notification: a 14-day, revocable token (stored hashed) that signs the account owner into the customer portal.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the portal customer link.

## Specific attributes

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

destination

varchar

public

required

Portal section the link opens (`scheduling`).

**Rules**: Max length: 40 characters

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

expires\_at

timestamp

public

required

When the link stops working: 14 days after it was issued.

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

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

last\_used\_at

timestamp

public

Last click that minted a sign-in magic link.

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

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

revoked\_at

timestamp

public

When operations revoked the link; a revoked link falls back to the portal login.

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

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

source\_event

varchar

public

Notification event that carried the link (for example `maihue.maintenance-scheduling.first-reminder-due`).

**Rules**: Max length: 150 characters

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

token\_hash

varchar

public

required

SHA-256 (hex) of the token in the link; the token itself is never stored.

**Rules**: Max length: 64 characters

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

use\_count

integer

default:"0"

public

required

Clicks that minted a sign-in magic link.

## Foreign keys

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

account

uuid

public

required

Account whose owner the link signs in; the owner is resolved at click time. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.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.