2021-03-26 20:09:52 +04:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
|
|
|
|
using DatabaseCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
|
|
|
|
namespace DatabaseCore.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(DatabaseContext))]
|
|
|
|
|
partial class DatabaseContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|
|
|
|
.HasAnnotation("ProductVersion", "5.0.4")
|
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
2021-04-06 22:07:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.AcademicPlan", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("EducationDirectionId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("YearEntrance")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("YearFinish")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("EducationDirectionId", "YearEntrance")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("AcademicPlans");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.AcademicPlanRecord", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("AcademicPlanId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("AcademicPlanRecordParentId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("DisciplineId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("InDepartment")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsFacultative")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsParent")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Semester")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Zet")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("DisciplineId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AcademicPlanId", "DisciplineId", "Semester")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("AcademicPlanRecords");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.AcademicPlanRecordTimeNormHour", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("AcademicPlanRecordId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("PlanHours")
|
|
|
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("TimeNormId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("TimeNormId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AcademicPlanRecordId", "TimeNormId")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("AcademicPlanRecordTimeNormHours");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 13:41:19 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Classroom", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Capacity")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ClassroomType")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("EmployeeId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("HaveProjector")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Number")
|
2021-04-05 14:20:07 +04:00
|
|
|
|
.IsRequired()
|
2021-04-03 13:41:19 +04:00
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<byte[]>("Photo")
|
|
|
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SecurityCode")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Square")
|
|
|
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("EmployeeId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Number")
|
2021-04-05 14:20:07 +04:00
|
|
|
|
.IsUnique();
|
2021-04-03 13:41:19 +04:00
|
|
|
|
|
|
|
|
|
b.ToTable("Classrooms");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 19:03:56 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Discipline", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
2021-04-04 18:49:04 +04:00
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2021-04-03 19:03:56 +04:00
|
|
|
|
b.Property<Guid>("DisciplineBlockId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisciplineBlueAsteriskName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisciplineName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisciplineShortName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("DisciplineBlockId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("DisciplineName")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("Disciplines");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.DisciplineBlock", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisciplineBlockBlueAsteriskName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("DisciplineBlockOrder")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("DisciplineBlockUseForGrouping")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Title")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("DisciplineBlocks");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-05 14:20:07 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.EducationDirection", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Cipher")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("LecturerId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Profile")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Qualification")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ShortName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LecturerId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Title", "Profile")
|
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasFilter("[Profile] IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EducationDirections");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 09:45:22 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Employee", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Address")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateBirth")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Email")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FirstName")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("GroupElectricalSafety")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("HomeNumber")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LastName")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("MobileNumber")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Patronymic")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<byte[]>("Photo")
|
|
|
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
2021-04-03 09:45:22 +04:00
|
|
|
|
b.HasIndex("FirstName", "LastName", "Patronymic")
|
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasFilter("[FirstName] IS NOT NULL AND [LastName] IS NOT NULL AND [Patronymic] IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Employees");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.EmployeePost", b =>
|
2021-04-03 09:45:22 +04:00
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("EmployeeId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsExternalCombination")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsInternalCombination")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Property<Guid>("PostId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
2021-04-03 09:45:22 +04:00
|
|
|
|
b.Property<decimal>("Rate")
|
|
|
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("EmployeeId");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.HasIndex("PostId");
|
2021-04-03 09:45:22 +04:00
|
|
|
|
|
|
|
|
|
b.ToTable("EmployeePosts");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Lecturer", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
2021-04-04 18:49:04 +04:00
|
|
|
|
b.Property<string>("Abbreviation")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
b.Property<string>("Address")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateBirth")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Email")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FirstName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Property<string>("GroupElectricalSafety")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
b.Property<string>("HomeNumber")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LastName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("LecturerAcademicDegreeId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("LecturerAcademicRankId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("MobileNumber")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2021-04-04 18:49:04 +04:00
|
|
|
|
b.Property<bool>("OnlyForPrivate")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
b.Property<string>("Patronymic")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<byte[]>("Photo")
|
|
|
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LecturerAcademicDegreeId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LecturerAcademicRankId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("FirstName", "LastName", "Patronymic")
|
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasFilter("[Patronymic] IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Lecturers");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.LecturerAcademicDegree", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
2021-04-04 09:32:36 +04:00
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LecturerAcademicDegreeName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Order")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LecturerAcademicDegreeName")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("LecturerAcademicDegrees");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.LecturerAcademicRank", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LecturerAcademicRankName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Order")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LecturerAcademicRankName")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("LecturerAcademicRanks");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.LecturerPost", b =>
|
2021-04-03 22:04:11 +04:00
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsExternalCombination")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsInternalCombination")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("LecturerId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Property<Guid>("PostId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
b.Property<decimal>("Rate")
|
|
|
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LecturerId");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.HasIndex("PostId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("LecturerPosts");
|
2021-04-03 22:04:11 +04:00
|
|
|
|
});
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Post", b =>
|
2021-04-03 22:04:11 +04:00
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Property<int?>("Hours")
|
2021-04-03 22:04:11 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Order")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Property<string>("PostName")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.HasIndex("PostName")
|
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasFilter("[PostName] IS NOT NULL");
|
2021-04-03 22:04:11 +04:00
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.ToTable("Posts");
|
2021-04-03 22:04:11 +04:00
|
|
|
|
});
|
|
|
|
|
|
2021-04-06 22:07:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.TimeNorm", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("DisciplineBlockId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("KindOfLoadAttributeName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("KindOfLoadBlueAsteriskAttributeName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("KindOfLoadBlueAsteriskName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("KindOfLoadBlueAsteriskPracticName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("KindOfLoadName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("TimeNormEducationDirectionQualification")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TimeNormName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("TimeNormOrder")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TimeNormShortName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("UseInLearningProgress")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("UseInSite")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("DisciplineBlockId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("TimeNormName", "TimeNormShortName")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("TimeNorms");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.Access", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
2021-03-27 23:50:29 +04:00
|
|
|
|
b.Property<int>("AccessOperation")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
b.Property<int>("AccessType")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("RoleId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Accesses");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.EnviromentSetting", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
2021-04-05 10:08:49 +04:00
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
2021-03-28 20:56:32 +04:00
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2021-04-05 10:08:49 +04:00
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
b.Property<string>("Key")
|
2021-04-01 21:30:29 +04:00
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
2021-03-26 20:09:52 +04:00
|
|
|
|
|
|
|
|
|
b.Property<string>("Value")
|
2021-04-01 21:30:29 +04:00
|
|
|
|
.IsRequired()
|
2021-03-26 20:09:52 +04:00
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2021-04-01 21:30:29 +04:00
|
|
|
|
b.HasIndex("Key")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
b.ToTable("EnviromentSettings");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.Role", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleName")
|
2021-04-03 19:03:56 +04:00
|
|
|
|
.IsRequired()
|
2021-04-03 09:45:22 +04:00
|
|
|
|
.HasColumnType("nvarchar(450)");
|
2021-03-26 20:09:52 +04:00
|
|
|
|
|
|
|
|
|
b.Property<int>("RolePriority")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2021-04-03 09:45:22 +04:00
|
|
|
|
b.HasIndex("RoleName")
|
2021-04-03 19:03:56 +04:00
|
|
|
|
.IsUnique();
|
2021-04-03 09:45:22 +04:00
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
b.ToTable("Roles");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.User", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<byte[]>("Avatar")
|
|
|
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CountAttempt")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateBanned")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateLastVisit")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsBanned")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PasswordHash")
|
2021-04-03 19:03:56 +04:00
|
|
|
|
.IsRequired()
|
2021-03-26 20:09:52 +04:00
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName")
|
2021-04-03 19:03:56 +04:00
|
|
|
|
.IsRequired()
|
2021-04-03 09:45:22 +04:00
|
|
|
|
.HasColumnType("nvarchar(450)");
|
2021-03-26 20:09:52 +04:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2021-04-03 13:41:19 +04:00
|
|
|
|
b.HasIndex("UserName");
|
2021-04-03 09:45:22 +04:00
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
b.ToTable("Users");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.UserRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
2021-03-27 23:50:29 +04:00
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateDelete")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
b.Property<Guid>("RoleId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("UserRoles");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-06 22:07:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.AcademicPlan", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.EducationDirection", "EducationDirection")
|
|
|
|
|
.WithMany("AcademicPlans")
|
|
|
|
|
.HasForeignKey("EducationDirectionId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("EducationDirection");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.AcademicPlanRecord", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.AcademicPlan", "AcademicPlan")
|
|
|
|
|
.WithMany("AcademicPlanRecords")
|
|
|
|
|
.HasForeignKey("AcademicPlanId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.Discipline", "Discipline")
|
|
|
|
|
.WithMany("AcademicPlanRecords")
|
|
|
|
|
.HasForeignKey("DisciplineId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("AcademicPlan");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Discipline");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.AcademicPlanRecordTimeNormHour", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.AcademicPlanRecord", "AcademicPlanRecord")
|
|
|
|
|
.WithMany("AcademicPlanRecordTimeNormHours")
|
|
|
|
|
.HasForeignKey("AcademicPlanRecordId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.TimeNorm", "TimeNorm")
|
|
|
|
|
.WithMany("AcademicPlanRecordTimeNormHours")
|
|
|
|
|
.HasForeignKey("TimeNormId")
|
|
|
|
|
.OnDelete(DeleteBehavior.NoAction)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("AcademicPlanRecord");
|
|
|
|
|
|
|
|
|
|
b.Navigation("TimeNorm");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 13:41:19 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Classroom", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.Employee", "Employee")
|
|
|
|
|
.WithMany("Classrooms")
|
|
|
|
|
.HasForeignKey("EmployeeId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Employee");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 19:03:56 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Discipline", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.DisciplineBlock", "DisciplineBlock")
|
|
|
|
|
.WithMany("Disciplines")
|
|
|
|
|
.HasForeignKey("DisciplineBlockId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("DisciplineBlock");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-05 14:20:07 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.EducationDirection", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.Lecturer", "Lecturer")
|
|
|
|
|
.WithMany("EducationDirections")
|
|
|
|
|
.HasForeignKey("LecturerId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Lecturer");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Employee", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Security.User", "User")
|
|
|
|
|
.WithMany("Employees")
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("User");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.EmployeePost", b =>
|
2021-04-03 09:45:22 +04:00
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.Employee", "Employee")
|
2021-04-05 12:25:10 +04:00
|
|
|
|
.WithMany("EmployeePosts")
|
2021-04-03 09:45:22 +04:00
|
|
|
|
.HasForeignKey("EmployeeId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.Post", "Post")
|
|
|
|
|
.WithMany("EmployeePosts")
|
|
|
|
|
.HasForeignKey("PostId")
|
2021-04-03 09:45:22 +04:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Employee");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Navigation("Post");
|
2021-04-03 09:45:22 +04:00
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Lecturer", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.LecturerAcademicDegree", "LecturerAcademicDegree")
|
|
|
|
|
.WithMany("Lecturers")
|
|
|
|
|
.HasForeignKey("LecturerAcademicDegreeId");
|
|
|
|
|
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.LecturerAcademicRank", "LecturerAcademicRank")
|
|
|
|
|
.WithMany("Lecturers")
|
|
|
|
|
.HasForeignKey("LecturerAcademicRankId");
|
|
|
|
|
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Security.User", "User")
|
|
|
|
|
.WithMany("Lecturers")
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("LecturerAcademicDegree");
|
|
|
|
|
|
|
|
|
|
b.Navigation("LecturerAcademicRank");
|
|
|
|
|
|
|
|
|
|
b.Navigation("User");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.LecturerPost", b =>
|
2021-04-03 22:04:11 +04:00
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.Lecturer", "Lecturer")
|
2021-04-05 12:25:10 +04:00
|
|
|
|
.WithMany("LecturerPosts")
|
2021-04-03 22:04:11 +04:00
|
|
|
|
.HasForeignKey("LecturerId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.Post", "Post")
|
|
|
|
|
.WithMany("LecturerPosts")
|
|
|
|
|
.HasForeignKey("PostId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-04-03 22:04:11 +04:00
|
|
|
|
|
|
|
|
|
b.Navigation("Lecturer");
|
2021-04-05 12:25:10 +04:00
|
|
|
|
|
|
|
|
|
b.Navigation("Post");
|
2021-04-03 22:04:11 +04:00
|
|
|
|
});
|
|
|
|
|
|
2021-04-06 22:07:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.TimeNorm", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Department.DisciplineBlock", "DisciplineBlock")
|
|
|
|
|
.WithMany("TimeNorms")
|
|
|
|
|
.HasForeignKey("DisciplineBlockId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("DisciplineBlock");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.Access", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Security.Role", "Role")
|
|
|
|
|
.WithMany("Access")
|
|
|
|
|
.HasForeignKey("RoleId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Role");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.UserRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Security.Role", "Role")
|
|
|
|
|
.WithMany("UserRoles")
|
|
|
|
|
.HasForeignKey("RoleId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("DatabaseCore.Models.Security.User", "User")
|
|
|
|
|
.WithMany("UserRoles")
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Role");
|
|
|
|
|
|
|
|
|
|
b.Navigation("User");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-06 22:07:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.AcademicPlan", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("AcademicPlanRecords");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.AcademicPlanRecord", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("AcademicPlanRecordTimeNormHours");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Discipline", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("AcademicPlanRecords");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 19:03:56 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.DisciplineBlock", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Disciplines");
|
2021-04-06 22:07:11 +04:00
|
|
|
|
|
|
|
|
|
b.Navigation("TimeNorms");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.EducationDirection", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("AcademicPlans");
|
2021-04-03 19:03:56 +04:00
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 09:45:22 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Employee", b =>
|
|
|
|
|
{
|
2021-04-03 13:41:19 +04:00
|
|
|
|
b.Navigation("Classrooms");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Navigation("EmployeePosts");
|
2021-04-04 18:49:04 +04:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Lecturer", b =>
|
|
|
|
|
{
|
2021-04-05 14:20:07 +04:00
|
|
|
|
b.Navigation("EducationDirections");
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Navigation("LecturerPosts");
|
2021-04-03 09:45:22 +04:00
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.LecturerAcademicDegree", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Lecturers");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.LecturerAcademicRank", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Lecturers");
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.Post", b =>
|
2021-04-03 22:04:11 +04:00
|
|
|
|
{
|
2021-04-05 12:25:10 +04:00
|
|
|
|
b.Navigation("EmployeePosts");
|
|
|
|
|
|
|
|
|
|
b.Navigation("LecturerPosts");
|
2021-04-03 22:04:11 +04:00
|
|
|
|
});
|
|
|
|
|
|
2021-04-06 22:07:11 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Department.TimeNorm", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("AcademicPlanRecordTimeNormHours");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.Role", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Access");
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserRoles");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DatabaseCore.Models.Security.User", b =>
|
|
|
|
|
{
|
2021-04-03 22:04:11 +04:00
|
|
|
|
b.Navigation("Employees");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Lecturers");
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
b.Navigation("UserRoles");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|