source: ChapterX.Domain/Entities/Chapter.cs@ a7550ca

main
Last change on this file since a7550ca was 877c13c, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago

Added files

  • Property mode set to 100644
File size: 933 bytes
Line 
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 Chapter : IEntity
11 {
12 public int Id { get; set; }
13 public int Number { get; set; }
14 public string Name { get; set; } = string.Empty;
15 public string Title { get; set; } = string.Empty;
16 public string Content { get; set; } = string.Empty;
17 public int? WordCount { get; set; }
18 public decimal? Rating { get; set; }
19 public DateTime PublishedAt { get; set; }
20 public int ViewCount { get; set; }
21 public DateTime CreatedAt { get; set; }
22 public DateTime UpdatedAt { get; set; }
23
24 public int StoryId { get; set; }
25 public Story Story { get; set; } = null!;
26 public ICollection<NeedApproval> NeedApprovals { get; set; } = [];
27
28 }
29}
Note: See TracBrowser for help on using the repository browser.