// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using data.RemoteData; #nullable disable namespace data.Migrations { [DbContext(typeof(RemoteDataBaseContext))] partial class RemoteDataBaseContextModelSnapshot : 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.RemoteData.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("Group"); }); modelBuilder.Entity("Data.RemoteData.DAO.PresenceDao", b => { b.Property("UserGuid") .HasColumnType("uuid"); b.Property("IsAttedance") .HasColumnType("boolean"); b.Property("Date") .HasColumnType("date"); b.Property("LessonNumber") .HasColumnType("integer"); b.Property("UserDaoGuid") .HasColumnType("uuid"); b.HasKey("UserGuid", "IsAttedance", "Date", "LessonNumber"); b.HasIndex("UserDaoGuid"); b.ToTable("Presence"); }); modelBuilder.Entity("Data.RemoteData.DAO.UserDao", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("FIO") .IsRequired() .HasColumnType("text"); b.Property("GroupId") .HasColumnType("integer"); b.HasKey("Guid"); b.HasIndex("GroupId"); b.ToTable("User"); }); modelBuilder.Entity("Data.RemoteData.DAO.PresenceDao", b => { b.HasOne("Data.RemoteData.DAO.UserDao", "UserDao") .WithMany() .HasForeignKey("UserDaoGuid") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("UserDao"); }); modelBuilder.Entity("Data.RemoteData.DAO.UserDao", b => { b.HasOne("Data.RemoteData.DAO.GroupDao", "Group") .WithMany("Users") .HasForeignKey("GroupId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Group"); }); modelBuilder.Entity("Data.RemoteData.DAO.GroupDao", b => { b.Navigation("Users"); }); #pragma warning restore 612, 618 } } }