# Semantic layer

The Quill semantic layer is a multi-tenant, end user-facing reporting schema.
We validate tenant ownership on the SQL of a table in the semantic layer. In
SQL, you can join together related tables and rename columns. In the
description you can add relevant business context for AI so that end users'
questions will be interpreted correctly.

```mermaid semantic-layer
flowchart LR
  subgraph db["Database"]
    direction LR
    orders[("orders")]
    customers[("customers")]
  end
  subgraph sl["Semantic layer"]
    vt["Orders"]
  end
  subgraph users["End users"]
    direction LR
    reports["Reports"]
    ai["AI questions"]
  end
  db -- "tenant scoped, joined, renamed in business language" --> sl
  sl -- "clean, user-facing reporting schema" --> users
```
