Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. [Table("users")]
  2. public class User
  3. {
  4. [Column("id")]
  5. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  6. public int Id { get; set; }
  7.  
  8. [Column("first_name")]
  9. public string FirstName { get; set; }
  10.  
  11. [Column("last_name")]
  12. public string LastName { get; set; }
  13.  
  14. [Column("password")]
  15. public string Password { get; set; }
  16.  
  17. [JsonIgnore]
  18. [Column("salt")]
  19. public string Salt { get; set; }
  20.  
  21. [Column("email")]
  22. public string Email { get; set; }
  23.  
  24. [Column("created_at")]
  25. public DateTime CreatedAt { get; set; }
  26.  
  27. [Column("ward_id")]
  28. public int WardId { get; set; }
  29.  
  30. [JsonIgnore]
  31. public Ward Ward { get; set; }
  32.  
  33. public List<UserRole> UserRoles { get; set; }
  34.  
  35. public List<SchedulerEvent> SchedulerEvents { get; set; }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement