75 lines
2.2 KiB
C#
75 lines
2.2 KiB
C#
// <auto-generated />
|
|
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
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.4");
|
|
|
|
modelBuilder.Entity("Room", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoomJoinCode")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Rooms");
|
|
});
|
|
|
|
modelBuilder.Entity("RoomChatMessage", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Message")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoomId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("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
|
|
}
|
|
}
|
|
}
|