Add whitelisting service + update the jwt valid audience

This commit is contained in:
2025-11-07 19:38:33 +07:00
parent 5578d272fa
commit 21110cd771
17 changed files with 2575 additions and 7 deletions

View File

@@ -1325,6 +1325,63 @@ namespace Managing.Infrastructure.Databases.Migrations
b.ToTable("Users");
});
modelBuilder.Entity("Managing.Infrastructure.Databases.PostgreSql.Entities.WhitelistAccountEntity", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<DateTime>("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property<string>("EmbeddedWallet")
.IsRequired()
.HasMaxLength(42)
.HasColumnType("character varying(42)");
b.Property<string>("ExternalEthereumAccount")
.HasMaxLength(42)
.HasColumnType("character varying(42)");
b.Property<bool>("IsWhitelisted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false);
b.Property<DateTime>("PrivyCreationDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("PrivyId")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<string>("TwitterAccount")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<DateTime?>("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("CreatedAt");
b.HasIndex("EmbeddedWallet")
.IsUnique();
b.HasIndex("ExternalEthereumAccount");
b.HasIndex("PrivyId")
.IsUnique();
b.HasIndex("TwitterAccount");
b.ToTable("WhitelistAccounts");
});
modelBuilder.Entity("Managing.Infrastructure.Databases.PostgreSql.Entities.WorkerEntity", b =>
{
b.Property<int>("Id")