| 3 | namespace QuestionService.Models; |
| 4 | |
| 5 | public class Question |
| 6 | { |
| 7 | [MaxLength(36)] |
| 8 | public string Id { get; set; } = Guid.NewGuid().ToString(); |
| 9 | |
| 10 | [MaxLength(300)] |
| 11 | public required string Title { get; set; } |
| 12 | |
| 13 | [MaxLength(5000)] |
| 14 | public required string Content { get; set; } |
| 15 | |
| 16 | [MaxLength(36)] |
| 17 | public required string AskerId { get; set; } |
| 18 | |
| 19 | public DateTime CreatedAt { get; init; } = DateTime.UtcNow; |
| 20 | public DateTime? UpdatedAt { get; set; } |
| 21 | public int ViewCount { get; set; } |
| 22 | public List<string> TagSlugs { get; set; } = []; |
| 23 | public bool HasAcceptedAnswer { get; set; } |
| 24 | public int Votes { get; set; } |
| 25 | |
| 26 | public int AnswerCount { get; set; } |
| 27 | |
| 28 | // navigation properties |
| 29 | public List<Answer> Answers { get; set; } = []; |
| 30 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…