| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using Domain.Entities.Forum.Boards;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace Domain.Entities.Forum.Posts;
- public class PostImage
- {
- [ForeignKey(nameof(BoardID))]
- public Board Board { get; set; } = null!;
- [ForeignKey(nameof(PostID))]
- public Post Post { get; set; } = null!;
- [Key]
- public int ID { get; set; }
- public int BoardID { get; set; }
- public int PostID { 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 bool IsDisabled { get; set; } = false;
- public DateTime? DisabledAt { get; set; }
- public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
- }
|