digraph dbml { rankdir=LR; graph [fontname="helvetica", fontsize=32, fontcolor="#29235c", bgcolor="transparent"]; node [penwidth=0, margin=0, fontname="helvetica", fontsize=32, fontcolor="#29235c"]; edge [fontname="helvetica", fontsize=32, fontcolor="#29235c", color="#29235c"]; "staff" [id="staff";label=<
staff
id int
first_name varchar
last_name varchar
address_id int
picture blob
email varchar
store_id int
active boolean
user_name varchar
password varchar
last_update timestamp
>]; "store" [id="store";label=<
store
id int
manager_staff_id int
address_id int
last_update timestamp
>]; "payment" [id="payment";label=<
payment
id int
customer_id int
staff_id int
rental_id int
amount decimal
payment_date datetime
last_update timestamp
>]; "rental" [id="rental";label=<
rental
id int
rental_date datetime
inventory_id int
customer_id int
return_date ddatetime
staff_id int
last_update timestamp
>]; "country" [id="country";label=<
country
id int
country varchar
last_update timestamp
>]; "city" [id="city";label=<
city
id int
city varchar
country_id int
last_update timestamp
>]; "address" [id="address";label=<
address
id int
address varchar
address2 varchar
district varchar
city_id int
postal_code varchar
phone varchar
last_update timestamp
>]; "customer" [id="customer";label=<
customer
id int
store_id int
first_name varchar
last_name varchar
email varchar
address_id int
active boolean
create_Date timestamp
last_update timestamp
>]; "category" [id="category";label=<
category
id int
name varchar
last_update timestamp
>]; "film_category" [id="film_category";label=<
film_category
id int
category_id int
last_update timestamp
>]; "language" [id="language";label=<
language
id int
name varchar
last_update timestamp
>]; "film_text" [id="film_text";label=<
film_text
id int
film_id int
title varchar
description text
>]; "actor" [id="actor";label=<
actor
id int
first_name varchar
last_name varchar
last_update timestamp
>]; "film" [id="film";label=<
film
id int
title varchar
description text
releaase_year int
language_id int
original_language_id int
rental_duration int
rental_rate decimal
length int
replacement_cost decimal
rating varchar
special_feature varchar
last_update timestamp
>]; "film_actor" [id="film_actor";label=<
film_actor
id int
film_id int
actor_id int
last_update timestamp
>]; "inventory" [id="inventory";label=<
inventory
id int
film_id int
store_id int
last_update timestamp
>]; "store":f0 -> "staff":f0 [style=invis, weight=100, color=red] "store":f1:e -> "staff":f7:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "staff":f0 -> "store":f0 [style=invis, weight=100, color=red] "staff":f1:e -> "store":f2:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "staff":f0 -> "payment":f0 [style=invis, weight=100, color=red] "staff":f1:e -> "payment":f3:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "rental":f0 -> "payment":f0 [style=invis, weight=100, color=red] "rental":f1:e -> "payment":f4:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "staff":f0 -> "rental":f0 [style=invis, weight=100, color=red] "staff":f1:e -> "rental":f6:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "country":f0 -> "city":f0 [style=invis, weight=100, color=red] "country":f1:e -> "city":f3:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "city":f0 -> "address":f0 [style=invis, weight=100, color=red] "city":f1:e -> "address":f5:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "address":f0 -> "customer":f0 [style=invis, weight=100, color=red] "address":f1:e -> "customer":f6:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "category":f0 -> "film_category":f0 [style=invis, weight=100, color=red] "category":f1:e -> "film_category":f2:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "inventory":f0 -> "film_text":f0 [style=invis, weight=100, color=red] "inventory":f2:e -> "film_text":f2:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "language":f0 -> "film":f0 [style=invis, weight=100, color=red] "language":f1:e -> "film":f5:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "language":f0 -> "film":f0 [style=invis, weight=100, color=red] "language":f1:e -> "film":f6:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "film":f0 -> "film_actor":f0 [style=invis, weight=100, color=red] "film":f1:e -> "film_actor":f2:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "actor":f0 -> "film_actor":f0 [style=invis, weight=100, color=red] "actor":f1:e -> "film_actor":f3:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] "film":f0 -> "inventory":f0 [style=invis, weight=100, color=red] "film":f1:e -> "inventory":f2:w [dir=forward, penwidth=3, color="#29235c", headlabel="*", taillabel="1"] }