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

# DeviceInstallation

> The schema definition for the DeviceInstallation resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the device installation.

## Specific attributes

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

app\_build

varchar

public

The app build of the device installation.

**Rules**: Max length: 32 characters

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

app\_variant

varchar

public

The app variant of the device installation.

**Rules**: Max length: 30 characters

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

app\_version

varchar

public

The app version of the device installation.

**Rules**: Max length: 32 characters

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

blocked\_at

timestamp

public

Timestamp when the device installation was blocked.

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

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

blocked\_by

uuid

public

The blocked by of the device installation.

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

blocked\_reason

varchar

public

The blocked reason of the device installation.

**Rules**: Max length: 500 characters

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

brand

varchar

public

The brand of the device installation.

**Rules**: Max length: 100 characters

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

browser\_name

varchar

public

The browser name of the device installation.

**Rules**: Max length: 50 characters

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

browser\_version

varchar

public

The browser version of the device installation.

**Rules**: Max length: 50 characters

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

bundle\_id

varchar

public

The bundle ID of the device installation.

**Rules**: Max length: 150 characters

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

color\_scheme

varchar

public

The color scheme of the device installation.

**Rules**: Max length: 10 characters

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

device\_type

varchar

default:"unknown"

public

required

The device type of the device installation.

**Rules**: Possible values: desktop, phone, tablet, tv, unknown. Max length: 10 characters

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

device\_year\_class

PgSmallInt

public

The device year class of the device installation.

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

diagnostic\_by

uuid

public

The diagnostic by of the device installation.

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

diagnostic\_until

timestamp

public

The diagnostic until of the device installation.

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

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

first\_seen\_at

timestamp

public

required

Timestamp when the device installation was first seen.

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

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

font\_scale

numeric

public

The font scale of the device installation.

**Rules**: Precision: 4, Scale: 2

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

installation\_id

varchar

public

required

The installation ID of the device installation.

**Rules**: Max length: 64 characters

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

installed\_at

timestamp

public

Timestamp when the device installation was installed.

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

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

install\_source

varchar

public

The install source of the device installation.

**Rules**: Max length: 100 characters

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

is\_physical\_device

boolean

default:"true"

public

required

Indicates whether the device installation is physical device.

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

is\_rooted

boolean

public

Indicates whether the device installation is rooted.

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

last\_push\_test\_at

timestamp

public

Last time staff sent a test push to this installation. Written with the operator's reason, so the account History records the action.

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

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

last\_seen\_at

timestamp

public

required

Timestamp when the device installation was last seen.

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

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

locale

varchar

public

The locale of the device installation.

**Rules**: Max length: 35 characters

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

manufacturer

varchar

public

The manufacturer of the device installation.

**Rules**: Max length: 100 characters

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

model\_id

varchar

public

The model ID of the device installation.

**Rules**: Max length: 100 characters

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

model\_name

varchar

public

The model name of the device installation.

**Rules**: Max length: 100 characters

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

network\_type

varchar

public

The network type of the device installation.

**Rules**: Max length: 20 characters

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

note

varchar

public

The note of the device installation.

**Rules**: Max length: 1000 characters

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

os\_name

varchar

public

The os name of the device installation.

**Rules**: Max length: 50 characters

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

os\_version

varchar

public

The os version of the device installation.

**Rules**: Max length: 50 characters

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

permissions

jsonb

public

The permissions of the device installation.

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

platform

varchar

public

required

The platform of the device installation.

**Rules**: Possible values: android, ios, web. Max length: 10 characters

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

push\_opted\_in

boolean

public

Indicates whether push opted in applies to the device installation.

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

push\_permission

varchar

public

The push permission of the device installation.

**Rules**: Possible values: denied, granted, provisional, undetermined. Max length: 15 characters

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

push\_subscription\_id

varchar

public

The push subscription ID of the device installation.

**Rules**: Max length: 64 characters

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

region

varchar

public

The region of the device installation.

**Rules**: Max length: 35 characters

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

runtime\_version

varchar

public

The runtime version of the device installation.

**Rules**: Max length: 64 characters

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

screen\_height

integer

public

The screen height of the device installation.

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

screen\_scale

numeric

public

The screen scale of the device installation.

**Rules**: Precision: 4, Scale: 2

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

screen\_width

integer

public

The screen width of the device installation.

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

timezone

varchar

public

The timezone of the device installation.

**Rules**: Max length: 35 characters

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

total\_memory\_mb

integer

public

The total memory mb of the device installation.

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

update\_channel

varchar

public

The update channel of the device installation.

**Rules**: Max length: 64 characters

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

update\_id

varchar

public

The update ID of the device installation.

**Rules**: Max length: 64 characters

## Foreign keys

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

application

uuid

public

required

Reference to the Application this device installation belongs to. [Ref: Application Schema](https://docs.bbrands.io/schemas/bbrands/application.md)

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

application\_release

uuid

public

Optional reference to the Application Release associated with the device installation. [Ref: Application Release Schema](https://docs.bbrands.io/schemas/bbrands/application-release.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.