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

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 User()
  20. {
  21. Username = String.Empty;
  22. HashedPassword = String.Empty;
  23. JoinDate = DateTime.Now;
  24. LastSeen = DateTime.Now;
  25. Groups = new List<Group>();
  26. //UserSettings = new UserSettings();
  27. //BlogSettings = new BlogSettings();
  28. //UploadSettings = new UploadSettings();
  29. }
  30. }
  31. }