Domain Model
Space
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| siteId | string | Yes | — | ID of the associated site |
| parentSpaceId | string | No | — | ID of the associated parent space |
| spaceType | enum(building, floor, wing, room, closet, rack, parking_area, exterior, other) | Yes | — | Space type |
| name | string | Yes | — | Name |
| floor | string | No | — | Floor |
| roomNumber | string | No | — | Room number |
| description | string | No | — | Description |
| workspaceId | string | Yes | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | — | Visibility mode |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| siteId | string | Yes | — | ID of the associated site |
| parentSpaceId | string | No | — | ID of the associated parent space |
| spaceType | enum(building, floor, wing, room, closet, rack, parking_area, exterior, other) | Yes | — | Space type |
| name | string | Yes | — | Name |
| floor | string | No | — | Floor |
| roomNumber | string | No | — | Room number |
| description | string | No | — | Description |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| siteId | string | No | — | ID of the associated site |
| parentSpaceId | string | No | — | ID of the associated parent space |
| spaceType | enum(building, floor, wing, room, closet, rack, parking_area, exterior, other) | No | — | Space type |
| name | string | No | — | Name |
| floor | string | No | — | Floor |
| roomNumber | string | No | — | Room number |
| description | string | No | — | Description |