Fix: column is of type event_type but expression is of type integer (EF Core + Npgsql enum)
Since EF Core 9 the Npgsql provider ignores MapEnum on your NpgsqlDataSourceBuilder. Call o.MapEnum<T>() inside UseNpgsql, keep the data source MapEnum, and drop HasColumnType.