| 3 | namespace VoteService.Models; |
| 4 | |
| 5 | public class Vote |
| 6 | { |
| 7 | [MaxLength(36)] |
| 8 | public string Id { get; set; } = Guid.NewGuid().ToString(); |
| 9 | |
| 10 | [MaxLength(36)] |
| 11 | public required string UserId { get; set; } |
| 12 | |
| 13 | [MaxLength(36)] |
| 14 | public required string TargetId { get; set; } |
| 15 | |
| 16 | [MaxLength(36)] |
| 17 | public required string QuestionId { get; set; } |
| 18 | |
| 19 | [MaxLength(10)] |
| 20 | public required string TargetType { get; set; } |
| 21 | public int VoteValue { get; set; } |
| 22 | public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; |
| 23 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…