using System.Collections.Generic;

namespace ZB.MOM.WW.CBDD.SourceGenerators.Models;

public class DbContextInfo
{
    /// <summary>
    ///     Gets or sets the DbContext class name.
    /// </summary>
    public string ClassName { get; set; } = "";

    /// <summary>
    ///     Gets or sets the namespace containing the DbContext.
    /// </summary>
    public string Namespace { get; set; } = "";

    /// <summary>
    ///     Gets or sets the source file path for the DbContext.
    /// </summary>
    public string FilePath { get; set; } = "";

    /// <summary>
    ///     Gets the entity types discovered for the DbContext.
    /// </summary>
    public List<EntityInfo> Entities { get; } = new();

    /// <summary>
    ///     Gets global nested types keyed by type name.
    /// </summary>
    public Dictionary<string, NestedTypeInfo> GlobalNestedTypes { get; } = new();
}