Contact.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using Quadarax.Application.QLiberace.Common.Entities.Base;
  2. namespace Quadarax.Application.QLiberace.Customer.Entities
  3. {
  4. public class Contact : QlbrcEntityTenantCode
  5. {
  6. /// <summary>
  7. /// Reference to customer that contact belongs
  8. /// </summary>
  9. public long CustomerId { get; set; }
  10. /// <summary>
  11. /// Contact type (0-Email, 1-Address, 2-Phone, 3-SMS)
  12. /// </summary>
  13. public int Type { get; set; }
  14. /// <summary>
  15. /// Contact heading caption.
  16. /// </summary>
  17. public string Caption { get; set; } = null!;
  18. /// <summary>
  19. /// Main address value. If phone, email, sms stores email address or telephone number.
  20. /// </summary>
  21. public string Address { get; set; } = null!;
  22. /// <summary>
  23. /// Secondary address value.
  24. /// </summary>
  25. public string? Address1 { get; set; }
  26. /// <summary>
  27. /// Contact city.
  28. /// </summary>
  29. public string? City { get; set; }
  30. /// <summary>
  31. /// Contact ZIP code.
  32. /// </summary>
  33. public string? Zip { get; set; }
  34. /// <summary>
  35. /// Contact country code.
  36. /// </summary>
  37. public string? CountryCode { get; set; }
  38. /// <summary>
  39. /// Flag if Contact is preffered.
  40. /// </summary>
  41. public bool IsPreffered { get; set; }
  42. public virtual Customer Customer { get; set; } = null!;
  43. }
  44. }