MobileShortcut.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace FMSAdmin.Entities {
  7. public enum ShortcutType {
  8. 대시보드메뉴 = 0,
  9. 하단메뉴,
  10. }
  11. public class MobileShortcut {
  12. public MobileShortcut() {
  13. }
  14. [DisplayName("ID"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  15. public int MobileShortcutId { get; set; }
  16. [Display(Name = "사용자 고유번호")]
  17. [StringLength(24)]
  18. public string UserId { get; set; }
  19. [Display(Name = "사이트맵 ID")]
  20. public int SitemapId { get; set; }
  21. [Display(Name = "단축메뉴 구분")]
  22. public ShortcutType Type { get; set; }
  23. [DisplayName("아이콘")]
  24. public string Icon { get; set; }
  25. [DisplayName("정렬순서")]
  26. public int Position { get; set; }
  27. [DisplayName("삭제여부"), Description("삭제여부가 있어야 사용자의 단축메뉴가 최초 저장되었는지를 판단 가능하다.")]
  28. public bool IsDelete { get; set; }
  29. [DisplayName("등록일")]
  30. public DateTime? Created { get; set; }
  31. [DisplayName("수정일")]
  32. public DateTime? Updated { get; set; }
  33. [ForeignKey("UserId")]
  34. public virtual CmUser CmUser { get; set; }
  35. [ForeignKey("SitemapId")]
  36. public virtual Sitemap Sitemap { get; set; }
  37. }
  38. }