using Models.Entities;

namespace DeepDrftModels.Entities;

// 1:1 satellite for Session-medium releases (Phase 9). One row per Session ReleaseEntity, keyed by
// a unique ReleaseId FK (the 1:1 enforcement lives in SessionMetadataConfiguration). Carries the
// hero-image entry key into the Image vault.
//
// Inherits Id, CreatedAt, UpdatedAt, IsDeleted from BaseEntity (Cerebellum.BlazorBlocks.Models).
// BaseEntity ships the audit columns but does not declare IEntity itself, so subclasses declare it
// explicitly to satisfy the generic constraints on Repository<>/Manager<>/etc.
public class SessionMetadata : BaseEntity, IEntity
{
    public long ReleaseId { get; set; }
    public ReleaseEntity Release { get; set; } = null!;
    public required string HeroImageEntryKey { get; set; }
}
