From 9c860adb90a6b8e25ad0b002884eeb56b0e05800 Mon Sep 17 00:00:00 2001
From: Garrigue Benjamin <93991961+Wyveth@users.noreply.github.com>
Date: Tue, 12 Dec 2023 01:33:05 +0100
Subject: [PATCH] Setting up a GUID for the tables.
---
.../Abstract/Identity.cs | 2 +
.../Interface/ITIdentity.cs | 2 +
.../20231211221542_AddGuid.Designer.cs | 1958 +++++++++++++++++
.../Migrations/20231211221542_AddGuid.cs | 251 +++
.../ScrapingContextModelSnapshot.cs | 63 +
.../Repository/Class/AttaqueRepository.cs | 5 +
.../Repository/Class/DataInfoRepository.cs | 26 +-
.../Repository/Class/PokemonRepository.cs | 38 +-
.../Repository/GenericClass/Repository.cs | 26 +-
.../Settings/appSettings.json | 2 +-
.../Controllers/Abstract/GenericController.cs | 22 +
.../Controllers/MigrationController.cs | 86 +
.../appsettings.Development.json | 2 +-
WepApiScrapingData/appsettings.json | 2 +-
14 files changed, 2442 insertions(+), 43 deletions(-)
create mode 100644 WebApiScrapingData.Infrastructure/Migrations/20231211221542_AddGuid.Designer.cs
create mode 100644 WebApiScrapingData.Infrastructure/Migrations/20231211221542_AddGuid.cs
create mode 100644 WepApiScrapingData/Controllers/MigrationController.cs
diff --git a/WebApiScrapingData.Domain/Abstract/Identity.cs b/WebApiScrapingData.Domain/Abstract/Identity.cs
index 5671800..bba796d 100644
--- a/WebApiScrapingData.Domain/Abstract/Identity.cs
+++ b/WebApiScrapingData.Domain/Abstract/Identity.cs
@@ -12,6 +12,8 @@ public abstract class Identity : ITIdentity
[DataMember(Name = DataMember.Id)]
public long Id { get; set; }
+ public Guid Guid { get; set; }
+
public string? UserCreation { get; set; }
public DateTime DateCreation { get; set; }
diff --git a/WebApiScrapingData.Domain/Interface/ITIdentity.cs b/WebApiScrapingData.Domain/Interface/ITIdentity.cs
index ec809ba..6e57a1b 100644
--- a/WebApiScrapingData.Domain/Interface/ITIdentity.cs
+++ b/WebApiScrapingData.Domain/Interface/ITIdentity.cs
@@ -9,6 +9,8 @@ namespace WebApiScrapingData.Domain.Interface
public interface ITIdentity
{
public long Id { get; set; }
+
+ public Guid Guid { get; set; }
public string? UserCreation { get; set; }
diff --git a/WebApiScrapingData.Infrastructure/Migrations/20231211221542_AddGuid.Designer.cs b/WebApiScrapingData.Infrastructure/Migrations/20231211221542_AddGuid.Designer.cs
new file mode 100644
index 0000000..ad359a1
--- /dev/null
+++ b/WebApiScrapingData.Infrastructure/Migrations/20231211221542_AddGuid.Designer.cs
@@ -0,0 +1,1958 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using WebApiScrapingData.Infrastructure.Data;
+
+#nullable disable
+
+namespace WebApiScrapingData.Infrastructure.Migrations
+{
+ [DbContext(typeof(ScrapingContext))]
+ [Migration("20231211221542_add-guid")]
+ partial class AddGuid
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "6.0.12")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("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("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("ClaimType")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ClaimValue")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("RoleId")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("RoleId");
+
+ b.ToTable("AspNetRoleClaims", (string)null);
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("AccessFailedCount")
+ .HasColumnType("int");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Email")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("EmailConfirmed")
+ .HasColumnType("bit");
+
+ b.Property("LockoutEnabled")
+ .HasColumnType("bit");
+
+ b.Property("LockoutEnd")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("NormalizedEmail")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("NormalizedUserName")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("PasswordHash")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PhoneNumber")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PhoneNumberConfirmed")
+ .HasColumnType("bit");
+
+ b.Property("SecurityStamp")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TwoFactorEnabled")
+ .HasColumnType("bit");
+
+ b.Property("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("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("ClaimType")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ClaimValue")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserId")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("AspNetUserClaims", (string)null);
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
+ {
+ b.Property("LoginProvider")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ProviderKey")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ProviderDisplayName")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserId")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("LoginProvider", "ProviderKey");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("AspNetUserLogins", (string)null);
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
+ {
+ b.Property("UserId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("RoleId")
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("UserId", "RoleId");
+
+ b.HasIndex("RoleId");
+
+ b.ToTable("AspNetUserRoles", (string)null);
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
+ {
+ b.Property("UserId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("LoginProvider")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("Name")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("Value")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("UserId", "LoginProvider", "Name");
+
+ b.ToTable("AspNetUserTokens", (string)null);
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Attaque", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Description_CN")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description_CO")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description_DE")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description_EN")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description_ES")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description_FR")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description_IT")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description_JP")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description_RU")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Name_CN")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_CO")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_DE")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_EN")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_ES")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_FR")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_IT")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_JP")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_RU")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PP")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Power")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Precision")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TypeAttaqueId")
+ .HasColumnType("bigint");
+
+ b.Property("TypePokId")
+ .HasColumnType("bigint");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TypeAttaqueId");
+
+ b.HasIndex("TypePokId");
+
+ b.ToTable("Attaques");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.DataInfo", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("Category")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("DescriptionTalent")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DescriptionVx")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DescriptionVy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DisplayName")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Evolutions")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Name")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("NextUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Size")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Talent")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Types")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Weakness")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Weight")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("WhenEvolution")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("DataInfos");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Game", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Name_CN")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_CO")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_DE")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_EN")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_ES")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_FR")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_IT")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_JP")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name_RU")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Games");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Pokemon", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("BasicHappiness")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CaptureRate")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("EggMoves")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("GameId")
+ .HasColumnType("bigint");
+
+ b.Property("Generation")
+ .HasColumnType("int");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Id_CN")
+ .HasColumnType("bigint");
+
+ b.Property("Id_CO")
+ .HasColumnType("bigint");
+
+ b.Property("Id_DE")
+ .HasColumnType("bigint");
+
+ b.Property("Id_EN")
+ .HasColumnType("bigint");
+
+ b.Property("Id_ES")
+ .HasColumnType("bigint");
+
+ b.Property("Id_FR")
+ .HasColumnType("bigint");
+
+ b.Property("Id_IT")
+ .HasColumnType("bigint");
+
+ b.Property("Id_JP")
+ .HasColumnType("bigint");
+
+ b.Property("Id_RU")
+ .HasColumnType("bigint");
+
+ b.Property("Number")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PathImg")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PathSound")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PathSprite")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("StatAttaque")
+ .HasColumnType("int");
+
+ b.Property("StatAttaqueSpe")
+ .HasColumnType("int");
+
+ b.Property("StatDefense")
+ .HasColumnType("int");
+
+ b.Property("StatDefenseSpe")
+ .HasColumnType("int");
+
+ b.Property("StatPv")
+ .HasColumnType("int");
+
+ b.Property("StatTotal")
+ .HasColumnType("int");
+
+ b.Property("StatVitesse")
+ .HasColumnType("int");
+
+ b.Property("TypeEvolution")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UrlImg")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UrlSound")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UrlSprite")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("Id_CN");
+
+ b.HasIndex("Id_CO");
+
+ b.HasIndex("Id_DE");
+
+ b.HasIndex("Id_EN");
+
+ b.HasIndex("Id_ES");
+
+ b.HasIndex("Id_FR");
+
+ b.HasIndex("Id_IT");
+
+ b.HasIndex("Id_JP");
+
+ b.HasIndex("Id_RU");
+
+ b.ToTable("Pokemons");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Pokemon_Attaque", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("AttaqueId")
+ .HasColumnType("bigint");
+
+ b.Property("CTCS")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Level")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PokemonId")
+ .HasColumnType("bigint");
+
+ b.Property("TypeLearn")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AttaqueId");
+
+ b.HasIndex("PokemonId");
+
+ b.ToTable("Pokemon_Attaque");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Pokemon_Talent", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("IsHidden")
+ .HasColumnType("bit");
+
+ b.Property("PokemonId")
+ .HasColumnType("bigint");
+
+ b.Property("TalentId")
+ .HasColumnType("bigint");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("PokemonId");
+
+ b.HasIndex("TalentId");
+
+ b.ToTable("Pokemon_Talent");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Pokemon_TypePok", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("PokemonId")
+ .HasColumnType("bigint");
+
+ b.Property("TypePokId")
+ .HasColumnType("bigint");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("PokemonId");
+
+ b.HasIndex("TypePokId");
+
+ b.ToTable("Pokemon_TypePok");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Pokemon_Weakness", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("PokemonId")
+ .HasColumnType("bigint");
+
+ b.Property("TypePokId")
+ .HasColumnType("bigint");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("PokemonId");
+
+ b.HasIndex("TypePokId");
+
+ b.ToTable("Pokemon_Weakness");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Quizz.Answer", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("IsCorrect")
+ .HasColumnType("bit");
+
+ b.Property("IsSelected")
+ .HasColumnType("bit");
+
+ b.Property("Libelle")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Order")
+ .HasColumnType("int");
+
+ b.Property("Type")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Answers");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Quizz.Difficulty", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("Code")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Libelle_CN")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Libelle_CO")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Libelle_DE")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Libelle_EN")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Libelle_ES")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Libelle_FR")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Libelle_IT")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Libelle_JP")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Libelle_RU")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Difficulties");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Quizz.Question", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("DataObjectID")
+ .HasColumnType("int");
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Done")
+ .HasColumnType("bit");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Order")
+ .HasColumnType("int");
+
+ b.Property("QuestionTypeId")
+ .HasColumnType("bigint");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("QuestionTypeId");
+
+ b.ToTable("Questions");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Quizz.Question_Answer", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("AnswerId")
+ .HasColumnType("bigint");
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("QuestionId")
+ .HasColumnType("bigint");
+
+ b.Property("UserCreation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserModification")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("versionModification")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AnswerId");
+
+ b.HasIndex("QuestionId");
+
+ b.ToTable("Question_Answer");
+ });
+
+ modelBuilder.Entity("WebApiScrapingData.Domain.Class.Quizz.QuestionAnswer", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
+
+ b.Property("DateCreation")
+ .HasColumnType("datetime2");
+
+ b.Property("DateModification")
+ .HasColumnType("datetime2");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("QuestionId")
+ .HasColumnType("bigint");
+
+ b.Property