Update timestamps

This commit is contained in:
2023-08-25 20:02:24 +01:00
parent b3b3ee542e
commit 201344b622
7 changed files with 360 additions and 4 deletions

View File

@ -30,6 +30,9 @@ public class UserStreamConfiguration : IEntityTypeConfiguration<UserStream>
builder.Property(a => a.ForwardClientId)
.IsRequired();
builder.Property(a => a.LastSegment)
.IsRequired();
builder.HasOne(a => a.Endpoint)
.WithMany()
.HasForeignKey(a => a.EndpointId);

View File

@ -37,7 +37,8 @@ public class UserStream
/// Publisher edge client id
/// </summary>
public string ForwardClientId { get; set; } = null!;
public DateTime LastSegment { get; set; } = DateTime.UtcNow;
public List<UserStreamGuest> Guests { get; init; } = new();
}