source: ChapterX.Domain/Entities/Story.cs@ e882b92

main
Last change on this file since e882b92 was e882b92, checked in by kikisrbinoska <srbinoskakristina07@…>, 13 days ago

Added corrected entitef from the ER diagram and changes for the logic to be coresponding to the ddl

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[877c13c]1using ChapterX.Domain.Shared;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace ChapterX.Domain.Entities
9{
10 public class Story : IEntity
11 {
12 public int Id { get; set; }
13 public bool MatureContent { get; set; }
[99c1e45]14 public string Title { get; set; } = string.Empty;
[877c13c]15 public string ShortDescription { get; set; } = string.Empty;
16 public string? Image { get; set; }
17 public string Content { get; set; } = string.Empty;
[e882b92]18 public string Status { get; set; } = "draft";
[877c13c]19 public DateTime CreatedAt { get; set; }
20 public DateTime UpdatedAt { get; set; }
21
22 public int UserId { get; set; }
23 public Writer Writer { get; set; } = null!;
24 public ICollection<Chapter> Chapters { get; set; } = [];
25 public ICollection<HasGenre> HasGenres { get; set; } = [];
26 public ICollection<Likes> Likes { get; set; } = [];
27 public ICollection<Comment> Comments { get; set; } = [];
28 public ICollection<Collaboration> Collaborations { get; set; } = [];
29 public ICollection<AISuggestion> AISuggestions { get; set; } = [];
[e882b92]30 public ICollection<Notification> Notifications { get; set; } = [];
[877c13c]31 public ICollection<ReadingListItems> ReadingListItems { get; set; } = [];
32 public ICollection<NeedApproval> NeedApprovals { get; set; } = [];
33
34 }
35}
Note: See TracBrowser for help on using the repository browser.