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
@@ -299,6 +299,8 @@ namespace Govor.Data.Migrations
b.HasIndex("PrivateChatId");
b.HasIndex("RecipientId");
b.ToTable("Messages");
});
@@ -492,14 +494,70 @@ namespace Govor.Data.Migrations
b.HasKey("Id");
b.HasIndex("CreatedOn");
b.HasIndex("InviteId");
b.HasIndex("Username")
.IsUnique();
b.HasIndex("WasOnline");
b.ToTable("Users");
});
modelBuilder.Entity("Govor.Core.Models.Users.UserPushToken", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<DateTime>("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property<bool>("IsActive")
.HasColumnType("boolean");
b.Property<DateTime?>("LastUsedAt")
.HasColumnType("timestamp with time zone");
b.Property<string>("Platform")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Provider")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Token")
.IsRequired()
.HasColumnType("text");
b.Property<DateTime>("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.Property<Guid>("UserId")
.HasColumnType("uuid");
b.Property<Guid?>("UserSessionId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("Token")
.IsUnique();
b.HasIndex("UserId")
.IsUnique();
b.HasIndex("UserSessionId")
.IsUnique();
b.HasIndex("UserId", "IsActive");
b.ToTable("UserPushTokens");
});
modelBuilder.Entity("Govor.Core.Models.Users.UserSession", b =>
{
b.Property<Guid>("Id")
@@ -529,6 +587,12 @@ namespace Govor.Data.Migrations
b.HasKey("Id");
b.HasIndex("Id")
.IsUnique();
b.HasIndex("RefreshTokenHash")
.IsUnique();
b.HasIndex("UserId");
b.ToTable("UserSessions");