112 lines
3.7 KiB
C#
112 lines
3.7 KiB
C#
|
// <auto-generated />
|
|||
|
using System;
|
|||
|
using Demo.Data.RemoteData.RemoteDataBase;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace Demo.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(RemoteDatabaseContext))]
|
|||
|
[Migration("20241104200529_db")]
|
|||
|
partial class db
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
{
|
|||
|
#pragma warning disable 612, 618
|
|||
|
modelBuilder
|
|||
|
.HasAnnotation("ProductVersion", "8.0.10")
|
|||
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|||
|
|
|||
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|||
|
|
|||
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.GroupDao", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("integer");
|
|||
|
|
|||
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|||
|
|
|||
|
b.Property<string>("Name")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("text");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Groups");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.PresenceDao", b =>
|
|||
|
{
|
|||
|
b.Property<int>("PresenceId")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("integer");
|
|||
|
|
|||
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("PresenceId"));
|
|||
|
|
|||
|
b.Property<DateOnly>("Date")
|
|||
|
.HasColumnType("date");
|
|||
|
|
|||
|
b.Property<int>("GroupId")
|
|||
|
.HasColumnType("integer");
|
|||
|
|
|||
|
b.Property<bool>("IsAttedance")
|
|||
|
.HasColumnType("boolean");
|
|||
|
|
|||
|
b.Property<int>("LessonNumber")
|
|||
|
.HasColumnType("integer");
|
|||
|
|
|||
|
b.Property<Guid>("UserGuid")
|
|||
|
.HasColumnType("uuid");
|
|||
|
|
|||
|
b.HasKey("PresenceId");
|
|||
|
|
|||
|
b.ToTable("PresenceDaos");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.UserDao", b =>
|
|||
|
{
|
|||
|
b.Property<Guid>("UserGuid")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("uuid");
|
|||
|
|
|||
|
b.Property<string>("FIO")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("text");
|
|||
|
|
|||
|
b.Property<int>("GroupId")
|
|||
|
.HasColumnType("integer");
|
|||
|
|
|||
|
b.HasKey("UserGuid");
|
|||
|
|
|||
|
b.HasIndex("GroupId");
|
|||
|
|
|||
|
b.ToTable("Users");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.UserDao", b =>
|
|||
|
{
|
|||
|
b.HasOne("Demo.Data.RemoteData.RemoteDataBase.DAO.GroupDao", "Group")
|
|||
|
.WithMany("Users")
|
|||
|
.HasForeignKey("GroupId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
.IsRequired();
|
|||
|
|
|||
|
b.Navigation("Group");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("Demo.Data.RemoteData.RemoteDataBase.DAO.GroupDao", b =>
|
|||
|
{
|
|||
|
b.Navigation("Users");
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|