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

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