You are on page 1of 1

Customer Data Inventory

film_category category
country
film_id SMALLINT category_id TINYINT
country_id SMALLINT
category_id TINYINT name VARCHAR(25)
country VARCHAR(50)
last_update TIMESTAMP last_update TIMESTAMP
last_update TIMESTAMP
film Indexes Indexes
city Indexes
film_id SMALLINT
city_id SMALLINT customer
title VARCHAR(255) language
customer_id SMALLINT actor
city VARCHAR(50)
description TEXT language_id TINYINT
store_id TINYINT actor_id SMALLINT
country_id SMALLINT
release_year YEAR name CHAR(20)
first_name VARCHAR(45) first_name VARCHAR(45)
last_update TIMESTAMP
address language_id TINYINT last_update TIMESTAMP
Indexes last_name VARCHAR(45) last_name VARCHAR(45)
address_id SMALLINT original_language_id TINYINT Indexes
email VARCHAR(50) last_update TIMESTAMP
address VARCHAR(50) rental_duration TINYINT Indexes
address_id SMALLINT
address2 VARCHAR(50) rental_rate DECIMAL(4,2)
active BOOLEAN
district VARCHAR(20) length SMALLINT
create_date DATETIME
city_id SMALLINT replacement_cost DECIMAL(5,2)
last_update TIMESTAMP
rating ENUM(...) film_actor
postal_code VARCHAR(10)
Indexes
special_features SET(...) actor_id SMALLINT
phone VARCHAR(20)
last_update TIMESTAMP film_id SMALLINT
last_update TIMESTAMP
Indexes Indexes last_update TIMESTAMP

Triggers Indexes
Customer related data
inventory
inventory_id MEDIUMINT
film_id SMALLINT film_text
store_id TINYINT film_id SMALLINT
last_update TIMESTAMP title VARCHAR(255)
Business
Indexes description TEXT
store
Movie database Indexes
staff
store_id TINYINT
staff_id TINYINT
manager_staff_id TINYINT
first_name VARCHAR(45)
address_id SMALLINT
last_name VARCHAR(45)
last_update TIMESTAMP
address_id SMALLINT Indexes
picture BLOB Views

email VARCHAR(50)
film_list nicer_but_slower_film_list Film Resources
store_id TINYINT
rental film_in_stock get_customer_balance
active BOOLEAN
actor_info
rental_id INT film_not_in_stock inventory_held_by_cu...
username VARCHAR(16)
payment 2 routines inventory_in_stock
password VARCHAR(40) rental_date DATETIME
payment_id SMALLINT
inventory_id MEDIUMINT rewards_report
last_update TIMESTAMP
customer_id SMALLINT sales_by_store 4 routines
Indexes customer_id SMALLINT
staff_id TINYINT
return_date DATETIME
rental_id INT sales_by_film_category
staff_id TINYINT
amount DECIMAL(5,2)
last_update TIMESTAMP
staff_list customer_list
payment_date DATETIME
Indexes
last_update TIMESTAMP
Indexes
Data required to run the business Special view on certain data used for appraisals

You might also like