Web API for the bulk printing desktop application.

User.cs 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace MAX.Models
  5. {
  6. public class User
  7. {
  8. public enum UserLevel
  9. {
  10. Unknown = 0,
  11. Administrator = 4,
  12. CustomUser = 6
  13. }
  14. [DatabaseGenerated(DatabaseGeneratedOption.None)]
  15. public int Id { get; set; }
  16. [MaxLength(50)]
  17. public string Username { get; set; }
  18. [MaxLength(50)]
  19. public string FirstName { get; set; }
  20. [MaxLength(50)]
  21. public string Surname { get; set; }
  22. public int AccountId { get; set; }
  23. public Account Account { get; set; }
  24. public bool Enabled { get; set; }
  25. public UserLevel Level { get; set; }
  26. public int System { get; set; }
  27. public DateTime LastLogin { get; set; }
  28. public bool CanPrintOnline { get; set; }
  29. public decimal OnlinePrintValue { get; set; }
  30. public bool CanReprintOnline { get; set; }
  31. public decimal OnlineReprintValue { get; set; }
  32. public bool CanPrintOffline { get; set; }
  33. public decimal OfflinePrintValue { get; set; }
  34. public bool CanReprintOffline { get; set; }
  35. public decimal OfflineReprintValue { get; set; }
  36. }
  37. }