MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / Vote

Class Vote

VoteService/Models/Vote.cs:5–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace VoteService.Models;
4
5public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…