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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.Profile.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 bool TransferAccount { get; set; }
  14. public DateTime JoinDate { get; set; }
  15. public DateTime LastSeen { get; set; }
  16. public List<Group> Groups { get; set; }
  17. public virtual UserSettings UserSettings { get; set; }
  18. public virtual BlogSettings BlogSettings { get; set; }
  19. public virtual UploadSettings UploadSettings { get; set; }
  20. public List<Upload.Models.Upload> Uploads { get; set; }
  21. public List<Paste.Models.Paste> Pastes { get; set; }
  22. public User()
  23. {
  24. Username = String.Empty;
  25. HashedPassword = String.Empty;
  26. JoinDate = DateTime.Now;
  27. LastSeen = DateTime.Now;
  28. Groups = new List<Group>();
  29. //UserSettings = new UserSettings();
  30. //BlogSettings = new BlogSettings();
  31. //UploadSettings = new UploadSettings();
  32. }
  33. }
  34. }