You are on page 1of 3

‫تحديد الكيانات و الصفات‬

‫خط واحد = مفتاح اساسي‬


‫خطين = مفتاح احنبي‬

‫)( جدول الثاني‬:

‫ حفظ معلومات العمالء لمحل االفالم‬:‫وصف‬

Customer(ID, AddressID,First_name,Last_name,Email, Create_Date,Last_Update)

‫)( الجدول الثاني‬:

Inventory(ID,FilmID,Last_update)

‫)( الجدول االول‬:

Film(ID,Title,Rental_Duration,Rental_Rate,Description,Release_Year,Length,Rating)

‫)( الجدول االول‬:

Category(ID,Name ,Last_update)

‫)( الجدول االول‬:

Film_Category(FilmID,CategoryID,Last_update)

‫)( الجدول االول‬:

Rental(ID,StaffID,CustomerID,InventoryID,Rental_Date,Return_Date,Last_update)

‫)( الجدول االول‬:

Payment(ID,RentalID,CustomerID,Amount,Payment_Date)

‫)( الجدول االول‬:

Address(ID,CityID,Address,Address2,District,Postal_Code,Phone,Last_Update)

‫)( الجدول االول‬:

City(ID,Country_name,City,Last_Update)
‫العالقات بين الجداول‬

Customer & Payment


(One-To-Many)

Customer & Rental


(One-To-Many)

Address & Customer


(One-To-Many)

Address & City


(One-To-Many)

Inventory & Rental


(One-To-Many)
Rental & Payment
(One-To-Many)

Inventory & Film


(One-To-Many)

Category & Film_Category


(One-To-Many)

Film_Category & Film


(One-To-Many)

You might also like