mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-18 03:13:46 +00:00
feat: 2e save character initial implementation WIP
2e is hidden behind url navigation hiding, so hoping that nobody found it yet. Note: DB migration make this commit a bit risky!
This commit is contained in:
@@ -0,0 +1,690 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Kemkas.Web.Db;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Kemkas.Web.Db.Migrations
|
||||
{
|
||||
[DbContext(typeof(ApplicationDbContext))]
|
||||
[Migration("20240214163223_AddSecondEditionModels")]
|
||||
partial class AddSecondEditionModels
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.0")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.ApplicationRole", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
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("Kemkas.Web.Db.Models.ApplicationUser", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
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<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>("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("Kemkas.Web.Db.Models.V1Felszereles", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("IsFegyver")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("Felszerelesek");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V1Karakter", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<byte>("Bolcsesseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Egeszseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Ero")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<int>("Faj")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<byte>("Intelligencia")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<bool>("IsPublic")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("Isten")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("Jellem")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Karizma")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<double?>("Kor")
|
||||
.HasColumnType("double precision");
|
||||
|
||||
b.Property<string>("Nem")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Nev")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("Osztaly")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("OwnerUserId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Pajzs")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Pancel")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("Szint")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Ugyesseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("OwnerUserId");
|
||||
|
||||
b.ToTable("Karakterek");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V1KarakterKepzettseg", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("IsTolvajKepzettseg")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<int>("Kepzettseg")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("KarakterKepzettsegek");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V1Szintlepes", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("FegyverSpecializacio")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("HpRoll")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<byte>("KarakterSzint")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte?>("TulajdonsagNoveles")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("Szintlepesek");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Felszereles", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("IsFegyver")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("TargyId")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("Felszerelesek2E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Karakter", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<byte>("Bolcsesseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Egeszseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Ero")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<int>("Faj")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<byte>("Intelligencia")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<bool>("IsPublic")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("Isten")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("Jellem")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Karizma")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<double?>("Kor")
|
||||
.HasColumnType("double precision");
|
||||
|
||||
b.Property<string>("Nem")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Nev")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int?>("OwnerUserId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Pajzs")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Pancel")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("Szint")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Ugyesseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("OwnerUserId");
|
||||
|
||||
b.ToTable("Karakterek2E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2KarakterKepzettseg", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("IsTolvajKepzettseg")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<int>("Kepzettseg")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("KarakterKepzettsegek2E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Szintlepes", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("FegyverSpecializacio")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("HpRoll")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<byte>("KarakterSzint")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<int>("Osztaly")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("TolvajExtraKepzettseg")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<byte?>("TulajdonsagNoveles")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("Szintlepesek2E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.DataProtectionKey", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("FriendlyName")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Xml")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DataProtectionKeys");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", 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<int>("RoleId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
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("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("ClaimType")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ClaimValue")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("AspNetUserClaims", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
|
||||
{
|
||||
b.Property<string>("LoginProvider")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("character varying(128)");
|
||||
|
||||
b.Property<string>("ProviderKey")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("character varying(128)");
|
||||
|
||||
b.Property<string>("ProviderDisplayName")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
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("integer");
|
||||
|
||||
b.Property<int>("RoleId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
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("integer");
|
||||
|
||||
b.Property<string>("LoginProvider")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("character varying(128)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("character varying(128)");
|
||||
|
||||
b.Property<string>("Value")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("UserId", "LoginProvider", "Name");
|
||||
|
||||
b.ToTable("AspNetUserTokens", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V1Felszereles", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V1Karakter", "Karakter")
|
||||
.WithMany("Felszereles")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V1Karakter", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationUser", "OwnerUser")
|
||||
.WithMany()
|
||||
.HasForeignKey("OwnerUserId");
|
||||
|
||||
b.Navigation("OwnerUser");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V1KarakterKepzettseg", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V1Karakter", "Karakter")
|
||||
.WithMany("KarakterKepzettsegek")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V1Szintlepes", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V1Karakter", "Karakter")
|
||||
.WithMany("Szintlepesek")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Felszereles", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V2Karakter", "Karakter")
|
||||
.WithMany("Felszereles")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Karakter", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationUser", "OwnerUser")
|
||||
.WithMany()
|
||||
.HasForeignKey("OwnerUserId");
|
||||
|
||||
b.Navigation("OwnerUser");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2KarakterKepzettseg", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V2Karakter", "Karakter")
|
||||
.WithMany("KarakterKepzettsegek")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Szintlepes", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V2Karakter", "Karakter")
|
||||
.WithMany("Szintlepesek")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationRole", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("RoleId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationUser", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationUser", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationRole", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("RoleId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationUser", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationUser", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V1Karakter", b =>
|
||||
{
|
||||
b.Navigation("Felszereles");
|
||||
|
||||
b.Navigation("KarakterKepzettsegek");
|
||||
|
||||
b.Navigation("Szintlepesek");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Karakter", b =>
|
||||
{
|
||||
b.Navigation("Felszereles");
|
||||
|
||||
b.Navigation("KarakterKepzettsegek");
|
||||
|
||||
b.Navigation("Szintlepesek");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Kemkas.Web.Db.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddSecondEditionModels : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Karakterek2E",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
IsPublic = table.Column<bool>(type: "boolean", nullable: false),
|
||||
OwnerUserId = table.Column<int>(type: "integer", nullable: true),
|
||||
Nev = table.Column<string>(type: "text", nullable: false),
|
||||
Nem = table.Column<string>(type: "text", nullable: true),
|
||||
Kor = table.Column<double>(type: "double precision", nullable: true),
|
||||
Jellem = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Isten = table.Column<string>(type: "text", nullable: true),
|
||||
Faj = table.Column<int>(type: "integer", nullable: false),
|
||||
Ero = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Ugyesseg = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Egeszseg = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Intelligencia = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Bolcsesseg = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Karizma = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Szint = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Pancel = table.Column<string>(type: "text", nullable: true),
|
||||
Pajzs = table.Column<string>(type: "text", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Karakterek2E", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Karakterek2E_AspNetUsers_OwnerUserId",
|
||||
column: x => x.OwnerUserId,
|
||||
principalTable: "AspNetUsers",
|
||||
principalColumn: "Id");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Felszerelesek2E",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
KarakterId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
TargyId = table.Column<string>(type: "text", nullable: false),
|
||||
IsFegyver = table.Column<bool>(type: "boolean", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Felszerelesek2E", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Felszerelesek2E_Karakterek2E_KarakterId",
|
||||
column: x => x.KarakterId,
|
||||
principalTable: "Karakterek2E",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "KarakterKepzettsegek2E",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
KarakterId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Kepzettseg = table.Column<int>(type: "integer", nullable: false),
|
||||
IsTolvajKepzettseg = table.Column<bool>(type: "boolean", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_KarakterKepzettsegek2E", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_KarakterKepzettsegek2E_Karakterek2E_KarakterId",
|
||||
column: x => x.KarakterId,
|
||||
principalTable: "Karakterek2E",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Szintlepesek2E",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
KarakterId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
KarakterSzint = table.Column<byte>(type: "smallint", nullable: false),
|
||||
Osztaly = table.Column<int>(type: "integer", nullable: false),
|
||||
HpRoll = table.Column<byte>(type: "smallint", nullable: false),
|
||||
TulajdonsagNoveles = table.Column<byte>(type: "smallint", nullable: true),
|
||||
FegyverSpecializacio = table.Column<string>(type: "text", nullable: true),
|
||||
TolvajExtraKepzettseg = table.Column<int>(type: "integer", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Szintlepesek2E", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Szintlepesek2E_Karakterek2E_KarakterId",
|
||||
column: x => x.KarakterId,
|
||||
principalTable: "Karakterek2E",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Felszerelesek2E_KarakterId",
|
||||
table: "Felszerelesek2E",
|
||||
column: "KarakterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Karakterek2E_OwnerUserId",
|
||||
table: "Karakterek2E",
|
||||
column: "OwnerUserId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_KarakterKepzettsegek2E_KarakterId",
|
||||
table: "KarakterKepzettsegek2E",
|
||||
column: "KarakterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Szintlepesek2E_KarakterId",
|
||||
table: "Szintlepesek2E",
|
||||
column: "KarakterId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Felszerelesek2E");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "KarakterKepzettsegek2E");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Szintlepesek2E");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Karakterek2E");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -259,6 +259,150 @@ namespace Kemkas.Web.Db.Migrations
|
||||
b.ToTable("Szintlepesek");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Felszereles", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("IsFegyver")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("TargyId")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("Felszerelesek2E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Karakter", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<byte>("Bolcsesseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Egeszseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Ero")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<int>("Faj")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<byte>("Intelligencia")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<bool>("IsPublic")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("Isten")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("Jellem")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Karizma")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<double?>("Kor")
|
||||
.HasColumnType("double precision");
|
||||
|
||||
b.Property<string>("Nem")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Nev")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int?>("OwnerUserId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Pajzs")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Pancel")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("Szint")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("Ugyesseg")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("OwnerUserId");
|
||||
|
||||
b.ToTable("Karakterek2E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2KarakterKepzettseg", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("IsTolvajKepzettseg")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<int>("Kepzettseg")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("KarakterKepzettsegek2E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Szintlepes", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("FegyverSpecializacio")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("HpRoll")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<Guid>("KarakterId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<byte>("KarakterSzint")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<int>("Osztaly")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("TolvajExtraKepzettseg")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<byte?>("TulajdonsagNoveles")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("KarakterId");
|
||||
|
||||
b.ToTable("Szintlepesek2E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.DataProtectionKey", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -427,6 +571,48 @@ namespace Kemkas.Web.Db.Migrations
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Felszereles", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V2Karakter", "Karakter")
|
||||
.WithMany("Felszereles")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Karakter", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationUser", "OwnerUser")
|
||||
.WithMany()
|
||||
.HasForeignKey("OwnerUserId");
|
||||
|
||||
b.Navigation("OwnerUser");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2KarakterKepzettseg", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V2Karakter", "Karakter")
|
||||
.WithMany("KarakterKepzettsegek")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Szintlepes", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.V2Karakter", "Karakter")
|
||||
.WithMany("Szintlepesek")
|
||||
.HasForeignKey("KarakterId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Karakter");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
|
||||
{
|
||||
b.HasOne("Kemkas.Web.Db.Models.ApplicationRole", null)
|
||||
@@ -486,6 +672,15 @@ namespace Kemkas.Web.Db.Migrations
|
||||
|
||||
b.Navigation("Szintlepesek");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kemkas.Web.Db.Models.V2Karakter", b =>
|
||||
{
|
||||
b.Navigation("Felszereles");
|
||||
|
||||
b.Navigation("KarakterKepzettsegek");
|
||||
|
||||
b.Navigation("Szintlepesek");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user