| 123456789101112131415161718192021222324252627282930 |
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace Domain.Entities.Forum.Boards
- {
- public class BoardPrefix
- {
- [ForeignKey(nameof(BoardID))]
- public virtual Board Board { get; set; } = null!;
- [Key]
- public int ID { get; set; }
- public int BoardID { get; set; }
- public string Name { get; set; } = default!;
- public string? Color { get; set; }
- public short Order { get; set; } = 0;
- public int Posts { get; set; } = 0;
- public bool IsActive { get; set; } = false;
- public DateTime? UpdatedAt { get; set; }
- public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
- }
- }
|