---
title: Database structure
project: Tables
version: 7.0
section: reference
language: sk
translation: missing
license: Total.js Enterprise
url: https://totaljs.es/docs/sk/tables/7-0/reference/database/
updated: 2026-11-20T06:40:02.622Z
---

# Database structure

> How Tables stores your tables in PostgreSQL, for reports and other tools.

Every table you design is a real PostgreSQL table, so reporting tools and other applications can read your data directly. All the tables are in the schema set by `schema` in the [configuration](../configuration/).

## Your tables

Each table is stored in a PostgreSQL table named with its ID, for example `t118h7`. Its columns are:

| Column | Content |
|---|---|
| `id` | The ID of the record. |
| `name` | The Name column. |
| `x01`, `x02`, ... | Your columns, named with their IDs. |
| `rev` | The revision number, raised on every change. |
| `permissions` | The visibility of the record. |
| `createdby`, `dtcreated` | Who created the record and when (UTC). |
| `updatedby`, `dtupdated` | Who changed it last and when (UTC). |
| `parentid`, `copyid`, `cloneid` | Internal links between records. |

For each table, Tables also creates a view named `v` + the ID, for example `vt118h7`. The view adds the names of linked records and the [calculated columns](../../guides/sql-columns/). For reports, read the view:

```sql
SELECT name, x02 AS customer, x04 AS amount
FROM vt118h7
WHERE x05 = 'new'
ORDER BY dtcreated DESC;
```

## System tables

| Table | Content |
|---|---|
| `tbl_table` | The settings and columns of each table. |
| `tbl_view` | The saved views. |
| `tbl_backup` | The [versions](../../guides/versions/) of records. |
| `tbl_removed` | The [removed records](../../guides/removed-records/) of tables that keep them. |
| `tbl_log` | The [audit log](../../guides/audit-log/). |
| `tbl_token` | The [API tokens](../../guides/api-tokens/). |
| `tbl_serial` | The counters of **Auto increment** columns. |
| `tbl_file` | The uploaded files. |
| `tbl_config` | Internal settings. |

## Change data safely

Read freely, but change the structure of these tables only in Tables, never with SQL. Tables creates and changes the PostgreSQL tables and views from the settings of your tables.
