Релациска шема со мапирачка трансформација
Примарни клучеви означени со underline
Надворешни клучеви означени со * и табела кон која покажува
Not null атрибути означени со bold
Roles (roleId, roleName, roleDescription)
Users ( userId, userUsername, userPassword, userName, userSurname, userPictureUrl, userEmail, userPhoneNumber, roleId*(Roles))
Manufacturers (manufacturerId, manufactuterName, manufacturerCountry)
Categories (categoryId, parentCategoryId, categoryName)
Product Characteristics (characteristicId, characteristicDescription)
Products (productId, productName, postDate, manufacturerId*(Manufacturers), categoryId*(Categories), characteristicId*(Product Characteristics))
User Favourites (userFavouriteId, userId*(Users), productId*(Products))
User Comments (commentId, userComment, userId*(Users), productId*(Products))
Ratings (ratingId, ratingValue, userId*(Users), productId*(Products))
WatchList Products (watchListProductId, priceLimit, userId*(Users), productId*(Products))
Product Images (productImageId, productImageUrl, productId*(Products))
Stores (storeId, storeName)
Product Intances (productInstanceId, productInstancePrice, productId*(Products), storeId*(Stores))
belongs_to (productId*(Products), categoryId*(Categories))
DDL скрипта за бришење на табелите и креирање на табелите
DML скрипта за полнење на табелите со податоци
Релациски дијаграм изваден од DBeaver
Attachments (3)
- kreiranje.sql (6.0 KB ) - added by 2 years ago.
- schema.png (47.5 KB ) - added by 2 years ago.
- polnenje.sql (7.5 KB ) - added by 2 years ago.
Download all attachments as: .zip