mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
was added firebase nitifying
This commit is contained in:
@@ -12,6 +12,14 @@ public class UserSessionConfiguration : IEntityTypeConfiguration<UserSession>
|
||||
{
|
||||
builder.HasKey(us => us.Id);
|
||||
|
||||
builder.HasIndex(us => us.Id)
|
||||
.IsUnique();
|
||||
|
||||
builder.HasIndex(us => us.UserId);
|
||||
|
||||
builder.HasIndex(s => s.RefreshTokenHash)
|
||||
.IsUnique();
|
||||
|
||||
builder.Property(us => us.RefreshTokenHash)
|
||||
.IsRequired();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user