using System.ComponentModel.DataAnnotations; namespace LittleShop.Models; public class Category { [Key] public Guid Id { get; set; } [Required] [StringLength(100)] public string Name { get; set; } = string.Empty; [StringLength(500)] public string? Description { get; set; } public DateTime CreatedAt { get; set; } = DateTime.UtcNow; public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; public bool IsActive { get; set; } = true; // Navigation properties public virtual ICollection Products { get; set; } = new List(); }