Public Access
This commit is contained in:
@@ -13,6 +13,8 @@ public sealed class SpeakerIdentity
|
||||
|
||||
public DateTimeOffset UpdatedAt { get; set; }
|
||||
|
||||
public int TranscriptionCount { get; set; }
|
||||
|
||||
public List<SpeakerCandidateName> CandidateNames { get; set; } = [];
|
||||
|
||||
public List<SpeakerAlias> Aliases { get; set; } = [];
|
||||
@@ -154,8 +156,9 @@ public sealed class SpeakerIdentityDbContext : DbContext
|
||||
{
|
||||
modelBuilder.Entity<SpeakerIdentity>(entity =>
|
||||
{
|
||||
entity.Property<int>("TranscriptionCount")
|
||||
.HasDefaultValue(0);
|
||||
entity.Property(identity => identity.TranscriptionCount)
|
||||
.IsRequired()
|
||||
.ValueGeneratedNever();
|
||||
|
||||
entity.HasMany(identity => identity.CandidateNames)
|
||||
.WithOne(candidate => candidate.SpeakerIdentity)
|
||||
|
||||
Reference in New Issue
Block a user