TISP_SpotRegion.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Ropin.Inspection.Model.Entities
  9. {
  10. public class TISP_SpotRegion
  11. {
  12. [Key]
  13. public Guid C_ID { get; set; } = Guid.NewGuid();
  14. public Guid C_RegionCode { get; set; }
  15. public Guid C_SpotCode { get; set; }
  16. [MaxLength(500)]
  17. public string C_Remark { get; set; }
  18. public Guid C_CreateBy { get; set; }
  19. public DateTime D_CreateOn { get; set; }
  20. public Guid C_LastUpdatedBy { get; set; }
  21. public DateTime D_LastUpdatedOn { get; set; }
  22. [Required]
  23. [MaxLength(1)]
  24. public char C_Status { get; set; } = '1';
  25. [ForeignKey("C_RegionCode")]
  26. public virtual TISP_Region RegionCode { get; set; }
  27. [ForeignKey("C_SpotCode")]
  28. public virtual TISP_Spot SpotCode { get; set; }
  29. [ForeignKey("C_CreateBy")]
  30. public virtual TSYS_User UsersCreateBy { get; set; }
  31. [ForeignKey("C_LastUpdatedBy")]
  32. public virtual TSYS_User UsersLastUpdatedBy { get; set; }
  33. }
  34. }