BoardPrefix.cs 731 B

123456789101112131415161718192021222324252627282930
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace Domain.Entities.Forum.Boards
  4. {
  5. public class BoardPrefix
  6. {
  7. [ForeignKey(nameof(BoardID))]
  8. public virtual Board Board { get; set; } = null!;
  9. [Key]
  10. public int ID { get; set; }
  11. public int BoardID { get; set; }
  12. public string Name { get; set; } = default!;
  13. public string? Color { get; set; }
  14. public short Order { get; set; } = 0;
  15. public int Posts { get; set; } = 0;
  16. public bool IsActive { get; set; } = false;
  17. public DateTime? UpdatedAt { get; set; }
  18. public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
  19. }
  20. }