using System.Net; namespace WhatApi.Tables; public class Content : IAuditableEntity { public Guid Id { get; set; } public required string Mime { get; set; } public Guid BlobId { get; set; } public required IPAddress Ip { get; set; } public DateTimeOffset CreatedAtUtc { get; set; } public DateTimeOffset? UpdatedAtUtc { get; set; } public Guid CreatedBy { get; set; } public Guid? UpdatedBy { get; set; } } public class ContentConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasKey(x => x.Id); builder.Property(x => x.Mime).HasMaxLength(100).IsRequired(); builder.ToTable("content"); } }