> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cubestack.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Cubes

> Learn about cubes — the core data structure in CubeStack.

# Cubes

Cubes are the core building blocks of CubeStack. Each cube represents a structured data table with typed columns and records.

## What is a Cube?

A cube is similar to a database table. It has:

* **Columns** — Typed fields that define your data schema
* **Records** — Rows of data that follow the schema
* **Settings** — Configuration for access, visibility, and behavior

## Column Types

CubeStack supports the following column types:

| Type       | Description                                    |
| ---------- | ---------------------------------------------- |
| `text`     | Short text string                              |
| `number`   | Numeric value (integer or decimal)             |
| `boolean`  | True/false toggle                              |
| `date`     | Date value                                     |
| `datetime` | Date and time value                            |
| `select`   | Single or multi-select from predefined options |
| `image`    | Image upload with CDN delivery                 |
| `richtext` | Rich text content with formatting              |
| `url`      | URL/link value                                 |
| `email`    | Email address                                  |
| `json`     | Raw JSON data                                  |

## Column Settings

Each column can be configured with:

* **Required** — Whether the field must have a value
* **Unique** — Whether values must be unique across records
* **Public** — Whether the field is visible in public API responses
* **Validation** — Type-specific validation rules (min/max, regex, etc.)

## Creating a Cube

1. Navigate to your project
2. Click **New Cube**
3. Set a name and slug
4. Add columns with their types and settings
5. Save the cube

The API endpoint is automatically generated based on the cube slug.
