Sakila Diagram
Sakila Diagram
Sakila Diagram
film_list
actor_info
city
city_id SMALLINT(5) city VARCHAR(50) country_id SMALLINT(5) last_update TIMESTAMP Indexes
country
country_id SMALLINT(5) country VARCHAR(50) last_update TIMESTAMP Indexes
nicer_but_slower_film_list sales_by_film_category
category address
address_id SMALLINT(5) address VARCHAR(50) category_id TINYINT(3) name VARCHAR(25) last_update TIMESTAMP Indexes
customer
customer_id SMALLINT(5) store_id TINYINT(3) first_name VARCHAR(45) last_name VARCHAR(45) email VARCHAR(50) address_id SMALLINT(5) active TINYINT(1) create_date DATETIME last_update TIMESTAMP Indexes Triggers
address2 VARCHAR(50) district VARCHAR(20) city_id SMALLINT(5) postal_code VARCHAR(10) phone VARCHAR(20) last_update TIMESTAMP Indexes
store
store_id TINYINT(3) manager_staff_id TINYINT(3) address_id SMALLINT(5) last_update TIMESTAMP Indexes
film_category
film_id SMALLINT(5) category_id TINYINT(3) last_update TIMESTAMP Indexes
staff
staff_id TINYINT(3) first_name VARCHAR(45) last_name VARCHAR(45) address_id SMALLINT(5) picture BLOB email VARCHAR(50) store_id TINYINT(3) active TINYINT(1) username VARCHAR(16) password VARCHAR(40) last_update TIMESTAMP Indexes
payment
payment_id SMALLINT(5) customer_id SMALLINT(5) staff_id TINYINT(3) rental_id INT(11) amount DECIMAL(5,2) payment_date DATETIME last_update TIMESTAMP Indexes Triggers
rental
rental_id INT(11) rental_date DATETIME inventory_id MEDIUMINT(8) customer_id SMALLINT(5) return_date DATETIME staff_id TINYINT(3) last_update TIMESTAMP Indexes Triggers
inventory
inventory_id MEDIUMINT(8) film_id SMALLINT(5) store_id TINYINT(3) last_update TIMESTAMP Indexes
film_actor
actor_id SMALLINT(5) film_id SMALLINT(5) last_update TIMESTAMP Indexes
film
film_id SMALLINT(5) title VARCHAR(255) description TEXT release_year YEAR language_id TINYINT(3) original_language_id TINYINT(3) rental_duration TINYINT(3) rental_rate DECIMAL(4,2) length SMALLINT(5)
film_text
film_id SMALLINT(6) title VARCHAR(255) description TEXT Indexes
actor
actor_id SMALLINT(5) first_name VARCHAR(45) last_name VARCHAR(45) last_update TIMESTAMP Indexes
language
language_id TINYINT(3) name CHAR(20) last_update TIMESTAMP Indexes PRIMARY
replacement_cost DECIMAL(5,2) rating ENUM(...) special_features SET(...) last_update TIMESTAMP Indexes Triggers