# jooq/sakila architecture

> Architecture diagram of the GitHub repository jooq/sakila, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jooq/sakila
- Repository: https://github.com/jooq/sakila

## Overview

Sakila is a normalized sample DVD-rental database, with SQL bundles for nine database platforms. The documented use is to load the example data and run queries against its relational model; the README highlights joins across many-to-many relationships and revenue analysis. Each bundle contains schema, data, and cleanup scripts. No source excerpts were provided, so the graph shows the platform bundles but omits unverified execution links and internal table-level relationships.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_open["Open-source databases"]
  node_mysql["MySQL bundle"]
  node_postgres["PostgreSQL bundle"]
  node_sqlite["SQLite bundle"]
end

subgraph group_enterprise["Enterprise databases"]
  node_db2["DB2 bundle"]
  node_oracle["Oracle bundle"]
  node_sqlserver["SQL Server bundle"]
end

subgraph group_distributed["Distributed databases"]
  node_cockroach["CockroachDB bundle"]
  node_yugabyte["YugabyteDB bundle"]
end

click node_mysql "https://github.com/jooq/sakila/tree/main/mysql-sakila-db"
click node_postgres "https://github.com/jooq/sakila/tree/main/postgres-sakila-db"
click node_sqlite "https://github.com/jooq/sakila/tree/main/sqlite-sakila-db"
click node_db2 "https://github.com/jooq/sakila/tree/main/db2-sakila-db"
click node_oracle "https://github.com/jooq/sakila/tree/main/oracle-sakila-db"
click node_sqlserver "https://github.com/jooq/sakila/tree/main/sql-server-sakila-db"
click node_cockroach "https://github.com/jooq/sakila/tree/main/cockroachdb-sakila-db"
click node_yugabyte "https://github.com/jooq/sakila/tree/main/yugabytedb-sakila-db"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mysql,node_postgres,node_sqlite toneBlue
class node_db2,node_oracle,node_sqlserver toneAmber
class node_cockroach,node_yugabyte toneMint
```

## Components

### Open-source databases

- [MySQL bundle](https://github.com/jooq/sakila/tree/main/mysql-sakila-db): `mysql-sakila-db`
- [PostgreSQL bundle](https://github.com/jooq/sakila/tree/main/postgres-sakila-db): `postgres-sakila-db`
- [SQLite bundle](https://github.com/jooq/sakila/tree/main/sqlite-sakila-db): `sqlite-sakila-db`

### Enterprise databases

- [DB2 bundle](https://github.com/jooq/sakila/tree/main/db2-sakila-db): `db2-sakila-db`
- [Oracle bundle](https://github.com/jooq/sakila/tree/main/oracle-sakila-db): `oracle-sakila-db`
- [SQL Server bundle](https://github.com/jooq/sakila/tree/main/sql-server-sakila-db): `sql-server-sakila-db`

### Distributed databases

- [CockroachDB bundle](https://github.com/jooq/sakila/tree/main/cockroachdb-sakila-db): `cockroachdb-sakila-db`
- [YugabyteDB bundle](https://github.com/jooq/sakila/tree/main/yugabytedb-sakila-db): `yugabytedb-sakila-db`
