sakila
Data Dictionary

2018-05-22

actor
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
actor_idSMALLINT(5)    
first_nameVARCHAR(45)       
last_nameVARCHAR(45)       
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
address
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
address_idSMALLINT(5)    
addressVARCHAR(50)       
address2VARCHAR(50)        NULL
districtVARCHAR(20)       
city_idSMALLINT(5)     
postal_codeVARCHAR(10)        NULL
phoneVARCHAR(20)       
locationGEOMETRY       
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
category
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
category_idTINYINT(3)    
nameVARCHAR(25)       
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
city
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
city_idSMALLINT(5)    
cityVARCHAR(50)       
country_idSMALLINT(5)     
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
country
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
country_idSMALLINT(5)    
countryVARCHAR(50)       
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
customer
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
customer_idSMALLINT(5)    
store_idTINYINT(3)     
first_nameVARCHAR(45)       
last_nameVARCHAR(45)       
emailVARCHAR(50)        NULL
address_idSMALLINT(5)     
activeTINYINT(1)       '1'
create_dateDATETIME       
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
film
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
film_idSMALLINT(5)    
titleVARCHAR(255)       
descriptionTEXT        NULL
release_yearYEAR(4)        NULL
language_idTINYINT(3)     
original_language_idTINYINT(3)      NULL
rental_durationTINYINT(3)      '3'
rental_rateDECIMAL(4,2)       '4.99'
lengthSMALLINT(5)       NULL
replacement_costDECIMAL(5,2)       '19.99'
ratingENUM('G', 'PG', 'PG-13', 'R', 'NC-17')        'G'
special_featuresSET('Trailers', 'Commentaries', 'Deleted Scenes', 'Behind the Scenes')        NULL
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
film_actor
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
actor_idSMALLINT(5)    
film_idSMALLINT(5)    
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
film_category
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
film_idSMALLINT(5)    
category_idTINYINT(3)    
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
film_text
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
film_idSMALLINT(6)      
titleVARCHAR(255)       
descriptionTEXT        NULL
inventory
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
inventory_idMEDIUMINT(8)    
film_idSMALLINT(5)     
store_idTINYINT(3)     
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
language
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
language_idTINYINT(3)    
nameCHAR(20)       
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
payment
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
payment_idSMALLINT(5)    
customer_idSMALLINT(5)     
staff_idTINYINT(3)     
rental_idINT(11)       NULL
amountDECIMAL(5,2)       
payment_dateDATETIME       
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
rental
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
rental_idINT(11)     
rental_dateDATETIME       
inventory_idMEDIUMINT(8)     
customer_idSMALLINT(5)     
return_dateDATETIME        NULL
staff_idTINYINT(3)     
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
staff
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
staff_idTINYINT(3)    
first_nameVARCHAR(45)       
last_nameVARCHAR(45)       
address_idSMALLINT(5)     
pictureBLOB        NULL
emailVARCHAR(50)        NULL
store_idTINYINT(3)     
activeTINYINT(1)       '1'
usernameVARCHAR(16)       
passwordVARCHAR(40)        NULL
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
store
Column nameDataTypePKFKNNUQBINUNZFAIDefaultComment
store_idTINYINT(3)    
manager_staff_idTINYINT(3)     
address_idSMALLINT(5)     
last_updateTIMESTAMP       CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP