using System.ComponentModel.DataAnnotations.Schema;
using TecniStamp.Domain.Base;

namespace TecniStamp.Domain;

public class Sezione : EntitaBase
{
    public string Nome { get; set; }
    public int Ordinamento { get; set; }
    public string? Icona { get; set; }
    public string Url { get; set; }
    public bool Blank { get; set; }
    [InverseProperty(nameof(Feature.Sezione))]
    public List<Feature> Features { get; set; }
    
    [ForeignKey(nameof(Parent))]
    public Guid? ParentId { get; set; }
    public Sezione Parent { get; set; }
}