/
qwiklly
/
arc-server
Обзор
Документация
Войти
/
qwiklly
/
arc-server
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
src/AppRemoteConfig/Migrations/ApplicationContextModelSnapshot.cs
525 строк
19 KB
CLTanuki
feat(#3, #7): scope, based on current user
10 янв 2024, 18:20
10 янв 2024, 18:20
0019562
Код
Авторство
О чём код?
// <auto-generated /> using System; using AppRemoteConfig.Models.Database; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace AppRemoteConfig.Migrations { [DbContext(typeof(ApplicationContext))] partial class ApplicationContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("AppRemoteConfig.Models.Database.AppUser", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<int>("AccessFailedCount") .HasColumnType("integer"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("text"); b.Property<string>("Email") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property<bool>("EmailConfirmed") .HasColumnType("boolean"); b.Property<string>("FirstName") .HasColumnType("text"); b.Property<string>("LastName") .HasColumnType("text"); b.Property<bool>("LockoutEnabled") .HasColumnType("boolean"); b.Property<DateTimeOffset?>("LockoutEnd") .HasColumnType("timestamp with time zone"); b.Property<string>("NormalizedEmail") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property<string>("NormalizedUserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property<string>("PasswordHash") .HasColumnType("text"); b.Property<string>("Patronymic") .HasColumnType("text"); b.Property<string>("PhoneNumber") .HasColumnType("text"); b.Property<bool>("PhoneNumberConfirmed") .HasColumnType("boolean"); b.Property<string>("SecurityStamp") .HasColumnType("text"); b.Property<bool>("TwoFactorEnabled") .HasColumnType("boolean"); b.Property<string>("UserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasDatabaseName("UserNameIndex"); b.ToTable("AspNetUsers", (string)null); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.AppVersion", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<Guid>("ApplicationId") .HasColumnType("uuid"); b.Property<string>("Description") .HasColumnType("text"); b.Property<bool>("IsArchive") .HasColumnType("boolean"); b.Property<int>("Major") .HasColumnType("integer"); b.Property<int>("Minor") .HasColumnType("integer"); b.Property<string>("ParametersSchema") .HasColumnType("text"); b.Property<int>("Patch") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("ApplicationId", "Major", "Minor", "Patch") .IsUnique(); b.ToTable("Versions"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.Application", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<string>("Description") .IsRequired() .HasColumnType("text"); b.Property<bool>("IsArchive") .HasColumnType("boolean"); b.Property<Guid>("OrganizationId") .HasColumnType("uuid"); b.Property<string>("Title") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("OrganizationId"); b.ToTable("Applications"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.Organization", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<string>("Title") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Organizations"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.OrganizationAccess", b => { b.Property<Guid>("AppUserId") .HasColumnType("uuid"); b.Property<Guid>("OrganizationId") .HasColumnType("uuid"); b.Property<DateOnly>("GrantedAt") .ValueGeneratedOnAdd() .HasColumnType("date") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property<int>("GrantedRights") .HasColumnType("integer"); b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.HasKey("AppUserId", "OrganizationId"); b.HasIndex("OrganizationId"); b.ToTable("OrganizationAccess"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.ValueFlag", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<Guid>("ApplicationId") .HasColumnType("uuid"); b.Property<string>("Conditions") .IsRequired() .HasColumnType("jsonb"); b.Property<string>("Description") .HasColumnType("text"); b.Property<bool>("Enabled") .HasColumnType("boolean"); b.Property<string>("FeatureKey") .IsRequired() .HasColumnType("text"); b.Property<int>("LogicalOperand") .HasColumnType("integer"); b.Property<string>("Title") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("ApplicationId"); b.HasIndex("FeatureKey") .IsUnique(); b.ToTable("ValueFlags"); }); modelBuilder.Entity("AppVersionValueFlag", b => { b.Property<Guid>("ApplicableVersionsId") .HasColumnType("uuid"); b.Property<Guid>("ParametersId") .HasColumnType("uuid"); b.HasKey("ApplicableVersionsId", "ParametersId"); b.HasIndex("ParametersId"); b.ToTable("AppVersionValueFlag"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("text"); b.Property<string>("Name") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property<string>("NormalizedName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasDatabaseName("RoleNameIndex"); b.ToTable("AspNetRoles", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); b.Property<string>("ClaimType") .HasColumnType("text"); b.Property<string>("ClaimValue") .HasColumnType("text"); b.Property<Guid>("RoleId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); b.Property<string>("ClaimType") .HasColumnType("text"); b.Property<string>("ClaimValue") .HasColumnType("text"); b.Property<Guid>("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b => { b.Property<string>("LoginProvider") .HasColumnType("text"); b.Property<string>("ProviderKey") .HasColumnType("text"); b.Property<string>("ProviderDisplayName") .HasColumnType("text"); b.Property<Guid>("UserId") .HasColumnType("uuid"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b => { b.Property<Guid>("UserId") .HasColumnType("uuid"); b.Property<Guid>("RoleId") .HasColumnType("uuid"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b => { b.Property<Guid>("UserId") .HasColumnType("uuid"); b.Property<string>("LoginProvider") .HasColumnType("text"); b.Property<string>("Name") .HasColumnType("text"); b.Property<string>("Value") .HasColumnType("text"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens", (string)null); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.AppVersion", b => { b.HasOne("AppRemoteConfig.Models.Database.Application", "Application") .WithMany("Versions") .HasForeignKey("ApplicationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Application"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.Application", b => { b.HasOne("AppRemoteConfig.Models.Database.Organization", "Organization") .WithMany("Applications") .HasForeignKey("OrganizationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Organization"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.OrganizationAccess", b => { b.HasOne("AppRemoteConfig.Models.Database.AppUser", "AppUser") .WithMany("OrganizationAccesses") .HasForeignKey("AppUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("AppRemoteConfig.Models.Database.Organization", "Organization") .WithMany("OrganizationAccesses") .HasForeignKey("OrganizationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("AppUser"); b.Navigation("Organization"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.ValueFlag", b => { b.HasOne("AppRemoteConfig.Models.Database.Application", "Application") .WithMany() .HasForeignKey("ApplicationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Application"); }); modelBuilder.Entity("AppVersionValueFlag", b => { b.HasOne("AppRemoteConfig.Models.Database.AppVersion", null) .WithMany() .HasForeignKey("ApplicableVersionsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("AppRemoteConfig.Models.Database.ValueFlag", null) .WithMany() .HasForeignKey("ParametersId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b => { b.HasOne("AppRemoteConfig.Models.Database.AppUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b => { b.HasOne("AppRemoteConfig.Models.Database.AppUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("AppRemoteConfig.Models.Database.AppUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b => { b.HasOne("AppRemoteConfig.Models.Database.AppUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.AppUser", b => { b.Navigation("OrganizationAccesses"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.Application", b => { b.Navigation("Versions"); }); modelBuilder.Entity("AppRemoteConfig.Models.Database.Organization", b => { b.Navigation("Applications"); b.Navigation("OrganizationAccesses"); }); #pragma warning restore 612, 618 } } }