// using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace LiveChat.Migrations { [DbContext(typeof(ChattingContext))] [Migration("20230529185839_sqlite.local_migration_918")] partial class sqlitelocal_migration_918 { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "7.0.4"); modelBuilder.Entity("Room", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("RoomJoinCode") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Rooms"); }); modelBuilder.Entity("RoomChatMessage", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Message") .HasColumnType("TEXT"); b.Property("RoomId") .HasColumnType("TEXT"); b.Property("User") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("RoomId") .IsUnique(); b.ToTable("RoomChatMessages"); }); modelBuilder.Entity("RoomChatMessage", b => { b.HasOne("Room", "Room") .WithOne("RoomChatMessage") .HasForeignKey("RoomChatMessage", "RoomId"); b.Navigation("Room"); }); modelBuilder.Entity("Room", b => { b.Navigation("RoomChatMessage"); }); #pragma warning restore 612, 618 } } }