feat: stream-keys
This commit is contained in:
@ -8,8 +8,6 @@ public class UserStreamConfiguration : IEntityTypeConfiguration<UserStream>
|
||||
public void Configure(EntityTypeBuilder<UserStream> builder)
|
||||
{
|
||||
builder.HasKey(a => a.Id);
|
||||
builder.Property(a => a.StreamId)
|
||||
.IsRequired();
|
||||
|
||||
builder.Property(a => a.Starts)
|
||||
.IsRequired();
|
||||
@ -35,6 +33,13 @@ public class UserStreamConfiguration : IEntityTypeConfiguration<UserStream>
|
||||
|
||||
builder.Property(a => a.AdmissionCost);
|
||||
|
||||
builder.Property(a => a.Title);
|
||||
builder.Property(a => a.Image);
|
||||
builder.Property(a => a.Summary);
|
||||
builder.Property(a => a.ContentWarning);
|
||||
builder.Property(a => a.Tags);
|
||||
builder.Property(a => a.Goal);
|
||||
|
||||
builder.HasOne(a => a.Endpoint)
|
||||
.WithMany()
|
||||
.HasForeignKey(a => a.EndpointId);
|
||||
|
Reference in New Issue
Block a user