source: ChapterX.Domain/DTOs/StoryDto.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.3 KB
Line 
1using ChapterX.Domain.DTOs;
2
3namespace ChapterX.API.DTOs
4{
5 public class StoryDto
6 {
7 public int Id { get; set; }
8 public bool MatureContent { get; set; }
9 public string Title { get; set; } = string.Empty;
10 public string ShortDescription { get; set; } = string.Empty;
11 public string? Image { get; set; }
12 public string Content { get; set; } = string.Empty;
13 public string Status { get; set; } = "draft";
14 public DateTime CreatedAt { get; set; }
15 public DateTime UpdatedAt { get; set; }
16
17 // FK
18 public int UserId { get; set; }
19 // Navigation
20 public WriterDto Writer { get; set; } = null!;
21 public ICollection<ChapterDto> Chapters { get; set; } = [];
22 public ICollection<HasGenreDto> HasGenres { get; set; } = [];
23 public ICollection<LikesDto> Likes { get; set; } = [];
24 public ICollection<CommentDto> Comments { get; set; } = [];
25 public ICollection<CollaborationDto> Collaborations { get; set; } = [];
26 public ICollection<AISuggestionDto> AISuggestions { get; set; } = [];
27 public ICollection<ReadingListItemsDto> ReadingListItems { get; set; } = [];
28 public ICollection<NeedApprovalDto> NeedApprovals { get; set; } = [];
29 }
30}
Note: See TracBrowser for help on using the repository browser.