Changes between Version 32 and Version 33 of Логички и физички дизајн - Креирање база податоци (со SQL DDL)
- Timestamp:
- 01/21/25 06:14:37 (30 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Логички и физички дизајн - Креирање база податоци (со SQL DDL)
v32 v33 22 22 • !BookId референцира кон Book(!BookId) 23 23 24 ! LibraryBook(**__LibraryBookId__**, **__InventoryId*__**, **__BookId*__**)24 !ContainsLibraryBook(**__LibraryBookId__**, **__InventoryId*__**, **__BookId*__**) 25 25 • !InventoryId референцира кон Library(!InventoryId) 26 26 • !BookId референцира кон Book(!BookId) … … 30 30 • !BookId референцира кон Book(!BookId) 31 31 32 ! WishlistBook(**__WishlistBookId__**, **__WishId*__**, **__BookId*__**)32 !ContainsWishlistBook(**__WishlistBookId__**, **__WishId*__**, **__BookId*__**) 33 33 • !WishId референцира кон Wishlist(!WishId) 34 34 • !BookId референцира кон Book(!BookId) … … 46 46 • !InventoryId референцира кон Library(!InventoryId) 47 47 48 !Swap Transaction(**__SwapTransactionId__**, **__TransactionId1__**, **__TransactionId2__**)48 !Swap(**__SwapId__**, **__TransactionId1__**, **__TransactionId2__**) 49 49 • TransactionId1 референцира кон Transaction(!TransactionId) 50 50 • TransactionId2 референцира кон Transaction(!TransactionId) 51 51 52 ! TransactionBook( **__TransactionBookId__**, **__TransactionId*__**, **__!BookId*__**)52 !ExchangingBook( **__TransactionBookId__**, **__TransactionId*__**, **__!BookId*__**) 53 53 • !BookId референцира кон Book(!BookId) 54 54 • !TransactionId референцира кон Transaction(!TransactionId) 55 55 56 Review(**__ReviewId__**, **__!TransactionId*__**, **__!ReceiverId*__**, **__!GiverId*__**, **Rating**, !ReviewerComment, ** Date**)56 Review(**__ReviewId__**, **__!TransactionId*__**, **__!ReceiverId*__**, **__!GiverId*__**, **Rating**, !ReviewerComment, **!ReviewDate**) 57 57 • !TransactionId референцира кон Transaction(!TransactionId) 58 58 • !ReceiverId референцира кон User(!UserId) 59 59 • !GiverId референцира кон User(!UserId) 60 60 61 Message(**__MessageId__**, **__!SenderId*__**, **__!ReceiverId*__**, ** Time**, **Date**, **!MessageContent**)61 Message(**__MessageId__**, **__!SenderId*__**, **__!ReceiverId*__**, **!MsgTime**, **!MsgDate**, **!MessageContent**) 62 62 • !SenderId референцира кон User(!UserId) 63 63 • !ReceiverId референцира кон User(!UserId) 64 64 65 !FriendRequest(**__FriendshipId__**, **__!SenderId*__**, **__!ReceiverId*__**, **!DateCreated**, ** Status**)65 !FriendRequest(**__FriendshipId__**, **__!SenderId*__**, **__!ReceiverId*__**, **!DateCreated**, **!FriendshipStatus**) 66 66 • !SenderId референцира кон User(!UserId) 67 67 • !ReceiverId референцира кон User(!UserId) … … 71 71 • !ReportingUserId референцира кон User(!UserId) 72 72 73 Notification(**__NotificationId__**, __!TransactionId*__, __!MessageId*__, __!FriendRequestId*__, __!BookRequestId*__, **Type**, ** Time**, **Date**, **Description**, **Status**)73 Notification(**__NotificationId__**, __!TransactionId*__, __!MessageId*__, __!FriendRequestId*__, __!BookRequestId*__, **Type**, **!NotifTime**, **!NotifDate**, **Description**, **!NotificationStatus**) 74 74 • !TransactionId референцира кон Transaction(!TransactionId) 75 75 • !MessageId референцира кон Transaction(!MessageId) … … 77 77 • !BookRequestId референцира кон Transaction(!RequestId) 78 78 79 ! UserNotification(**__UserNotificationId__**, **__UserId*__**, **__!NotificationId*__**)79 !ReceivesNotification(**__UserNotificationId__**, **__UserId*__**, **__!NotificationId*__**) 80 80 • !ReportedUserId референцира кон User(!UserId) 81 81 • !NotificationId референцира кон Notification(!NotificationId)