using System.ComponentModel.DataAnnotations;

namespace CouchLog.Data
{
    public class Genre
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [MaxLength(50)]
        public required string Name { get; set; }

        [Required]
        public required DateTime CreationTime { get; set; }

        public DateTime? LastChange {  get; set; }


        // --- Navigation Properties ---
        public virtual ICollection<LinkTableGlobalGenre> LinkTableGlobalGenres { get; set; } = new List<LinkTableGlobalGenre>();
    }
}