/
fr1n1ss
/
PasswordManager
Обзор
Документация
Войти
/
fr1n1ss
/
PasswordManager
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PasswordManagerAPI/Migrations/AppDbContextModelSnapshot.cs
335 строк
11 KB
Dmitry Kiselyov
Remove obsolete RSA columns from Users table
28 май 2026, 19:47
28 май 2026, 19:47
d6e4b3c
Код
Авторство
О чём код?
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PasswordManagerAPI.Services; #nullable disable namespace PasswordManagerAPI.Migrations { [DbContext(typeof(AppDbContext))] partial class AppDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.1") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("PasswordManagerAPI.Entities.Account", b => { b.Property<int>("ID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID")); b.Property<DateTime>("CreationDate") .HasColumnType("datetime2"); b.Property<string>("Description") .HasColumnType("nvarchar(max)"); b.Property<string>("EncryptedPassword") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Login") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property<string>("ServiceName") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property<string>("URL") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<int>("UserID") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("UserID", "ServiceName", "Login") .IsUnique(); b.ToTable("Accounts"); }); modelBuilder.Entity("PasswordManagerAPI.Entities.AuditLog", b => { b.Property<long>("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id")); b.Property<string>("Action") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<string>("Details") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property<string>("IpAddress") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property<Guid?>("SessionId") .HasColumnType("uniqueidentifier"); b.Property<string>("UserAgent") .HasMaxLength(512) .HasColumnType("nvarchar(512)"); b.Property<int?>("UserId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("UserId", "CreatedAt"); b.ToTable("AuditLogs"); }); modelBuilder.Entity("PasswordManagerAPI.Entities.EmailVerificationCode", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property<string>("CodeHash") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property<DateTime?>("ConsumedAt") .HasColumnType("datetime2"); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<DateTime>("ExpiresAt") .HasColumnType("datetime2"); b.Property<string>("Purpose") .IsRequired() .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property<string>("TargetEmail") .IsRequired() .HasMaxLength(256) .HasColumnType("nvarchar(256)"); b.Property<int>("UserId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("UserId", "Purpose"); b.ToTable("EmailVerificationCodes"); }); modelBuilder.Entity("PasswordManagerAPI.Entities.Favorite", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); b.Property<DateTime>("AddedAt") .HasColumnType("datetime2"); b.Property<int>("EntityId") .HasColumnType("int"); b.Property<string>("EntityType") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<int>("UserId") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("Favorites"); }); modelBuilder.Entity("PasswordManagerAPI.Entities.Note", b => { b.Property<int>("ID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID")); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<string>("EncryptedContent") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Title") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property<DateTime>("UpdatedAt") .HasColumnType("datetime2"); b.Property<int>("UserID") .HasColumnType("int"); b.HasKey("ID"); b.ToTable("Notes"); }); modelBuilder.Entity("PasswordManagerAPI.Entities.TotpAccount", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); b.Property<int>("Digits") .HasColumnType("int"); b.Property<string>("Issuer") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<int>("Period") .HasColumnType("int"); b.Property<string>("Secret") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("ServiceName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<int>("UserId") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("TotpAccounts"); }); modelBuilder.Entity("PasswordManagerAPI.Entities.User", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); b.Property<string>("Email") .IsRequired() .HasMaxLength(450) .HasColumnType("nvarchar(450)"); b.Property<bool>("EmailConfirmed") .HasColumnType("bit"); b.Property<bool>("Is2FaEnabled") .HasColumnType("bit"); b.Property<string>("MasterPasswordVerifier") .HasColumnType("nvarchar(max)"); b.Property<string>("PasswordHash") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Salt") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("TotpSecret") .HasColumnType("nvarchar(max)"); b.Property<string>("Username") .IsRequired() .HasMaxLength(25) .HasColumnType("nvarchar(25)"); b.HasKey("Id"); b.HasIndex("Email") .IsUnique(); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("PasswordManagerAPI.Entities.UserSession", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<DateTime>("ExpiresAt") .HasColumnType("datetime2"); b.Property<string>("IpAddress") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property<string>("JwtId") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property<DateTime>("LastSeenAt") .HasColumnType("datetime2"); b.Property<DateTime?>("RevokedAt") .HasColumnType("datetime2"); b.Property<string>("RevokedReason") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property<string>("UserAgent") .HasMaxLength(512) .HasColumnType("nvarchar(512)"); b.Property<int>("UserId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("UserId", "JwtId") .IsUnique(); b.ToTable("UserSessions"); }); #pragma warning restore 612, 618 } } }