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

# AccountLoginEvent

> The schema definition for the AccountLoginEvent resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the account login event.

## Specific attributes

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

ip\_address

varchar

public

The IP address of the account login event.

**Rules**: Max length: 64 characters

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

kind

varchar

public

required

Whether the event is a `login` or a `logout`.

**Rules**: Max length: 16 characters

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

occurred\_at

timestamp

public

required

Timestamp when the sign-in or sign-out happened.

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

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

platform

varchar

public

The platform of the account login event.

**Rules**: Max length: 16 characters

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

user\_agent

varchar

public

The user agent of the account login event.

**Rules**: Max length: 512 characters

## Foreign keys

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

account

uuid

public

Optional reference to the Account associated with the account login event. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

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

application

uuid

public

Optional reference to the Application associated with the account login event. [Ref: Application Schema](https://docs.bbrands.io/schemas/bbrands/application.md)

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

device\_installation

uuid

public

required

Reference to the Device Installation this account login event belongs to. [Ref: Device Installation Schema](https://docs.bbrands.io/schemas/account/device-installation.md)

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

org\_account

uuid

public

Optional reference to the Account associated with the account login event. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

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

user

uuid

public

required

Reference to the Users this account login event belongs to.

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