Правка регистрации, расписание, смена ролей

This commit is contained in:
Халимов Рустам
2026-02-16 12:10:44 +03:00
parent 3524e0d0af
commit 628fce5b50
13 changed files with 530 additions and 11 deletions
@@ -109,6 +109,30 @@ namespace Nashel.Modules.Identity.Infrastructure.Persistence.Migrations
b.ToTable("Competencies", "identity");
});
modelBuilder.Entity("Nashel.Modules.Identity.Domain.Entities.WorkSchedule", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid");
b.Property<bool>("Is24_7")
.HasColumnType("boolean");
b.Property<bool>("IsAlwaysReady")
.HasColumnType("boolean");
b.Property<string>("WorkingDays")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property<string>("WorkingHours")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.HasKey("Id");
b.ToTable("WorkSchedules", "identity");
});
modelBuilder.Entity("UserProfileCompetencies", b =>
{
b.Property<Guid>("UserProfileId")
@@ -133,6 +157,15 @@ namespace Nashel.Modules.Identity.Infrastructure.Persistence.Migrations
.IsRequired();
});
modelBuilder.Entity("Nashel.Modules.Identity.Domain.Entities.WorkSchedule", b =>
{
b.HasOne("Nashel.Modules.Identity.Domain.Aggregates.UserProfile", null)
.WithOne("WorkSchedule")
.HasForeignKey("Nashel.Modules.Identity.Domain.Entities.WorkSchedule", "Id")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("UserProfileCompetencies", b =>
{
b.HasOne("Nashel.Modules.Identity.Domain.Entities.Competency", null)
@@ -153,6 +186,11 @@ namespace Nashel.Modules.Identity.Infrastructure.Persistence.Migrations
b.Navigation("Profile")
.IsRequired();
});
modelBuilder.Entity("Nashel.Modules.Identity.Domain.Aggregates.UserProfile", b =>
{
b.Navigation("WorkSchedule");
});
#pragma warning restore 612, 618
}
}