| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077 |
- // <auto-generated />
- using System;
- using Diligent.WebAPI.Data;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Metadata;
- using Microsoft.EntityFrameworkCore.Migrations;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
- #nullable disable
-
- namespace Diligent.WebAPI.Data.Migrations
- {
- [DbContext(typeof(DatabaseContext))]
- [Migration("20230112133613_ApplicantUpdate")]
- partial class ApplicantUpdate
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "6.0.10")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
-
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
-
- modelBuilder.Entity("AdApplicant", b =>
- {
- b.Property<int>("AdsId")
- .HasColumnType("int");
-
- b.Property<int>("ApplicantsApplicantId")
- .HasColumnType("int");
-
- b.HasKey("AdsId", "ApplicantsApplicantId");
-
- b.HasIndex("ApplicantsApplicantId");
-
- b.ToTable("AdApplicant");
- });
-
- modelBuilder.Entity("AdTechnology", b =>
- {
- b.Property<int>("AdsId")
- .HasColumnType("int");
-
- b.Property<int>("TechnologiesTechnologyId")
- .HasColumnType("int");
-
- b.HasKey("AdsId", "TechnologiesTechnologyId");
-
- b.HasIndex("TechnologiesTechnologyId");
-
- b.ToTable("AdTechnology");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Ad", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<DateTime>("CreatedAt")
- .HasColumnType("datetime2");
-
- b.Property<string>("EmploymentType")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<DateTime>("ExpiredAt")
- .HasColumnType("datetime2");
-
- b.Property<string>("KeyResponsibilities")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<int>("MinimumExperience")
- .HasColumnType("int");
-
- b.Property<string>("Offer")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Requirements")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Title")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("WorkHour")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("Ads");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Applicant", b =>
- {
- b.Property<int>("ApplicantId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ApplicantId"), 1L, 1);
-
- b.Property<string>("ApplicationChannel")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("BitBucketLink")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("CV")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<DateTime>("DateOfApplication")
- .HasColumnType("datetime2");
-
- b.Property<string>("Email")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("nvarchar(128)");
-
- b.Property<int>("Experience")
- .HasColumnType("int");
-
- b.Property<string>("FirstName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("nvarchar(128)");
-
- b.Property<string>("Gender")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("GithubLink")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("LastName")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("nvarchar(128)");
-
- b.Property<string>("LinkedlnLink")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("PhoneNumber")
- .IsRequired()
- .HasMaxLength(30)
- .HasColumnType("nvarchar(30)");
-
- b.Property<string>("Position")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("nvarchar(128)");
-
- b.Property<string>("ProfessionalQualification")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("nvarchar(128)");
-
- b.Property<string>("TypeOfEmployment")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("ApplicantId");
-
- b.ToTable("Applicants");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.AppRole", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<string>("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Name")
- .HasMaxLength(256)
- .HasColumnType("nvarchar(256)");
-
- b.Property<string>("NormalizedName")
- .HasMaxLength(256)
- .HasColumnType("nvarchar(256)");
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName")
- .IsUnique()
- .HasDatabaseName("RoleNameIndex")
- .HasFilter("[NormalizedName] IS NOT NULL");
-
- b.ToTable("AspNetRoles", (string)null);
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Comment", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<int>("ApplicantId")
- .HasColumnType("int");
-
- b.Property<string>("Content")
- .IsRequired()
- .HasMaxLength(1024)
- .HasColumnType("nvarchar(1024)");
-
- b.Property<DateTime>("DateOfSending")
- .HasColumnType("datetime2");
-
- b.Property<int>("UserId")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("ApplicantId");
-
- b.HasIndex("UserId");
-
- b.ToTable("Comments");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsuranceCompany", b =>
- {
- b.Property<long>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
-
- b.Property<string>("City")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Country")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<DateTime>("CreatedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<DateTime?>("DeletedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<string>("Fax")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("LegalAddress")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("LegalEmail")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Name")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("PhoneNumber")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("PostalCode")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<DateTime?>("UpdatedAtUtc")
- .HasColumnType("datetime2");
-
- b.HasKey("Id");
-
- b.ToTable("InsuranceCompanies");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
- {
- b.Property<long>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
-
- b.Property<DateTime>("CreatedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<DateTime?>("DeletedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<DateTime>("EndDate")
- .HasColumnType("datetime2");
-
- b.Property<long>("InsurerId")
- .HasColumnType("bigint");
-
- b.Property<decimal>("Premium")
- .HasColumnType("decimal(18,2)");
-
- b.Property<DateTime>("StartDate")
- .HasColumnType("datetime2");
-
- b.Property<string>("Type")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<DateTime?>("UpdatedAtUtc")
- .HasColumnType("datetime2");
-
- b.HasKey("Id");
-
- b.HasIndex("InsurerId");
-
- b.ToTable("InsurancePolicies");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
- {
- b.Property<long>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
-
- b.Property<string>("Address")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("City")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Country")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<DateTime>("CreatedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<DateTime>("DateOfBirth")
- .HasColumnType("datetime2");
-
- b.Property<DateTime?>("DeletedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<string>("Email")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("FirstName")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<long>("InsuranceCompanyId")
- .HasColumnType("bigint");
-
- b.Property<string>("LastName")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("PhoneNumber")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("PostalCode")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<DateTime?>("UpdatedAtUtc")
- .HasColumnType("datetime2");
-
- b.HasKey("Id");
-
- b.HasIndex("InsuranceCompanyId");
-
- b.ToTable("Insurers");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Pattern", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<DateTime>("CreatedAt")
- .HasColumnType("datetime2");
-
- b.Property<string>("Message")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<int>("SelectionLevelId")
- .HasColumnType("int");
-
- b.Property<string>("Title")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.HasIndex("SelectionLevelId");
-
- b.ToTable("Patterns");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<DateTime>("CreationDate")
- .HasColumnType("datetime2");
-
- b.Property<DateTime>("ExpiryDate")
- .HasColumnType("datetime2");
-
- b.Property<bool>("Invalidated")
- .HasColumnType("bit");
-
- b.Property<string>("JwtId")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Token")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<bool>("Used")
- .HasColumnType("bit");
-
- b.Property<int>("UserId")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("RefreshTokens");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionLevel", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<string>("Name")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("SelectionLevels");
-
- b.HasData(
- new
- {
- Id = 1,
- Name = "HR intervju"
- },
- new
- {
- Id = 2,
- Name = "Screening test"
- },
- new
- {
- Id = 3,
- Name = "Tehnicki intervju"
- },
- new
- {
- Id = 4,
- Name = "Konacna odluka"
- });
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionProcess", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<int>("ApplicantId")
- .HasColumnType("int");
-
- b.Property<string>("Comment")
- .HasColumnType("nvarchar(max)");
-
- b.Property<DateTime?>("Date")
- .HasColumnType("datetime2");
-
- b.Property<string>("Link")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Name")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<int?>("SchedulerId")
- .HasColumnType("int");
-
- b.Property<int>("SelectionLevelId")
- .HasColumnType("int");
-
- b.Property<string>("Status")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.HasIndex("ApplicantId");
-
- b.HasIndex("SchedulerId");
-
- b.HasIndex("SelectionLevelId");
-
- b.ToTable("SelectionProcesses");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
- {
- b.Property<int>("TechnologyId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TechnologyId"), 1L, 1);
-
- b.Property<string>("Name")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("nvarchar(128)");
-
- b.Property<string>("TechnologyType")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("TechnologyId");
-
- b.ToTable("Technologies");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.TechnologyApplicant", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<int>("ApplicantId")
- .HasColumnType("int");
-
- b.Property<int>("TechnologyId")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("ApplicantId");
-
- b.HasIndex("TechnologyId");
-
- b.ToTable("ApplicantTechnologies");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.User", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<int>("AccessFailedCount")
- .HasColumnType("int");
-
- b.Property<string>("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("Email")
- .HasMaxLength(256)
- .HasColumnType("nvarchar(256)");
-
- b.Property<bool>("EmailConfirmed")
- .HasColumnType("bit");
-
- b.Property<string>("FirstName")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<bool?>("IsEnabled")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(true);
-
- b.Property<string>("LastName")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("LinkedIn")
- .HasColumnType("nvarchar(max)");
-
- b.Property<bool>("LockoutEnabled")
- .HasColumnType("bit");
-
- b.Property<DateTimeOffset?>("LockoutEnd")
- .HasColumnType("datetimeoffset");
-
- b.Property<string>("NormalizedEmail")
- .HasMaxLength(256)
- .HasColumnType("nvarchar(256)");
-
- b.Property<string>("NormalizedUserName")
- .HasMaxLength(256)
- .HasColumnType("nvarchar(256)");
-
- b.Property<string>("PasswordHash")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("PhoneNumber")
- .HasColumnType("nvarchar(max)");
-
- b.Property<bool>("PhoneNumberConfirmed")
- .HasColumnType("bit");
-
- b.Property<string>("Position")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("SecurityStamp")
- .HasColumnType("nvarchar(max)");
-
- b.Property<bool>("TwoFactorEnabled")
- .HasColumnType("bit");
-
- b.Property<string>("UserName")
- .HasMaxLength(256)
- .HasColumnType("nvarchar(256)");
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedEmail")
- .HasDatabaseName("EmailIndex");
-
- b.HasIndex("NormalizedUserName")
- .IsUnique()
- .HasDatabaseName("UserNameIndex")
- .HasFilter("[NormalizedUserName] IS NOT NULL");
-
- b.ToTable("AspNetUsers", (string)null);
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookDefinition", b =>
- {
- b.Property<long>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
-
- b.Property<DateTime>("CreatedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<DateTime?>("DeletedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<string>("Description")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("DisplayName")
- .IsRequired()
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
-
- b.Property<string>("Name")
- .IsRequired()
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
-
- b.Property<DateTime?>("UpdatedAtUtc")
- .HasColumnType("datetime2");
-
- b.HasKey("Id");
-
- b.ToTable("WebhookDefinitions");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
- {
- b.Property<long>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
-
- b.Property<DateTime>("CreatedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<DateTime?>("DeletedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<bool>("IsActive")
- .HasColumnType("bit");
-
- b.Property<DateTime?>("UpdatedAtUtc")
- .HasColumnType("datetime2");
-
- b.Property<long>("WebhookDefinitionId")
- .HasColumnType("bigint");
-
- b.Property<string>("WebhookURL")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.HasIndex("WebhookDefinitionId");
-
- b.ToTable("WebhookSubscriptions");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<string>("ClaimType")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("ClaimValue")
- .HasColumnType("nvarchar(max)");
-
- b.Property<int>("RoleId")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AspNetRoleClaims", (string)null);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
-
- b.Property<string>("ClaimType")
- .HasColumnType("nvarchar(max)");
-
- b.Property<string>("ClaimValue")
- .HasColumnType("nvarchar(max)");
-
- b.Property<int>("UserId")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("AspNetUserClaims", (string)null);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
- {
- b.Property<string>("LoginProvider")
- .HasColumnType("nvarchar(450)");
-
- b.Property<string>("ProviderKey")
- .HasColumnType("nvarchar(450)");
-
- b.Property<string>("ProviderDisplayName")
- .HasColumnType("nvarchar(max)");
-
- b.Property<int>("UserId")
- .HasColumnType("int");
-
- b.HasKey("LoginProvider", "ProviderKey");
-
- b.HasIndex("UserId");
-
- b.ToTable("AspNetUserLogins", (string)null);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
- {
- b.Property<int>("UserId")
- .HasColumnType("int");
-
- b.Property<int>("RoleId")
- .HasColumnType("int");
-
- b.HasKey("UserId", "RoleId");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AspNetUserRoles", (string)null);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
- {
- b.Property<int>("UserId")
- .HasColumnType("int");
-
- b.Property<string>("LoginProvider")
- .HasColumnType("nvarchar(450)");
-
- b.Property<string>("Name")
- .HasColumnType("nvarchar(450)");
-
- b.Property<string>("Value")
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("UserId", "LoginProvider", "Name");
-
- b.ToTable("AspNetUserTokens", (string)null);
- });
-
- modelBuilder.Entity("AdApplicant", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.Ad", null)
- .WithMany()
- .HasForeignKey("AdsId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", null)
- .WithMany()
- .HasForeignKey("ApplicantsApplicantId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("AdTechnology", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.Ad", null)
- .WithMany()
- .HasForeignKey("AdsId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("Diligent.WebAPI.Data.Entities.Technology", null)
- .WithMany()
- .HasForeignKey("TechnologiesTechnologyId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Comment", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
- .WithMany("Comments")
- .HasForeignKey("ApplicantId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
- .WithMany("Comments")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Applicant");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.Insurer", "Insurer")
- .WithMany()
- .HasForeignKey("InsurerId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Insurer");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.InsuranceCompany", "InsuranceCompany")
- .WithMany()
- .HasForeignKey("InsuranceCompanyId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("InsuranceCompany");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Pattern", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.SelectionLevel", "SelectionLevel")
- .WithMany()
- .HasForeignKey("SelectionLevelId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("SelectionLevel");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionProcess", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
- .WithMany("SelectionProcesses")
- .HasForeignKey("ApplicantId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("Diligent.WebAPI.Data.Entities.User", "Scheduler")
- .WithMany("Processes")
- .HasForeignKey("SchedulerId")
- .OnDelete(DeleteBehavior.SetNull);
-
- b.HasOne("Diligent.WebAPI.Data.Entities.SelectionLevel", "SelectionLevel")
- .WithMany("SelectionProcesses")
- .HasForeignKey("SelectionLevelId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Applicant");
-
- b.Navigation("Scheduler");
-
- b.Navigation("SelectionLevel");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.TechnologyApplicant", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
- .WithMany("TechnologyApplicants")
- .HasForeignKey("ApplicantId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("Diligent.WebAPI.Data.Entities.Technology", "Technology")
- .WithMany("TechnologyApplicants")
- .HasForeignKey("TechnologyId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Applicant");
-
- b.Navigation("Technology");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.WebhookDefinition", "WebhookDefinition")
- .WithMany()
- .HasForeignKey("WebhookDefinitionId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("WebhookDefinition");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
- {
- b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Applicant", b =>
- {
- b.Navigation("Comments");
-
- b.Navigation("SelectionProcesses");
-
- b.Navigation("TechnologyApplicants");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionLevel", b =>
- {
- b.Navigation("SelectionProcesses");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
- {
- b.Navigation("TechnologyApplicants");
- });
-
- modelBuilder.Entity("Diligent.WebAPI.Data.Entities.User", b =>
- {
- b.Navigation("Comments");
-
- b.Navigation("Processes");
- });
- #pragma warning restore 612, 618
- }
- }
- }
|