GameImage.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace Domain.Entities.Store;
  4. /// <summary>게임 상세 이미지 갤러리 (스크린샷). FeedPostImage 패턴.</summary>
  5. public class GameImage
  6. {
  7. [ForeignKey(nameof(GameID))]
  8. public virtual Game Game { get; set; } = null!;
  9. [Key]
  10. public int ID { get; set; }
  11. public int GameID { get; set; }
  12. public Guid UUID { get; set; } = Guid.NewGuid();
  13. public string FileName { get; set; } = default!;
  14. public string HashedName { get; set; } = default!;
  15. public string Path { get; set; } = default!;
  16. public string Url { get; set; } = default!;
  17. public string? Extension { get; set; }
  18. public string? ContentType { get; set; }
  19. public long? Size { get; set; }
  20. public short? Width { get; set; }
  21. public short? Height { get; set; }
  22. public int Order { get; set; }
  23. public bool IsDisabled { get; set; } = false;
  24. public DateTime? DisabledAt { get; set; }
  25. public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
  26. }