The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

User.cs 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using Microsoft.AspNet.Identity.EntityFramework;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace Teknik.Areas.Users.Models
  7. {
  8. public class User
  9. {
  10. public int UserId { get; set; }
  11. public string Username { get; set; }
  12. public string HashedPassword { get; set; }
  13. public string RecoveryEmail { get; set; }
  14. public bool RecoveryVerified { get; set; }
  15. public bool TransferAccount { get; set; }
  16. public DateTime JoinDate { get; set; }
  17. public DateTime LastSeen { get; set; }
  18. public virtual ICollection<Group> Groups { get; set; }
  19. public virtual UserSettings UserSettings { get; set; }
  20. public virtual BlogSettings BlogSettings { get; set; }
  21. public virtual UploadSettings UploadSettings { get; set; }
  22. public virtual ICollection<Upload.Models.Upload> Uploads { get; set; }
  23. public virtual ICollection<Paste.Models.Paste> Pastes { get; set; }
  24. public User()
  25. {
  26. Username = string.Empty;
  27. HashedPassword = string.Empty;
  28. RecoveryEmail = string.Empty;
  29. RecoveryVerified = false;
  30. JoinDate = DateTime.Now;
  31. LastSeen = DateTime.Now;
  32. Groups = new List<Group>();
  33. //UserSettings = new UserSettings();
  34. //BlogSettings = new BlogSettings();
  35. //UploadSettings = new UploadSettings();
  36. }
  37. }
  38. }