The next generation of the Teknik Services. Written in ASP.NET. Fork for blog tags.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. using Teknik.Attributes;
  7. using Teknik.Models;
  8. namespace Teknik.Areas.Users.Models
  9. {
  10. public class User
  11. {
  12. public int UserId { get; set; }
  13. public string Username { get; set; }
  14. [CaseSensitive]
  15. public string HashedPassword { get; set; }
  16. public virtual ICollection<TransferType> Transfers { get; set; }
  17. public DateTime JoinDate { get; set; }
  18. public DateTime LastSeen { get; set; }
  19. public virtual ICollection<Group> Groups { get; set; }
  20. public virtual UserSettings UserSettings { get; set; }
  21. public virtual SecuritySettings SecuritySettings { get; set; }
  22. public virtual BlogSettings BlogSettings { get; set; }
  23. public virtual UploadSettings UploadSettings { get; set; }
  24. public virtual ICollection<TrustedDevice> TrustedDevices { get; set; }
  25. public virtual ICollection<AuthToken> AuthTokens { get; set; }
  26. public virtual ICollection<Upload.Models.Upload> Uploads { get; set; }
  27. public virtual ICollection<Paste.Models.Paste> Pastes { get; set; }
  28. public User()
  29. {
  30. Username = string.Empty;
  31. HashedPassword = string.Empty;
  32. Transfers = new List<TransferType>();
  33. JoinDate = DateTime.Now;
  34. LastSeen = DateTime.Now;
  35. Groups = new List<Group>();
  36. TrustedDevices = new List<TrustedDevice>();
  37. AuthTokens = new List<AuthToken>();
  38. }
  39. }
  40. }