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

# OrgUnit

> The schema definition for the OrgUnit resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the org unit.

## Specific attributes

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

code

varchar

public

The code of the org unit.

**Rules**: Max length: 50 characters

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

kind

varchar

public

required

The kind of the org unit.

**Rules**: Possible values: branch, company, holding. Max length: 20 characters

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

name

varchar

public

required

The name of the org unit.

**Rules**: Max length: 150 characters

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

sort\_order

integer

default:"0"

public

required

The sort order of the org unit.

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

unit\_type

varchar

public

The unit type of the org unit.

**Rules**: Possible values: area, management, other, team. Max length: 30 characters

## Foreign keys

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

company

uuid

public

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

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

parent

uuid

public

Optional reference to the Org Unit associated with the org unit. [Ref: Org Unit Schema](https://docs.bbrands.io/schemas/bbrands/org-unit.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.