main
|
Last change
on this file since a6e33d1 was 877c13c, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago |
|
Added files
|
-
Property mode
set to
100644
|
|
File size:
933 bytes
|
| Rev | Line | |
|---|
| [877c13c] | 1 | using ChapterX.Domain.Shared;
|
|---|
| 2 | using System;
|
|---|
| 3 | using System.Collections.Generic;
|
|---|
| 4 | using System.Linq;
|
|---|
| 5 | using System.Text;
|
|---|
| 6 | using System.Threading.Tasks;
|
|---|
| 7 |
|
|---|
| 8 | namespace 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.