This commit is contained in:
2026-06-04 09:44:23 +03:00
parent 4ddab34ad1
commit 033b4fc247
29 changed files with 3661 additions and 59 deletions
@@ -88,6 +88,9 @@ namespace MyOffice.Migrations.Postgres.Migrations
b.HasIndex("UserId");
b.HasIndex("AccountId", "OwnerId")
.IsUnique();
b.HasIndex("AccountId", "UserId")
.IsUnique();
@@ -147,10 +150,11 @@ namespace MyOffice.Migrations.Postgres.Migrations
b.HasKey("Id");
b.HasIndex("AccountId");
b.HasIndex("CategoryId");
b.HasIndex("AccountId", "CategoryId")
.IsUnique();
b.ToTable("AccountAccountCategories");
});
@@ -448,6 +452,52 @@ namespace MyOffice.Migrations.Postgres.Migrations
b.ToTable("UserClaims");
});
modelBuilder.Entity("MyOffice.Data.Models.Verifications.VerificationCode", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("Code")
.IsRequired()
.HasColumnType("text");
b.Property<DateTime>("CreatedOn")
.HasColumnType("timestamp with time zone");
b.Property<string>("Destination")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DestinationType")
.IsRequired()
.HasColumnType("text");
b.Property<DateTime>("ExpiresOn")
.HasColumnType("timestamp with time zone");
b.Property<string>("Metadata")
.HasColumnType("text");
b.Property<string>("Template")
.IsRequired()
.HasColumnType("text");
b.Property<Guid>("UserId")
.HasColumnType("uuid");
b.Property<DateTime?>("VerifiedOn")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("Verifications");
});
modelBuilder.Entity("MyOffice.Data.Models.Accounts.Account", b =>
{
b.HasOne("MyOffice.Data.Models.Currencies.CurrencyGlobal", "CurrencyGlobal")
@@ -652,6 +702,17 @@ namespace MyOffice.Migrations.Postgres.Migrations
b.Navigation("User");
});
modelBuilder.Entity("MyOffice.Data.Models.Verifications.VerificationCode", b =>
{
b.HasOne("MyOffice.Data.Models.Users.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("User");
});
modelBuilder.Entity("MyOffice.Data.Models.Accounts.Account", b =>
{
b.Navigation("AccessRights");