Sakila Data Base ER diagram
This ER diagram shows the main entities and foreign key relationships for the Sakila database.
Sakila Database ERD
Entity relationship diagram for Sakila with 15 core tables and explicit foreign key connectors.
country
PK
country_id
country
last_update
city
PK
city_id
FK
country_id -> country
city
last_update
address
PK
address_id
FK
city_id -> city
address
district
phone
postal_code
last_update
store
PK
store_id
FK
manager_staff_id -> staff
FK
address_id -> address
last_update
staff
PK
staff_id
FK
address_id -> address
FK
store_id -> store
first_name
last_name
email
username
active
password
picture
last_update
language
PK
language_id
name
last_update
category
PK
category_id
name
last_update
film_actor
PK
FK
actor_id
PK
FK
film_id
last_update
film
PK
film_id
FK
language_id -> language
FK
original_language_id -> lang
title
description
release_year
rental_duration
rental_rate
length
rating
special_features
replacement_cost
last_update
inventory
PK
inventory_id
FK
film_id -> film
FK
store_id -> store
last_update
film_category
PK
FK
film_id
PK
FK
category_id
last_update
actor
PK
actor_id
first_name
last_name
last_update
customer
PK
customer_id
FK
store_id -> store
FK
address_id -> address
first_name
last_name
email
active
create_date
last_update
rental
PK
rental_id
FK
inventory_id -> inventory
FK
customer_id -> customer
FK
staff_id -> staff
rental_date
return_date
last_update
payment
PK
payment_id
FK
customer_id -> customer
FK
staff_id -> staff
FK
rental_id -> rental
amount
payment_date
last_update
Legend
PK
Primary key
FK
Foreign key
Child table points to parent table
One line per FK relationship
No path through table bodies
N:1
N:1