| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace Domain.Entities.Store;
- /// <summary>게임 상세 이미지 갤러리 (스크린샷). FeedPostImage 패턴.</summary>
- public class GameImage
- {
- [ForeignKey(nameof(GameID))]
- public virtual Game Game { get; set; } = null!;
- [Key]
- public int ID { get; set; }
- public int GameID { get; set; }
- public Guid UUID { get; set; } = Guid.NewGuid();
- public string FileName { get; set; } = default!;
- public string HashedName { get; set; } = default!;
- public string Path { get; set; } = default!;
- public string Url { get; set; } = default!;
- public string? Extension { get; set; }
- public string? ContentType { get; set; }
- public long? Size { get; set; }
- public short? Width { get; set; }
- public short? Height { get; set; }
- public int Order { get; set; }
- public bool IsDisabled { get; set; } = false;
- public DateTime? DisabledAt { get; set; }
- public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
- }
|