namespace EntKube.Web.Data;

/// <summary>
/// Join entity linking an app to an environment. This represents the
/// many-to-many relationship: an app can be deployed to multiple environments,
/// and an environment can host multiple apps.
/// </summary>
public class AppEnvironment
{
    public Guid AppId { get; set; }

    public Guid EnvironmentId { get; set; }

    public DateTime LinkedAt { get; set; } = DateTime.UtcNow;

    // Navigation
    public App App { get; set; } = null!;
    public Environment Environment { get; set; } = null!;
}
