Duty.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. using Abp.Domain.Entities;
  9. namespace ShwasherSys.BasicInfo
  10. {
  11. [Table("Dutys")]
  12. public class Duty:Entity<int>
  13. {
  14. public const int DutyNameMaxLength = 50;
  15. public const int RemarkMaxLength = 200;
  16. public const int UserIDLastModMaxLength = 20;
  17. public const int IsLockMaxLength = 1;
  18. [Required]
  19. [StringLength(50)]
  20. public string DutyName { get; set; }
  21. [StringLength(200)]
  22. public string Remark { get; set; }
  23. [Column(TypeName = "smalldatetime")]
  24. public DateTime? TimeCreated { get; set; }
  25. [Column(TypeName = "smalldatetime")]
  26. public DateTime? TimeLastMod { get; set; }
  27. [StringLength(20)]
  28. public string UserIDLastMod { get; set; }
  29. [Required]
  30. [StringLength(1)]
  31. public string IsLock { get; set; }
  32. }
  33. }