namespace WhatApi.Tables; public class User : IAuditableEntity { public Guid Id { get; set; } public required string Name { get; set; } public required string Email { get; set; } public required string Password { get; set; } public DateTimeOffset? LastSeen { get; set; } public IEnumerable Places { get; set; } = null!; public DateTimeOffset CreatedAtUtc { get; set; } public DateTimeOffset? UpdatedAtUtc { get; set; } public Guid CreatedBy { get; set; } public Guid? UpdatedBy { get; set; } } public class UserConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasKey(x => x.Id); builder.Property(x => x.Name).HasMaxLength(50); builder.Property(x => x.Email).HasMaxLength(100); builder.HasMany(x => x.Places); builder.ToTable("user"); } }