fix searching of push tokens

This commit is contained in:
Artemy
2026-03-01 19:17:54 +07:00
parent dc6bf14e43
commit ecb9f4581d
5 changed files with 946 additions and 11 deletions
@@ -523,15 +523,18 @@ namespace Govor.Data.Migrations
b.Property<string>("Platform")
.IsRequired()
.HasColumnType("text");
.HasMaxLength(50)
.HasColumnType("character varying(50)");
b.Property<string>("Provider")
.IsRequired()
.HasColumnType("text");
.HasMaxLength(50)
.HasColumnType("character varying(50)");
b.Property<string>("Token")
.IsRequired()
.HasColumnType("text");
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property<DateTime>("UpdatedAt")
.HasColumnType("timestamp with time zone");
@@ -547,9 +550,6 @@ namespace Govor.Data.Migrations
b.HasIndex("Token")
.IsUnique();
b.HasIndex("UserId")
.IsUnique();
b.HasIndex("UserSessionId")
.IsUnique();