Version 31 (modified by 6 days ago) ( diff ) | ,
---|
Логички и физички дизајн
Релациска шема
- Примарен клуч: underline
- Надворешен клуч: underline и *
- Not null: bold
User(UserId, FirstName, LastName, Email, Username, Password, City, Neighborhood, Bio, Quote)
Book(BookId, Title, Author, Language, ImageURL)
BookISBN(BookISBNId, BookId*, ISBN)
- BookId референцира кон Book(BookId)
Genre(GenreId, BookId*, Genre)
- BookId референцира кон Book(BookId)
Library(InventoryId, UserId*, Availability, Condition)
- UserId референцира кон User(UserId)
- BookId референцира кон Book(BookId)
LibraryBook(LibraryBookId, InventoryId*, BookId*)
- InventoryId референцира кон Library(InventoryId)
- BookId референцира кон Book(BookId)
Wishlist(WishId, UserId*, Priority)
- UserId референцира кон User(UserId)
- BookId референцира кон Book(BookId)
WishlistBook(WishlistBookId, WishId*, BookId*)
- WishId референцира кон Wishlist(WishId)
- BookId референцира кон Book(BookId)
BookRequest(RequestId, RequesterId*, OwnerId*, BookId*, InventoryId*, RequestStatus, RequestDate)
- RequesterId референцира кон User(UserId)
- OwnerId референцира кон User(UserId)
- BookId референцира кон Book(BookId)
- InventoryId референцира кон Library(InventoryId)
Transaction(TransactionId, RequestId*, BorrowerId*, LenderId*, InventoryId*, BorrowDate, ReturnDate, BorrowDuration)
- RequestId референцира кон BookRequest(RequestId)
- BorrowerId референцира кон User(UserId)
- LenderId референцира кон User(UserId)
- InventoryId референцира кон Library(InventoryId)
SwapTransaction(SwapTransactionId, TransactionId1, TransactionId2)
- TransactionId1 референцира кон Transaction(TransactionId)
- TransactionId2 референцира кон Transaction(TransactionId)
TransactionBook( TransactionBookId, TransactionId*, BookId*)
- BookId референцира кон Book(BookId)
- TransactionId референцира кон Transaction(TransactionId)
Review(ReviewId, TransactionId*, ReceiverId*, GiverId*, Rating, ReviewerComment, Date)
- TransactionId референцира кон Transaction(TransactionId)
- ReceiverId референцира кон User(UserId)
- GiverId референцира кон User(UserId)
Message(MessageId, SenderId*, ReceiverId*, Time, Date, MessageContent)
- SenderId референцира кон User(UserId)
- ReceiverId референцира кон User(UserId)
FriendRequest(FriendshipId, SenderId*, ReceiverId*, DateCreated, Status)
- SenderId референцира кон User(UserId)
- ReceiverId референцира кон User(UserId)
Report(ReportId, ReportedUserId*, ReportingUserId*, ReportType, ReportDate, Details, ReportStatus, ReportedEntity)
- ReportedUserId референцира кон User(UserId)
- ReportingUserId референцира кон User(UserId)
Notification(NotificationId, TransactionId*, MessageId*, FriendRequestId*, BookRequestId*, Type, Time, Date, Description, Status)
- TransactionId референцира кон Transaction(TransactionId)
- MessageId референцира кон Transaction(MessageId)
- FriendRequestId референцира кон Transaction(FriendshipId)
- BookRequestId референцира кон Transaction(RequestId)
UserNotification(UserNotificationId, UserId*, NotificationId*)
- ReportedUserId референцира кон User(UserId)
- NotificationId референцира кон Notification(NotificationId)
DDL скрипта за бришење на табелите и креирање на табелите
DML скрипта за полнење на табелите со податоци
Релациски дијаграм изведен од DBeaver
Attachments (32)
- ddlscript.sql (4.6 KB ) - added by 2 weeks ago.
- ddlscript1.sql (4.8 KB ) - added by 2 weeks ago.
- dmlscript.sql (5.1 KB ) - added by 2 weeks ago.
- BookSwapDB.png (89.7 KB ) - added by 2 weeks ago.
- ddlscript2.sql (4.9 KB ) - added by 2 weeks ago.
- dmlscript1.sql (5.3 KB ) - added by 2 weeks ago.
- ddlscript3.sql (5.1 KB ) - added by 13 days ago.
- dmlscript2.sql (5.4 KB ) - added by 13 days ago.
- ddlscript4.sql (4.9 KB ) - added by 11 days ago.
- dmlscript3.sql (5.3 KB ) - added by 11 days ago.
- Relational Diagram BookSwap.erd (6.5 KB ) - added by 11 days ago.
- Relational Diagram BookSwap2.png (111.2 KB ) - added by 11 days ago.
- dmlscript4.sql (5.3 KB ) - added by 11 days ago.
- BookSwap_RelationalDiagram3.png (110.9 KB ) - added by 9 days ago.
- ddlscript5.sql (5.1 KB ) - added by 9 days ago.
- dmlscript5.sql (5.5 KB ) - added by 9 days ago.
- ddlscript6.sql (5.3 KB ) - added by 6 days ago.
- dmlscript6.sql (5.6 KB ) - added by 6 days ago.
- BookSwapDiagram-16.png (109.8 KB ) - added by 6 days ago.
- ddlscript7.sql (5.5 KB ) - added by 6 days ago.
- dmlscript7.sql (5.6 KB ) - added by 6 days ago.
- BookSwapDiagram_16.png (113.4 KB ) - added by 6 days ago.
- BookSwapDiagram_final.png (114.1 KB ) - added by 6 days ago.
- ddlscript8.sql (5.6 KB ) - added by 6 days ago.
- dmlscript8.sql (5.7 KB ) - added by 6 days ago.
- ddlscript8.2.sql (5.5 KB ) - added by 6 days ago.
- ddlscript9.sql (5.6 KB ) - added by 31 hours ago.
- dmlscript9.sql (5.7 KB ) - added by 31 hours ago.
- BookSwap-Relations.png (162.6 KB ) - added by 30 hours ago.
- ddlscript10.sql (5.6 KB ) - added by 28 hours ago.
- ddlscript11.sql (5.6 KB ) - added by 14 hours ago.
- dmlscript11.sql (5.6 KB ) - added by 14 hours ago.
Download all attachments as: .zip