Vote.cs 340 B

12345678910111213141516
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace Worker.Entities
  4. {
  5. [Table("votes")]
  6. public class Vote
  7. {
  8. [Column("id")]
  9. [Key]
  10. public string VoterId { get; set; }
  11. [Column("vote")]
  12. public string VoteOption { get; set; }
  13. }
  14. }