// using System; using MareSynchronosServer.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace MareSynchronosServer.Migrations { [DbContext(typeof(MareDbContext))] [Migration("20220629184351_AddBannedAdminAndReceivingMessages")] partial class AddBannedAdminAndReceivingMessages { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.6") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); modelBuilder.Entity("MareSynchronosServer.Models.Banned", b => { b.Property("CharacterIdentification") .HasColumnType("nvarchar(450)"); b.HasKey("CharacterIdentification"); b.ToTable("BannedUsers", (string)null); }); modelBuilder.Entity("MareSynchronosServer.Models.CharacterData", b => { b.Property("UserId") .HasColumnType("nvarchar(450)"); b.Property("JobId") .HasColumnType("int"); b.Property("CharacterCache") .HasColumnType("nvarchar(max)"); b.Property("Hash") .HasColumnType("nvarchar(max)"); b.HasKey("UserId", "JobId"); b.ToTable("CharacterData", (string)null); }); modelBuilder.Entity("MareSynchronosServer.Models.ClientPair", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("AllowReceivingMessages") .HasColumnType("bit"); b.Property("IsPaused") .HasColumnType("bit"); b.Property("OtherUserUID") .HasColumnType("nvarchar(450)"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("rowversion"); b.Property("UserUID") .HasColumnType("nvarchar(450)"); b.HasKey("Id"); b.HasIndex("OtherUserUID"); b.HasIndex("UserUID"); b.ToTable("ClientPairs", (string)null); }); modelBuilder.Entity("MareSynchronosServer.Models.FileCache", b => { b.Property("Hash") .HasColumnType("nvarchar(450)"); b.Property("LastAccessTime") .HasColumnType("datetime2"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("rowversion"); b.Property("Uploaded") .HasColumnType("bit"); b.Property("UploaderUID") .HasColumnType("nvarchar(450)"); b.HasKey("Hash"); b.HasIndex("UploaderUID"); b.ToTable("FileCaches", (string)null); }); modelBuilder.Entity("MareSynchronosServer.Models.ForbiddenUploadEntry", b => { b.Property("Hash") .HasColumnType("nvarchar(450)"); b.Property("ForbiddenBy") .HasColumnType("nvarchar(max)"); b.HasKey("Hash"); b.ToTable("ForbiddenUploadEntries", (string)null); }); modelBuilder.Entity("MareSynchronosServer.Models.User", b => { b.Property("UID") .HasColumnType("nvarchar(450)"); b.Property("CharacterIdentification") .HasColumnType("nvarchar(max)"); b.Property("IsAdmin") .HasColumnType("bit"); b.Property("SecretKey") .HasColumnType("nvarchar(max)"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("rowversion"); b.HasKey("UID"); b.ToTable("Users", (string)null); }); modelBuilder.Entity("MareSynchronosServer.Models.ClientPair", b => { b.HasOne("MareSynchronosServer.Models.User", "OtherUser") .WithMany() .HasForeignKey("OtherUserUID"); b.HasOne("MareSynchronosServer.Models.User", "User") .WithMany() .HasForeignKey("UserUID"); b.Navigation("OtherUser"); b.Navigation("User"); }); modelBuilder.Entity("MareSynchronosServer.Models.FileCache", b => { b.HasOne("MareSynchronosServer.Models.User", "Uploader") .WithMany() .HasForeignKey("UploaderUID"); b.Navigation("Uploader"); }); #pragma warning restore 612, 618 } } }