Files
deepdrft/DeepDrftModels/Entities/MixMetadata.cs
T
daniel-c-harvey 5d6b54d2fc Phase 9 Wave 1: add ReleaseMedium discriminator + Session/Mix metadata
Add ReleaseMedium enum (Cut/Session/Mix) and two 1:1 satellite entities
(SessionMetadata, MixMetadata) with EF configs and an additive migration.
ReleaseDto.ReleaseType is now nullable, nulled for non-Cut at the converter.
Existing releases default to Cut via column default; no data migration.
2026-06-12 21:47:04 -04:00

18 lines
798 B
C#

using Models.Entities;
namespace DeepDrftModels.Entities;
// 1:1 satellite for Mix-medium releases (Phase 9). One row per Mix ReleaseEntity, keyed by a unique
// ReleaseId FK (the 1:1 enforcement lives in MixMetadataConfiguration). Carries the entry key for
// the preprocessed high-resolution waveform datum.
//
// 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 MixMetadata : BaseEntity, IEntity
{
public long ReleaseId { get; set; }
public ReleaseEntity Release { get; set; } = null!;
public required string WaveformEntryKey { get; set; }
}