| 191 | | |
| | 194 | {{{reading_list_items (READING_LIST – STORY)}}} |
| | 195 | [[BR]] |
| | 196 | Represents stories added to reading lists. |
| | 197 | [[BR]] |
| | 198 | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| | 199 | Cardinality: M:N (Many reading lists can contain many stories)) |
| | 200 | [[BR]] |
| | 201 | '''[[span(style=color: #9A0000, Keys:)]]''' |
| | 202 | Keys: Composite key: (list_id, story_id). |
| | 203 | [[BR]] |
| | 204 | '''[[span(style=color: #9A0000, Attributes:)]]''' |
| | 205 | * {{{added_at}}} – timestamp, required. Date and time when the story was added to the reading list. |
| | 206 | [[BR]] |
| | 207 | --- |
| 244 | | {{{is_liked (USER – LIKE – STORY)}}} |
| 245 | | [[BR]] |
| 246 | | Represents users liking stories. |
| 247 | | [[BR]] |
| 248 | | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| 249 | | M:N (Many users can like many stories) |
| 250 | | [[BR]] |
| 251 | | '''[[span(style=color: #9A0000, Keys:)]]''' |
| 252 | | Composite key: ({{{user_id}}}, {{{story_id}}}) in LIKE. |
| 253 | | [[BR]] |
| 254 | | ---- |
| 255 | | |
| 256 | | {{{is_commented (USER – COMMENT – STORY)}}} |
| 257 | | [[BR]] |
| 258 | | Represents users commenting on stories. |
| 259 | | [[BR]] |
| 260 | | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| 261 | | M:N (Many users can comment on many stories) |
| 262 | | [[BR]] |
| 263 | | '''[[span(style=color: #9A0000, Keys:)]]''' |
| 264 | | Foreign key: {{{user_id}}} in COMMENT references USER. |
| | 260 | {{{is_liked (LIKE – STORY)}}} |
| | 261 | [[BR]] |
| | 262 | Represents likes given to stories. |
| | 263 | [[BR]] |
| | 264 | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| | 265 | 1:N (One story can have many likes) |
| | 266 | [[BR]] |
| | 267 | '''[[span(style=color: #9A0000, Keys:)]]''' |
| | 268 | Foreign key: {{{story_id}}} in LIKE references STORY. |
| | 269 | [[BR]] |
| | 270 | ---- |
| | 271 | |
| | 272 | {{{is_commented (COMMENT – STORY)}}} |
| | 273 | [[BR]] |
| | 274 | Represents comments made on stories. |
| | 275 | [[BR]] |
| | 276 | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| | 277 | 1:N (One story can have many comments) |
| | 278 | [[BR]] |
| | 279 | '''[[span(style=color: #9A0000, Keys:)]]''' |
| 269 | | {{{notify (USER – NOTIFICATION)}}} |
| 270 | | [[BR]] |
| 271 | | Represents users receiving notifications. |
| 272 | | [[BR]] |
| 273 | | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| 274 | | N:1 (Many notifications can be sent to one user) |
| 275 | | [[BR]] |
| 276 | | '''[[span(style=color: #9A0000, Keys:)]]''' |
| 277 | | Foreign key: {{{user_id}}} in NOTIFICATION references USER. |
| 278 | | [[BR]] |
| 279 | | ---- |
| 280 | | |
| 281 | | {{{need_approval (AI_SUGGESTION – STORY)}}} |
| 282 | | [[BR]] |
| 283 | | Represents AI suggestions needing approval for stories. |
| 284 | | [[BR]] |
| 285 | | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| 286 | | N:1 (Many AI suggestions can be made for one story) |
| 287 | | [[BR]] |
| 288 | | '''[[span(style=color: #9A0000, Keys:)]]''' |
| 289 | | Foreign key: {{{story_id}}} in AI_SUGGESTION references STORY. |
| 290 | | [[BR]] |
| 291 | | ---- |
| | 284 | {{{notify (USER – STORY – NOTIFICATION)}}} |
| | 285 | [[BR]] |
| | 286 | Represents notifications sent to users about stories. |
| | 287 | [[BR]] |
| | 288 | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| | 289 | M:N:P (Many users can receive many notifications about many stories) |
| | 290 | [[BR]] |
| | 291 | '''[[span(style=color: #9A0000, Keys:)]]''' |
| | 292 | Composite key: ({{{user_id}}},{{{story_id}}},{{{notification_id}}}) |
| | 293 | Foreign key: {{{user_id}}} references USER |
| | 294 | Foreign key: {{{story_id}}} references STORY. |
| | 295 | Foreign key: {{{notification_id}}} references NOTIFICATION. |
| | 296 | [[BR]] |
| | 297 | ---- |
| | 298 | |
| | 299 | {{{need_approval (AI_SUGGESTION – STORY – CHAPTER)}}} |
| | 300 | [[BR]] |
| | 301 | Represents AI suggestions needing approval for specific chapters within stories. |
| | 302 | [[BR]] |
| | 303 | '''[[span(style=color: #9A0000, Cardinality:)]]''' |
| | 304 | M:N:P (Many AI suggestions can be made for many stories across many chapters) |
| | 305 | [[BR]] |
| | 306 | '''[[span(style=color: #9A0000, Keys:)]]''' |
| | 307 | Composite key: ({{{suggestion_id}}},{{{story_id}}},{{{chapter_id}}}) |
| | 308 | Foreign key: {{{suggestion_id}}} references AI_SUGGESTION. |
| | 309 | Foreign key: {{{story_id}}} references STORY. |
| | 310 | Foreign key: {{{chapter_id}}} references CHAPTER. |
| | 311 | [[BR]] |
| | 312 | ---- |