chat: add database types and auth middleware

This commit is contained in:
sam 2024-05-21 16:41:01 +02:00
parent 656eec81d8
commit 6f6e19bbb5
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
24 changed files with 1165 additions and 15 deletions

View file

@ -0,0 +1,9 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using NUlid;
namespace Foxchat.Core;
public class UlidConverter() : ValueConverter<Ulid, Guid>(
convertToProviderExpression: x => x.ToGuid(),
convertFromProviderExpression: x => new Ulid(x)
);