// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using ZpcBulletinBoard.Data; #nullable disable namespace ZpcBulletinBoard.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20240309085239_2")] partial class _2 { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.2") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ClaimType") .HasColumnType("longtext"); b.Property("ClaimValue") .HasColumnType("longtext"); b.Property("RoleId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ClaimType") .HasColumnType("longtext"); b.Property("ClaimValue") .HasColumnType("longtext"); b.Property("UserId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.Property("LoginProvider") .HasColumnType("varchar(255)"); b.Property("ProviderKey") .HasColumnType("varchar(255)"); b.Property("ProviderDisplayName") .HasColumnType("longtext"); b.Property("UserId") .HasColumnType("int"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") .HasColumnType("int"); b.Property("RoleId") .HasColumnType("int"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") .HasColumnType("int"); b.Property("LoginProvider") .HasColumnType("varchar(255)"); b.Property("Name") .HasColumnType("varchar(255)"); b.Property("Value") .HasColumnType("longtext"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens", (string)null); }); modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoard", b => { b.Property("IdBulletinBoard") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Guid") .HasColumnType("char(36)"); b.Property("Name") .IsRequired() .HasColumnType("longtext"); b.Property("Ratio") .HasColumnType("int"); b.HasKey("IdBulletinBoard"); b.ToTable("BulletinBoards"); }); modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", b => { b.Property("IdBulletinBoardPage") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ExternalLink") .HasColumnType("longtext"); b.Property("Name") .IsRequired() .HasColumnType("longtext"); b.Property("Ratio") .HasColumnType("int"); b.Property("Type") .HasColumnType("int"); b.HasKey("IdBulletinBoardPage"); b.ToTable("BulletinBoardPage"); }); modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPageLink", b => { b.Property("IdLink") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Duration") .HasColumnType("int"); b.Property("IdBulletinBoardFk") .HasColumnType("int"); b.Property("IdBulletinBoardPageFk") .HasColumnType("int"); b.Property("Order") .HasColumnType("int"); b.HasKey("IdLink"); b.HasIndex("IdBulletinBoardFk"); b.HasIndex("IdBulletinBoardPageFk"); b.ToTable("BulletinBoardPageLinks"); }); modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.Note", b => { b.Property("IdNote") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ColorClass") .IsRequired() .HasColumnType("longtext"); b.Property("Content") .IsRequired() .HasColumnType("longtext"); b.Property("Height") .HasColumnType("int"); b.Property("IdBulletinBoardPage") .HasColumnType("int"); b.Property("Type") .HasColumnType("int"); b.Property("Width") .HasColumnType("int"); b.Property("X") .HasColumnType("int"); b.Property("Y") .HasColumnType("int"); b.Property("Zindex") .HasColumnType("int"); b.HasKey("IdNote"); b.HasIndex("IdBulletinBoardPage"); b.ToTable("Notes"); }); modelBuilder.Entity("ZpcBulletinBoard.Models.IdentityApplicationRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Active") .HasColumnType("tinyint(1)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("longtext"); b.Property("Description") .IsRequired() .HasColumnType("longtext"); b.Property("Name") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("NormalizedName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasDatabaseName("RoleNameIndex"); b.ToTable("AspNetRoles", (string)null); }); modelBuilder.Entity("ZpcBulletinBoard.Models.IdentityApplicationUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("AccessFailedCount") .HasColumnType("int"); b.Property("Active") .HasColumnType("tinyint(1)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("longtext"); b.Property("DateCreated") .HasColumnType("datetime(6)"); b.Property("DateValidUntil") .HasColumnType("datetime(6)"); b.Property("Email") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("EmailConfirmed") .HasColumnType("tinyint(1)"); b.Property("LockoutEnabled") .HasColumnType("tinyint(1)"); b.Property("LockoutEnd") .HasColumnType("datetime(6)"); b.Property("Name") .IsRequired() .HasColumnType("longtext"); b.Property("NormalizedEmail") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("NormalizedUserName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("PasswordHash") .HasColumnType("longtext"); b.Property("PhoneNumber") .HasColumnType("longtext"); b.Property("PhoneNumberConfirmed") .HasColumnType("tinyint(1)"); b.Property("SecurityStamp") .HasColumnType("longtext"); b.Property("Surname") .IsRequired() .HasColumnType("longtext"); b.Property("TwoFactorEnabled") .HasColumnType("tinyint(1)"); b.Property("UserName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasDatabaseName("UserNameIndex"); b.ToTable("AspNetUsers", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("ZpcBulletinBoard.Models.IdentityApplicationRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.HasOne("ZpcBulletinBoard.Models.IdentityApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.HasOne("ZpcBulletinBoard.Models.IdentityApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.HasOne("ZpcBulletinBoard.Models.IdentityApplicationRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ZpcBulletinBoard.Models.IdentityApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.HasOne("ZpcBulletinBoard.Models.IdentityApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPageLink", b => { b.HasOne("ZpcBulletinBoard.Models.Editor.BulletinBoard", "BulletinBoard") .WithMany("Links") .HasForeignKey("IdBulletinBoardFk") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", "BulletinBoardPage") .WithMany("Links") .HasForeignKey("IdBulletinBoardPageFk") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("BulletinBoard"); b.Navigation("BulletinBoardPage"); }); modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.Note", b => { b.HasOne("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", "BulletinBoardPage") .WithMany() .HasForeignKey("IdBulletinBoardPage") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("BulletinBoardPage"); }); modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoard", b => { b.Navigation("Links"); }); modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", b => { b.Navigation("Links"); }); #pragma warning restore 612, 618 } } }