2024-10-24 20:41:31 +00:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
2024-10-28 03:24:11 +00:00
|
|
|
|
using Demo.Data.RemoteData.RemoteDataBase;
|
2024-10-24 20:41:31 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace Demo.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);
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.GroupDAO", b =>
|
2024-10-24 20:41:31 +00:00
|
|
|
|
{
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.Property<int>("ID")
|
2024-10-24 20:41:31 +00:00
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("ID"));
|
2024-10-24 20:41:31 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.HasKey("ID");
|
2024-10-24 20:41:31 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("Groups");
|
|
|
|
|
});
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.PresenceDAO", b =>
|
2024-10-24 20:41:31 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("UserGuid")
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
b.Property<DateOnly>("Date")
|
|
|
|
|
.HasColumnType("date");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("LessonNumber")
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.Property<bool>("IsAttedance")
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("userDAOGuid")
|
2024-10-24 20:41:31 +00:00
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.HasKey("UserGuid", "Date", "LessonNumber");
|
2024-10-24 20:41:31 +00:00
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.HasIndex("userDAOGuid");
|
2024-10-24 20:41:31 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("PresenceDaos");
|
|
|
|
|
});
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.UserDAO", b =>
|
2024-10-24 20:41:31 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Guid")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FIO")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("GroupID")
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Guid");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GroupID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Users");
|
|
|
|
|
});
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.PresenceDAO", b =>
|
2024-10-24 20:41:31 +00:00
|
|
|
|
{
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.HasOne("Demo.Data.RemoteData.RemoteDataBase.DAO.UserDAO", "userDAO")
|
2024-10-24 20:41:31 +00:00
|
|
|
|
.WithMany()
|
2024-10-28 03:24:11 +00:00
|
|
|
|
.HasForeignKey("userDAOGuid")
|
2024-10-24 20:41:31 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.Navigation("userDAO");
|
2024-10-24 20:41:31 +00:00
|
|
|
|
});
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.UserDAO", b =>
|
2024-10-24 20:41:31 +00:00
|
|
|
|
{
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.HasOne("Demo.Data.RemoteData.RemoteDataBase.DAO.GroupDAO", "Group")
|
|
|
|
|
.WithMany("Users")
|
2024-10-24 20:41:31 +00:00
|
|
|
|
.HasForeignKey("GroupID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Group");
|
|
|
|
|
});
|
|
|
|
|
|
2024-10-28 03:24:11 +00:00
|
|
|
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.GroupDAO", b =>
|
2024-10-24 20:41:31 +00:00
|
|
|
|
{
|
2024-10-28 03:24:11 +00:00
|
|
|
|
b.Navigation("Users");
|
2024-10-24 20:41:31 +00:00
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|