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

# MaihueStreetMachinePresenceEvent

> The schema definition for the MaihueStreetMachinePresenceEvent resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the maihue street machine presence event.

## Specific attributes

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

channel

text

public

required

Pusher channel of the event (`totem-{id}` or `presence-totem-{id}`).

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

device

varchar

public

Machine device of a member event (`raspberry`, `touch`, `brand_experience`, `advertising`).

**Rules**: Max length: 32 characters

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

event\_key

varchar

public

required

SHA-256 of the webhook event fields; unique, so a redelivered webhook adds no second row.

**Rules**: Max length: 64 characters

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

event\_type

varchar

public

required

Pusher webhook event: `member_added`, `member_removed`, `channel_occupied`, `channel_vacated` or `subscription_count`.

**Rules**: Max length: 32 characters

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

kind

varchar

public

Kind of member for member events: `machine`, `staff` or `customer`.

**Rules**: Max length: 16 characters

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

member\_id

varchar

public

Pusher `user_id` assigned by the signer (`machine:{id}:{device}`, `staff:{id}`, `account:{id}`, `alias:{id}`, or the former `customer:{id}`).

**Rules**: Max length: 160 characters

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

occurred\_at

timestamp

public

required

Webhook batch time plus the event's index in the batch as microseconds, so events of one batch never tie.

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

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

payload

jsonb

public

required

The webhook event as received.

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

subscription\_count

integer

public

Subscribers of the public channel, for `subscription_count` events.

## Foreign keys

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

machine

uuid

public

Optional reference to the Maihue Street Machine associated with the maihue street machine presence event. [Ref: Maihue Street Machine Schema](https://docs.bbrands.io/schemas/maihue-street/maihue-street-machine.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.