//
using System;
using CoreDatabase;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace CoreDatabase.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.15")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("CoreDatabase.Models.Department.AcademicPlan", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("EducationDirectionId")
.HasColumnType("uniqueidentifier");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastUpdateDate")
.HasColumnType("datetime2");
b.Property("YearStart")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("EducationDirectionId", "YearStart")
.IsUnique()
.HasFilter("[EducationDirectionId] IS NOT NULL");
b.ToTable("AcademicPlans");
});
modelBuilder.Entity("CoreDatabase.Models.Department.AcademicPlanRecord", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("AcademicPlanId")
.HasColumnType("uniqueidentifier");
b.Property("AcademicPlanRecordParentId")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("DisciplineId")
.HasColumnType("uniqueidentifier");
b.Property("InDepartment")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("IsFacultative")
.HasColumnType("bit");
b.Property("IsParent")
.HasColumnType("bit");
b.Property("Semester")
.HasColumnType("int");
b.Property("Zet")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("DisciplineId");
b.HasIndex("AcademicPlanId", "DisciplineId", "Semester")
.IsUnique();
b.ToTable("AcademicPlanRecords");
});
modelBuilder.Entity("CoreDatabase.Models.Department.AcademicPlanRecordTimeNormHour", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("AcademicPlanRecordId")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("PlanHours")
.HasColumnType("decimal(18,2)");
b.Property("TimeNormId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("TimeNormId");
b.HasIndex("AcademicPlanRecordId", "TimeNormId")
.IsUnique();
b.ToTable("AcademicPlanRecordTimeNormHours");
});
modelBuilder.Entity("CoreDatabase.Models.Department.BasicDepartment", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("BasicDepartmentDescription")
.HasColumnType("nvarchar(max)");
b.Property("BasicDepartmentName")
.HasColumnType("nvarchar(max)");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("EnterprisesName")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LecturerId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("LecturerId");
b.ToTable("BasicDepartment");
});
modelBuilder.Entity("CoreDatabase.Models.Department.Classroom", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("Capacity")
.HasColumnType("int");
b.Property("ClassroomType")
.HasColumnType("int");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("EmployeeId")
.HasColumnType("uniqueidentifier");
b.Property("HaveProjector")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("Number")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("Photo")
.HasColumnType("varbinary(max)");
b.Property("SecurityCode")
.HasColumnType("nvarchar(max)");
b.Property("Square")
.HasColumnType("decimal(18,2)");
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("EmployeeId");
b.HasIndex("Number")
.IsUnique();
b.ToTable("Classrooms");
});
modelBuilder.Entity("CoreDatabase.Models.Department.Discipline", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("BasicDepartmentId")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("DisciplineBlockId")
.HasColumnType("uniqueidentifier");
b.Property("DisciplineBlueAsteriskName")
.HasColumnType("nvarchar(max)");
b.Property("DisciplineName")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("DisciplineShortName")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.HasKey("Id");
b.HasIndex("BasicDepartmentId");
b.HasIndex("DisciplineBlockId");
b.HasIndex("DisciplineName")
.IsUnique();
b.ToTable("Disciplines");
});
modelBuilder.Entity("CoreDatabase.Models.Department.DisciplineBlock", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("DisciplineBlockBlueAsteriskName")
.HasColumnType("nvarchar(max)");
b.Property("DisciplineBlockOrder")
.HasColumnType("int");
b.Property("DisciplineBlockUseForGrouping")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("Title")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("Title")
.IsUnique();
b.ToTable("DisciplineBlocks");
});
modelBuilder.Entity("CoreDatabase.Models.Department.EducationDirection", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("Cipher")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LecturerId")
.HasColumnType("uniqueidentifier");
b.Property("Profile")
.HasColumnType("nvarchar(450)");
b.Property("Qualification")
.HasColumnType("int");
b.Property("ShortName")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Title")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("LecturerId");
b.HasIndex("Title", "Profile")
.IsUnique()
.HasFilter("[Profile] IS NOT NULL");
b.ToTable("EducationDirections");
});
modelBuilder.Entity("CoreDatabase.Models.Department.Employee", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("Address")
.HasColumnType("nvarchar(max)");
b.Property("DateBirth")
.HasColumnType("datetime2");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("Email")
.HasColumnType("nvarchar(max)");
b.Property("FirstName")
.HasColumnType("nvarchar(450)");
b.Property("GroupElectricalSafety")
.HasColumnType("nvarchar(max)");
b.Property("HomeNumber")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastName")
.HasColumnType("nvarchar(450)");
b.Property("MobileNumber")
.HasColumnType("nvarchar(max)");
b.Property("Patronymic")
.HasColumnType("nvarchar(450)");
b.Property("Photo")
.HasColumnType("varbinary(max)");
b.Property("UserId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("UserId");
b.HasIndex("FirstName", "LastName", "Patronymic")
.IsUnique()
.HasFilter("[FirstName] IS NOT NULL AND [LastName] IS NOT NULL AND [Patronymic] IS NOT NULL");
b.ToTable("Employees");
});
modelBuilder.Entity("CoreDatabase.Models.Department.EmployeePost", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("EmployeeId")
.HasColumnType("uniqueidentifier");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("IsExternalCombination")
.HasColumnType("bit");
b.Property("IsInternalCombination")
.HasColumnType("bit");
b.Property("PostId")
.HasColumnType("uniqueidentifier");
b.Property("Rate")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.HasIndex("EmployeeId");
b.HasIndex("PostId");
b.ToTable("EmployeePosts");
});
modelBuilder.Entity("CoreDatabase.Models.Department.Lecturer", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("Abbreviation")
.HasColumnType("nvarchar(max)");
b.Property("Address")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("DateBirth")
.HasColumnType("datetime2");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("Email")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("FirstName")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("GroupElectricalSafety")
.HasColumnType("nvarchar(max)");
b.Property("HomeNumber")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastName")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("LecturerAcademicDegreeId")
.HasColumnType("uniqueidentifier");
b.Property("LecturerAcademicRankId")
.HasColumnType("uniqueidentifier");
b.Property("MobileNumber")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("OnlyForPrivate")
.HasColumnType("bit");
b.Property("Patronymic")
.HasColumnType("nvarchar(450)");
b.Property("Photo")
.HasColumnType("varbinary(max)");
b.Property("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("CoreDatabase.Models.Department.LecturerAcademicDegree", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LecturerAcademicDegreeName")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("Order")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("LecturerAcademicDegreeName")
.IsUnique();
b.ToTable("LecturerAcademicDegrees");
});
modelBuilder.Entity("CoreDatabase.Models.Department.LecturerAcademicRank", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LecturerAcademicRankName")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("Order")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("LecturerAcademicRankName")
.IsUnique();
b.ToTable("LecturerAcademicRanks");
});
modelBuilder.Entity("CoreDatabase.Models.Department.LecturerPost", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("IsExternalCombination")
.HasColumnType("bit");
b.Property("IsInternalCombination")
.HasColumnType("bit");
b.Property("LecturerId")
.HasColumnType("uniqueidentifier");
b.Property("PostId")
.HasColumnType("uniqueidentifier");
b.Property("Rate")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.HasIndex("LecturerId");
b.HasIndex("PostId");
b.ToTable("LecturerPosts");
});
modelBuilder.Entity("CoreDatabase.Models.Department.Order", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("OrderDate")
.HasColumnType("datetime2");
b.Property("OrderNumber")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("OrderType")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("OrderNumber", "OrderDate", "OrderType")
.IsUnique();
b.ToTable("Orders");
});
modelBuilder.Entity("CoreDatabase.Models.Department.OrderStudentRecord", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Info")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("OrderId")
.HasColumnType("uniqueidentifier");
b.Property("OrderStudentMoveType")
.HasColumnType("int");
b.Property("StudentGroupFromId")
.HasColumnType("uniqueidentifier");
b.Property("StudentGroupToId")
.HasColumnType("uniqueidentifier");
b.Property("StudentId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("OrderId");
b.HasIndex("StudentGroupFromId");
b.HasIndex("StudentGroupToId");
b.HasIndex("StudentId", "OrderId")
.IsUnique();
b.ToTable("OrderStudentRecords");
});
modelBuilder.Entity("CoreDatabase.Models.Department.OrderSyncHistory", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("SyncDate")
.HasColumnType("datetime2");
b.HasKey("Id");
b.ToTable("OrderSyncHistories");
});
modelBuilder.Entity("CoreDatabase.Models.Department.OrderSyncHistoryRecord", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("Information")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("OrderSyncHistoryId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("OrderSyncHistoryId");
b.ToTable("OrderSyncHistoryRecords");
});
modelBuilder.Entity("CoreDatabase.Models.Department.Post", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Hours")
.HasColumnType("int");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("Order")
.HasColumnType("int");
b.Property("PostName")
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("PostName")
.IsUnique()
.HasFilter("[PostName] IS NOT NULL");
b.ToTable("Posts");
});
modelBuilder.Entity("CoreDatabase.Models.Department.Student", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("BasicDepartmentId")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("Email")
.HasColumnType("nvarchar(max)");
b.Property("FirstName")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Iduniv")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("IsSteward")
.HasColumnType("bit");
b.Property("LastName")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("NumberOfBook")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("Patronymic")
.HasColumnType("nvarchar(max)");
b.Property("Photo")
.HasColumnType("varbinary(max)");
b.Property("StudentGroupId")
.HasColumnType("uniqueidentifier");
b.Property("StudentState")
.HasColumnType("int");
b.Property("UserId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("BasicDepartmentId");
b.HasIndex("NumberOfBook")
.IsUnique();
b.HasIndex("StudentGroupId");
b.HasIndex("UserId");
b.ToTable("Students");
});
modelBuilder.Entity("CoreDatabase.Models.Department.StudentGroup", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("AcademicPlanId")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("GroupNumber")
.HasColumnType("int");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LecturerId")
.HasColumnType("uniqueidentifier");
b.Property("YearEntrance")
.HasColumnType("int");
b.Property("YearFinish")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("LecturerId");
b.HasIndex("AcademicPlanId", "YearEntrance", "GroupNumber")
.IsUnique();
b.ToTable("StudentGroups");
});
modelBuilder.Entity("CoreDatabase.Models.Department.StudentMarkPassedDiscipline", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateAffixing")
.HasColumnType("datetime2");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("DisciplineId")
.HasColumnType("uniqueidentifier");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("IsDirection")
.HasColumnType("bit");
b.Property("IsIncreaseMark")
.HasColumnType("bit");
b.Property("Mark")
.HasColumnType("int");
b.Property("Semester")
.HasColumnType("int");
b.Property("StudentId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("DisciplineId");
b.HasIndex("StudentId", "DisciplineId", "Semester", "Mark")
.IsUnique();
b.ToTable("StudentMarkPassedDisciplines");
});
modelBuilder.Entity("CoreDatabase.Models.Department.StudentMarkSyncHistory", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("SyncDate")
.HasColumnType("datetime2");
b.HasKey("Id");
b.ToTable("StudentMarkSyncHistories");
});
modelBuilder.Entity("CoreDatabase.Models.Department.StudentMarkSyncHistoryRecord", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("Information")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("StudentMarkSyncHistoryId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("StudentMarkSyncHistoryId");
b.ToTable("StudentMarkSyncHistoryRecords");
});
modelBuilder.Entity("CoreDatabase.Models.Department.TimeNorm", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("DisciplineBlockId")
.HasColumnType("uniqueidentifier");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("KindOfLoadAttributeName")
.HasColumnType("nvarchar(max)");
b.Property("KindOfLoadBlueAsteriskAttributeName")
.HasColumnType("nvarchar(max)");
b.Property("KindOfLoadBlueAsteriskName")
.HasColumnType("nvarchar(max)");
b.Property("KindOfLoadBlueAsteriskPracticName")
.HasColumnType("nvarchar(max)");
b.Property("KindOfLoadName")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("TimeNormEducationDirectionQualification")
.HasColumnType("int");
b.Property("TimeNormName")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("TimeNormOrder")
.HasColumnType("int");
b.Property("TimeNormShortName")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("UseInLearningProgress")
.HasColumnType("bit");
b.Property("UseInSite")
.HasColumnType("bit");
b.HasKey("Id");
b.HasIndex("DisciplineBlockId");
b.HasIndex("TimeNormName", "TimeNormShortName")
.IsUnique();
b.ToTable("TimeNorms");
});
modelBuilder.Entity("CoreDatabase.Models.Security.Access", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("AccessOperation")
.HasColumnType("int");
b.Property("AccessType")
.HasColumnType("int");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("RoleId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("Accesses");
});
modelBuilder.Entity("CoreDatabase.Models.Security.EnviromentSetting", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("Key")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("Value")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("Key")
.IsUnique();
b.ToTable("EnviromentSettings");
});
modelBuilder.Entity("CoreDatabase.Models.Security.Role", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("DateCreate")
.HasColumnType("datetime2");
b.Property("DateDelete")
.HasColumnType("datetime2");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("RoleName")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property("RolePriority")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("RoleName")
.IsUnique();
b.ToTable("Roles");
});
modelBuilder.Entity("CoreDatabase.Models.Security.User", b =>
{
b.Property("Id")
.HasColumnType("uniqueidentifier");
b.Property("Avatar")
.HasColumnType("varbinary(max)");
b.Property("CountAttempt")
.HasColumnType("int");
b.Property