dotnet/space-translate/SpaceTranslate/Migrations/SpaceTranslateDbModelSnapshot.cs [15:104]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "6.0.0"); modelBuilder.Entity("SpaceTranslate.Database.Organization", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ClientId") .IsRequired() .HasColumnType("TEXT"); b.Property("ClientSecret") .IsRequired() .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("TEXT"); b.Property("ServerUrl") .IsRequired() .HasColumnType("TEXT"); b.Property("SigningKey") .IsRequired() .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex(new[] { "ClientId" }, "IX_ClientId"); b.HasIndex(new[] { "ServerUrl" }, "IX_ServerUrl"); b.ToTable("Organizations"); }); modelBuilder.Entity("SpaceTranslate.Database.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Created") .HasColumnType("TEXT"); b.Property("OrganizationId") .HasColumnType("INTEGER"); b.Property("RefreshToken") .HasColumnType("TEXT"); b.Property("Scope") .HasMaxLength(2147483647) .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("OrganizationId"); b.ToTable("Users"); }); modelBuilder.Entity("SpaceTranslate.Database.User", b => { b.HasOne("SpaceTranslate.Database.Organization", "Organization") .WithMany("Users") .HasForeignKey("OrganizationId") .OnDelete(DeleteBehavior.ClientCascade) .IsRequired(); b.Navigation("Organization"); }); modelBuilder.Entity("SpaceTranslate.Database.Organization", b => { b.Navigation("Users"); }); #pragma warning restore 612, 618 } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dotnet/space-translate/SpaceTranslate/Migrations/20220316152050_Initial.Designer.cs [17:106]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "6.0.0"); modelBuilder.Entity("SpaceTranslate.Database.Organization", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ClientId") .IsRequired() .HasColumnType("TEXT"); b.Property("ClientSecret") .IsRequired() .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("TEXT"); b.Property("ServerUrl") .IsRequired() .HasColumnType("TEXT"); b.Property("SigningKey") .IsRequired() .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex(new[] { "ClientId" }, "IX_ClientId"); b.HasIndex(new[] { "ServerUrl" }, "IX_ServerUrl"); b.ToTable("Organizations"); }); modelBuilder.Entity("SpaceTranslate.Database.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Created") .HasColumnType("TEXT"); b.Property("OrganizationId") .HasColumnType("INTEGER"); b.Property("RefreshToken") .HasColumnType("TEXT"); b.Property("Scope") .HasMaxLength(2147483647) .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("OrganizationId"); b.ToTable("Users"); }); modelBuilder.Entity("SpaceTranslate.Database.User", b => { b.HasOne("SpaceTranslate.Database.Organization", "Organization") .WithMany("Users") .HasForeignKey("OrganizationId") .OnDelete(DeleteBehavior.ClientCascade) .IsRequired(); b.Navigation("Organization"); }); modelBuilder.Entity("SpaceTranslate.Database.Organization", b => { b.Navigation("Users"); }); #pragma warning restore 612, 618 } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -