using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace NostrStreamer.Database.Configuration; public class UserConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasKey(a => a.PubKey); builder.Property(a => a.StreamKey) .IsRequired(); builder.Property(a => a.Balance) .IsRequired(); builder.Property(a => a.Version) .IsRowVersion(); builder.Property(a => a.Tags); builder.Property(a => a.ContentWarning); } }