main
|
Last change
on this file since 0b502c2 was 877c13c, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago |
|
Added files
|
-
Property mode
set to
100644
|
|
File size:
814 bytes
|
| Line | |
|---|
| 1 | namespace ChapterX.API.DTOs
|
|---|
| 2 | {
|
|---|
| 3 | public class ChapterDto
|
|---|
| 4 | {
|
|---|
| 5 | public int Id { get; set; }
|
|---|
| 6 | public int Number { get; set; }
|
|---|
| 7 | public string Name { get; set; } = string.Empty;
|
|---|
| 8 | public string Title { get; set; } = string.Empty;
|
|---|
| 9 | public string Content { get; set; } = string.Empty;
|
|---|
| 10 | public int? WordCount { get; set; }
|
|---|
| 11 | public decimal? Rating { get; set; }
|
|---|
| 12 | public DateTime PublishedAt { get; set; }
|
|---|
| 13 | public int ViewCount { get; set; }
|
|---|
| 14 | public DateTime CreatedAt { get; set; }
|
|---|
| 15 | public DateTime UpdatedAt { get; set; }
|
|---|
| 16 |
|
|---|
| 17 | // FK
|
|---|
| 18 | public int StoryId { get; set; }
|
|---|
| 19 |
|
|---|
| 20 | // Navigation
|
|---|
| 21 | public StoryDto Story { get; set; } = null!;
|
|---|
| 22 | public ICollection<NeedApprovalDto> NeedApprovals { get; set; } = [];
|
|---|
| 23 | }
|
|---|
| 24 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.