// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using data; #nullable disable namespace data.Migrations { [DbContext(typeof(RemoteDatabseContext))] partial class RemoteDatabseContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("data.DAO.GroupDAO", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Name") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("groups"); }); modelBuilder.Entity("data.DAO.UserDAO", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("GroupId") .HasColumnType("integer"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("GroupId"); b.ToTable("users"); }); modelBuilder.Entity("data.DAO.UserDAO", b => { b.HasOne("data.DAO.GroupDAO", "Group") .WithMany("Users") .HasForeignKey("GroupId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Group"); }); modelBuilder.Entity("data.DAO.GroupDAO", b => { b.Navigation("Users"); }); #pragma warning restore 612, 618 } } }