BoardPrefix.cs 669 B

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