﻿using System.Collections.Generic;

namespace LinFx.Extensions.Data;

public class DatabaseInfo
{
    public string DatabaseName { get; }

    /// <summary>
    /// List of connection names mapped to this database.
    /// </summary>
    public HashSet<string> MappedConnections { get; }

    /// <summary>
    /// Is this database used by tenants. Set this to false if this database
    /// can not owned by tenants.
    /// 
    /// Default: true.
    /// </summary>
    public bool IsUsedByTenants { get; set; } = true;

    internal DatabaseInfo(string databaseName)
    {
        DatabaseName = databaseName;
        MappedConnections = new HashSet<string>();
    }
}
