was added firebase nitifying

This commit is contained in:
Artemy
2026-03-01 16:48:06 +07:00
parent 76d7280c71
commit eab0d746b8
60 changed files with 2335 additions and 1149 deletions
@@ -0,0 +1,18 @@
using Govor.Core.Models.Users;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Govor.Data.Configurations;
public class UserPushTokenConfiguration : IEntityTypeConfiguration<UserPushToken>
{
public void Configure(EntityTypeBuilder<UserPushToken> builder)
{
builder.HasKey(t => t.Id);
builder.HasIndex(x => x.Token).IsUnique();
builder.HasIndex(x => x.UserSessionId).IsUnique();
builder.HasIndex(x => x.UserId).IsUnique();
builder.HasIndex(x => new { x.UserId, x.IsActive });
}
}