| 4 | namespace QuestionService.Models; |
| 5 | |
| 6 | public class Answer |
| 7 | { |
| 8 | [MaxLength(36)] |
| 9 | public string Id { get; set; } = Guid.NewGuid().ToString(); |
| 10 | [MaxLength(5000)] |
| 11 | public required string Content { get; set; } |
| 12 | [MaxLength(36)] |
| 13 | public required string UserId { get; set; } |
| 14 | public DateTime CreatedAt { get; set; } = DateTime.UtcNow; |
| 15 | public DateTime? UpdatedAt { get; set; } |
| 16 | public bool Accepted { get; set; } |
| 17 | public int Votes { get; set; } |
| 18 | |
| 19 | // nav properties |
| 20 | [MaxLength(36)] |
| 21 | public required string QuestionId { get; set; } |
| 22 | [JsonIgnore] |
| 23 | public Question Question { get; set; } = null!; |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…