Version 11 (modified by 7 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(BookId*, ISBN)
- BookId референцира кон Book(BookId)
Genre(BookId*, Genre)
- BookId референцира кон Book(BookId)
Library(InventoryId, UserId*, BookId*, Availability, Condition)
- UserId референцира кон User(UserId)
- BookId референцира кон Book(BookId)
Wishlist(WishId, UserId*, BookId*, Priority)
- UserId референцира кон User(UserId)
- 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, SwapTransactionId)
- RequestId референцира кон BookRequest(RequestId)
- BorrowerId референцира кон User(UserId)
- LenderId референцира кон User(UserId)
- InventoryId референцира кон Library(InventoryId)
Swap(TransactionId1, TransactionId2, SwapTransactionId)
- TransactionId1 референцира кон Transaction(TransactionId)
- TransactionId2 референцира кон Transaction(TransactionId)
TransactionBook(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(UserId*, NotificationId*)
- ReportedUserId референцира кон User(UserId)
- NotificationId референцира кон Notification(NotificationId)
DDL скрипта за бришење на табелите и креирање на табелите
DML скрипта за полнење на табелите со податоци
Релациски дијаграм
Attachments (16)
- ddlscript.sql (4.6 KB ) - added by 9 days ago.
- ddlscript1.sql (4.8 KB ) - added by 9 days ago.
- dmlscript.sql (5.1 KB ) - added by 9 days ago.
- BookSwapDB.png (89.7 KB ) - added by 9 days ago.
- ddlscript2.sql (4.9 KB ) - added by 7 days ago.
- dmlscript1.sql (5.3 KB ) - added by 7 days ago.
- ddlscript3.sql (5.1 KB ) - added by 6 days ago.
- dmlscript2.sql (5.4 KB ) - added by 6 days ago.
- ddlscript4.sql (4.9 KB ) - added by 4 days ago.
- dmlscript3.sql (5.3 KB ) - added by 4 days ago.
- Relational Diagram BookSwap.erd (6.5 KB ) - added by 4 days ago.
- Relational Diagram BookSwap2.png (111.2 KB ) - added by 4 days ago.
- dmlscript4.sql (5.3 KB ) - added by 3 days ago.
- BookSwap_RelationalDiagram3.png (110.9 KB ) - added by 2 days ago.
- ddlscript5.sql (5.1 KB ) - added by 2 days ago.
- dmlscript5.sql (5.5 KB ) - added by 2 days ago.
Download all attachments as: .zip