Version 26 (modified by 3 years ago) ( diff ) | ,
---|
Логички и физички дизајн
Релациска шема (мапирачка трансформација)
- Примарни клучеви: bold и underline
- Надворешни клучеви: bold и * до името на надворешниот клуч, во заграда табелата кон која покажува
- Not null атрибути: bold
- User(User_id, password)
- Distributor(user_id*(user),Name, Surname, Contact_number)
- Client(user_id*(User),Name, Adress, Email, Wishlist_id*(Wishlist))
- Seller_Admin(user_id*(User),Name,Surname,E-mail, User_id*(Admin), Store_name*(Store))
- Admin(user_id*(User))
- Product (Prod_id, Availability, Name, Price, Type, Description, quantity, Store_name*(Store), Wishlist_id*(Wishlist))
- Store(Store_name,Location, Contact)
- Delivery (Delivery_id, Delivery_address, Date, Status, User_id*(Distributor), User_id*(Client))
- Price_history (Price_history_id, Price_history_list, Dates, Prod_id*(Product))
- Whishlist (Wishlist_id, Config_list, Product_list)
- Cart(Cart_id,Config_list, Product_list)
- Order (Order_id, Total_price, Order_status, Delivery_id*(Delivery))
- Configuration (Config_id, Name, Price, Type)
- Payment (Payment_id, CreditCard_number, Order_id*(Order))
- view_product (User_id*(Client), Prod_id*(Product), Time_stamp)
- updates (Prod_id*(Product), User_id*(Seller_Admin), Time_stamp)
- manages_configuration (Config_id*(Configuration), User_id*(Admin))
- contains_product (Prod_id*(Product), Cart_id*(Cart))
- contains_config (Config_id*(Configuration), Cart_id*(Cart))
- current_price (Price_history_id*(Price_history), Order_id*(Order))
- orders_configuration (Order_id*(Order), Config_id*(Configuration))
- product_to_wishlist (Prod_id*(Product), Wishlist_id*(Wishlist))
- config_to_whishlist(Config_id*(Configuration), Wishlist_id*(Wishlist))
- checkout(cart_id*(Cart), Order-id*(Order))
- config_contains_product(Prod_id*(Product), Config_id*(Configuration))
DDL скрипта за бришење на табелите и креирање на табелите
DML скрипта за полнење на табелите со податоци
Релациски дијаграм од DBeaver
Attachments (14)
- DDL1.png (40.3 KB ) - added by 3 years ago.
- DDL2.png (47.5 KB ) - added by 3 years ago.
- DDL3.png (47.6 KB ) - added by 3 years ago.
- kreiranje.2.sql (7.9 KB ) - added by 3 years ago.
- DDL3.png.png (50.2 KB ) - added by 3 years ago.
- DDL3.2.png (50.2 KB ) - added by 3 years ago.
- kreiranje.3.sql (7.9 KB ) - added by 3 years ago.
- kreiranje.4.sql (7.9 KB ) - added by 3 years ago.
- DDL4.png (45.6 KB ) - added by 3 years ago.
- DDL5.png (48.1 KB ) - added by 3 years ago.
- kreiranje.sql (8.3 KB ) - added by 3 years ago.
- polnenje.sql (8.7 KB ) - added by 3 years ago.
- polnenje.2.sql (8.7 KB ) - added by 3 years ago.
- DDL6.png (47.8 KB ) - added by 3 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.