From 9dcb619007d104b71fffde88cc3688ed35865210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=90=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Sat, 20 May 2023 04:01:15 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=87=D0=B8=D0=BD=D0=B8=D0=BB=20"?= =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5"=20?= =?UTF-8?q?=D0=B8=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5,=20?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BD=D0=B5=20=D0=B2=D1=81=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Contracts/Update.cshtml | 2 +- .../Views/Home/Specializations.cshtml | 2 +- .../Views/Lawyers/Update.cshtml | 20 +- .../Views/Specializations/Update.cshtml | 4 +- .../wwwroot/js/Contracts/contract-update.js | 34 +- .../wwwroot/js/Contracts/contracts.js | 2 +- .../wwwroot/js/Lawyers/lawyer-update.js | 47 +- .../Specializations/specialization-update.js | 3 +- .../20230519222316_migrTilt.Designer.cs | 551 ++++++++++++++++++ .../Migrations/20230519222316_migrTilt.cs | 22 + 10 files changed, 639 insertions(+), 48 deletions(-) create mode 100644 CaseAccounting/CaseAccountingDataBaseImplement/Migrations/20230519222316_migrTilt.Designer.cs create mode 100644 CaseAccounting/CaseAccountingDataBaseImplement/Migrations/20230519222316_migrTilt.cs diff --git a/CaseAccounting/CaseAccountingCustomerView/Views/Contracts/Update.cshtml b/CaseAccounting/CaseAccountingCustomerView/Views/Contracts/Update.cshtml index 40b2675..c6b5752 100644 --- a/CaseAccounting/CaseAccountingCustomerView/Views/Contracts/Update.cshtml +++ b/CaseAccounting/CaseAccountingCustomerView/Views/Contracts/Update.cshtml @@ -6,7 +6,7 @@ @{ -

Изменение данных контракта

+

Изменение данных контракта

if (ViewBag.Contract == null) { diff --git a/CaseAccounting/CaseAccountingCustomerView/Views/Home/Specializations.cshtml b/CaseAccounting/CaseAccountingCustomerView/Views/Home/Specializations.cshtml index 2ef2668..7f97a61 100644 --- a/CaseAccounting/CaseAccountingCustomerView/Views/Home/Specializations.cshtml +++ b/CaseAccounting/CaseAccountingCustomerView/Views/Home/Specializations.cshtml @@ -48,7 +48,7 @@ Назначить специализацию для юриста - Изменить + Изменить Удалить diff --git a/CaseAccounting/CaseAccountingCustomerView/Views/Lawyers/Update.cshtml b/CaseAccounting/CaseAccountingCustomerView/Views/Lawyers/Update.cshtml index 451dceb..2f04ad8 100644 --- a/CaseAccounting/CaseAccountingCustomerView/Views/Lawyers/Update.cshtml +++ b/CaseAccounting/CaseAccountingCustomerView/Views/Lawyers/Update.cshtml @@ -6,7 +6,7 @@ @{ -

Изменение данных юриста

+

Изменение данных юриста

if (ViewBag.Lawyer == null) { @@ -28,9 +28,25 @@

Опыт работы:

- + +
+
+ + + + + + + + + + +
УслугаЦенаДата
+
+
} \ No newline at end of file diff --git a/CaseAccounting/CaseAccountingCustomerView/Views/Specializations/Update.cshtml b/CaseAccounting/CaseAccountingCustomerView/Views/Specializations/Update.cshtml index 28dc803..a83b2bc 100644 --- a/CaseAccounting/CaseAccountingCustomerView/Views/Specializations/Update.cshtml +++ b/CaseAccounting/CaseAccountingCustomerView/Views/Specializations/Update.cshtml @@ -6,9 +6,9 @@ @{ -

Изменение данных специализации

+

Изменение данных специализации

- if (ViewBag.EducationStatus == null) + if (ViewBag.Specialization == null) {

Войдите в аккаунт

return; diff --git a/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Contracts/contract-update.js b/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Contracts/contract-update.js index 47f297b..5adda23 100644 --- a/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Contracts/contract-update.js +++ b/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Contracts/contract-update.js @@ -4,26 +4,26 @@ const coastInput = document.getElementById("coast-input") const dateInput = document.getElementById("date-input") const contractId = document.getElementById("contr-id").dataset.id +contracts = [] + +window.addEventListener("load", () => { + const contractsResponse = $.ajax({ + url: `/contracts/getallbyuser`, + type: "GET", + contentType: "json" + }); + contracts = contractsResponse; +}) + +const correctData = () => { + + return true; +}; + updateBtn.addEventListener("click", () => { if (!correctData()) { return; } - if (!validate()) { - return; - } -}); - -const correctData = function () { - - return true; -}; - -const validate = function () { - - return true; -}; - -updateBtn.addEventListener("click", () => { let contract = { "Id": parseInt(contractId), "Service": serviceInput.value, @@ -32,7 +32,7 @@ updateBtn.addEventListener("click", () => { }; console.log(contract) $.ajax({ - url: "/lawyer/update", + url: "/contracts/update", type: "POST", contentType: "application/json", data: JSON.stringify(contract) diff --git a/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Contracts/contracts.js b/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Contracts/contracts.js index 7da836a..f32701a 100644 --- a/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Contracts/contracts.js +++ b/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Contracts/contracts.js @@ -8,7 +8,7 @@ removeButtons.forEach(function (button) { var result = confirm("Вы уверены, что хотите удалить эту запись?"); if (result) { $.ajax({ - url: "/contract/delete", + url: "/contracts/delete", type: "POST", data: { Id: id } }).done(() => { diff --git a/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Lawyers/lawyer-update.js b/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Lawyers/lawyer-update.js index e773846..1c3a921 100644 --- a/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Lawyers/lawyer-update.js +++ b/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Lawyers/lawyer-update.js @@ -2,7 +2,7 @@ const tbody = document.getElementById("scrollable-table__tbody"); const serviceInput = document.getElementById("service-input"); const coastInput = document.getElementById("coast-input"); -const currentLawyerId = document.getElementById("lawyer-data").dataset.id; +const currentLawyerId = document.getElementById("lawyer-id").dataset.id; var contracts = []; var dataArray = []; var currentLawyer = null; @@ -15,14 +15,34 @@ window.addEventListener('load', async () => { }).done((result) => { contracts = result; }); + console.log(currentLawyerId) await $.ajax({ - url: `/lawyers/get?id=${currentLawyerId}`, + url: "/lawyers/get?id=${currentLawyerId}", type: "GET", contentType: "json" }).done((result) => { currentLawyer = result; }); - contracts.forEach((contract) => createRowForContractsTable(contract)); + console.log(currentLawyerId); + console.log(currentLawyer); + contracts.forEach((contract) => { + const { id, service, coast, date } = contract; + const row = tbody.insertRow(); + row.setAttribute("data-id", id); + + const cells = [service, coast, formatDate(date)]; + cells.forEach((value) => { + const cell = row.insertCell(); + cell.textContent = value; + }); + console.log(currentLawyer); + if (currentLawyer.ContractViewModels.find(x => parseInt(x.id) === parseInt(contract.id))) { + row.classList.add("bg-success"); + dataArray.push(contract); + } + + row.addEventListener('click', () => addAndRemoveFromList(row)); + }); }) createBtn.addEventListener('click', () => { @@ -35,7 +55,7 @@ createBtn.addEventListener('click', () => { "LawyerCases": currentLawyer.lawyerCases, } $.ajax({ - url: "/lawyer/update", + url: "/lawyers/update", type: "POST", contentType: "application/json", data: JSON.stringify(lawyerCasesUpdate) @@ -44,25 +64,6 @@ createBtn.addEventListener('click', () => { }); }) -const createRowForContractsTable = (contract) => { - const { id, service, coast, date} = contract; - const row = tbody.insertRow(); - row.setAttribute("data-id", id); - - const cells = [service, coast, formatDate(date)]; - cells.forEach((value) => { - const cell = row.insertCell(); - cell.textContent = value; - }); - - if (currentLawyer.lawyerContracts.find(x => parseInt(x.id) === parseInt(contract.id))) { - row.classList.add("bg-success"); - dataArray.push(contract); - } - - row.addEventListener('click', () => addAndRemoveFromList(row)); -}; - const formatDate = (dateString) => { const date = new Date(dateString); const year = date.getFullYear(); diff --git a/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Specializations/specialization-update.js b/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Specializations/specialization-update.js index 59d230d..2983f1d 100644 --- a/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Specializations/specialization-update.js +++ b/CaseAccounting/CaseAccountingCustomerView/wwwroot/js/Specializations/specialization-update.js @@ -1,4 +1,5 @@ -const updateBtn = document.getElementById("update-button"); +const updateBtn = + .getElementById("update-button"); const nameInput = document.getElementById("name-input") const specializationId = document.getElementById("spec-id").dataset.id diff --git a/CaseAccounting/CaseAccountingDataBaseImplement/Migrations/20230519222316_migrTilt.Designer.cs b/CaseAccounting/CaseAccountingDataBaseImplement/Migrations/20230519222316_migrTilt.Designer.cs new file mode 100644 index 0000000..f3b72d4 --- /dev/null +++ b/CaseAccounting/CaseAccountingDataBaseImplement/Migrations/20230519222316_migrTilt.Designer.cs @@ -0,0 +1,551 @@ +// +using System; +using CaseAccountingDataBaseImplement; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace CaseAccountingDataBaseImplement.Migrations +{ + [DbContext(typeof(CaseAccountingDatabase))] + [Migration("20230519222316_migrTilt")] + partial class migrTilt + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.5") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Case", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Annotation") + .IsRequired() + .HasColumnType("text"); + + b.Property("Applicant") + .IsRequired() + .HasColumnType("text"); + + b.Property("Date") + .HasColumnType("timestamp with time zone"); + + b.Property("Defendant") + .IsRequired() + .HasColumnType("text"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text"); + + b.Property("SpecializationId") + .HasColumnType("integer"); + + b.Property("UserId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("SpecializationId"); + + b.HasIndex("UserId"); + + b.ToTable("Cases"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.CaseDeal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CaseId") + .HasColumnType("integer"); + + b.Property("DealId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("CaseId"); + + b.HasIndex("DealId"); + + b.ToTable("CaseDeals"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.CaseLawyer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CaseId") + .HasColumnType("integer"); + + b.Property("LawyerId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("CaseId"); + + b.HasIndex("LawyerId"); + + b.ToTable("CaseLawyers"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Contract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Coast") + .HasColumnType("numeric"); + + b.Property("Date") + .HasColumnType("timestamp with time zone"); + + b.Property("Service") + .IsRequired() + .HasColumnType("text"); + + b.Property("UserId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("Contracts"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Deal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Date") + .HasColumnType("timestamp with time zone"); + + b.Property("Responsibilities") + .IsRequired() + .HasColumnType("text"); + + b.Property("Subject") + .IsRequired() + .HasColumnType("text"); + + b.Property("UserId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("Deals"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.DealContract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("ContractId") + .HasColumnType("integer"); + + b.Property("DealId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("ContractId"); + + b.HasIndex("DealId"); + + b.ToTable("DealContracts"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Hearing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CaseId") + .HasColumnType("integer"); + + b.Property("Date") + .HasColumnType("timestamp with time zone"); + + b.Property("Information") + .IsRequired() + .HasColumnType("text"); + + b.Property("UserId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("CaseId"); + + b.HasIndex("UserId"); + + b.ToTable("Hearings"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Lawyer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Experience") + .HasColumnType("integer"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text"); + + b.Property("Patronymic") + .IsRequired() + .HasColumnType("text"); + + b.Property("SpecializationId") + .HasColumnType("integer"); + + b.Property("Surname") + .IsRequired() + .HasColumnType("text"); + + b.Property("UserId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("SpecializationId"); + + b.HasIndex("UserId"); + + b.ToTable("Lawyers"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.LawyerContract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("ContractId") + .HasColumnType("integer"); + + b.Property("LawyerId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("ContractId"); + + b.HasIndex("LawyerId"); + + b.ToTable("LawyerContracts"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Specialization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Name") + .IsRequired() + .HasColumnType("text"); + + b.Property("UserId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("Specializations"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Login") + .IsRequired() + .HasColumnType("text"); + + b.Property("Password") + .IsRequired() + .HasColumnType("text"); + + b.Property("Role") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.ToTable("Users"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Case", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.Specialization", "Specialization") + .WithMany("Cases") + .HasForeignKey("SpecializationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("CaseAccountingDataBaseImplement.Models.User", "User") + .WithMany("Cases") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Specialization"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.CaseDeal", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.Case", "Case") + .WithMany("Deals") + .HasForeignKey("CaseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("CaseAccountingDataBaseImplement.Models.Deal", "Deal") + .WithMany("CaseDeals") + .HasForeignKey("DealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Case"); + + b.Navigation("Deal"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.CaseLawyer", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.Case", "Case") + .WithMany("CaseLawyers") + .HasForeignKey("CaseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("CaseAccountingDataBaseImplement.Models.Lawyer", "Lawyer") + .WithMany("CaseLawyers") + .HasForeignKey("LawyerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Case"); + + b.Navigation("Lawyer"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Contract", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.User", "User") + .WithMany("Contracts") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Deal", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.User", "User") + .WithMany("Deals") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.DealContract", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.Contract", "Contract") + .WithMany("DealContracts") + .HasForeignKey("ContractId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("CaseAccountingDataBaseImplement.Models.Deal", "Deal") + .WithMany("Contracts") + .HasForeignKey("DealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Contract"); + + b.Navigation("Deal"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Hearing", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.Case", "Case") + .WithMany("Hearings") + .HasForeignKey("CaseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("CaseAccountingDataBaseImplement.Models.User", "User") + .WithMany("Hearings") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Case"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Lawyer", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.Specialization", "Specialization") + .WithMany("Lawyers") + .HasForeignKey("SpecializationId"); + + b.HasOne("CaseAccountingDataBaseImplement.Models.User", "User") + .WithMany("Lawyers") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Specialization"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.LawyerContract", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.Contract", "Contract") + .WithMany("LawyerContracts") + .HasForeignKey("ContractId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("CaseAccountingDataBaseImplement.Models.Lawyer", "Lawyer") + .WithMany("LawyerContracts") + .HasForeignKey("LawyerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Contract"); + + b.Navigation("Lawyer"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Specialization", b => + { + b.HasOne("CaseAccountingDataBaseImplement.Models.User", "User") + .WithMany("Specializations") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Case", b => + { + b.Navigation("CaseLawyers"); + + b.Navigation("Deals"); + + b.Navigation("Hearings"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Contract", b => + { + b.Navigation("DealContracts"); + + b.Navigation("LawyerContracts"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Deal", b => + { + b.Navigation("CaseDeals"); + + b.Navigation("Contracts"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Lawyer", b => + { + b.Navigation("CaseLawyers"); + + b.Navigation("LawyerContracts"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.Specialization", b => + { + b.Navigation("Cases"); + + b.Navigation("Lawyers"); + }); + + modelBuilder.Entity("CaseAccountingDataBaseImplement.Models.User", b => + { + b.Navigation("Cases"); + + b.Navigation("Contracts"); + + b.Navigation("Deals"); + + b.Navigation("Hearings"); + + b.Navigation("Lawyers"); + + b.Navigation("Specializations"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/CaseAccounting/CaseAccountingDataBaseImplement/Migrations/20230519222316_migrTilt.cs b/CaseAccounting/CaseAccountingDataBaseImplement/Migrations/20230519222316_migrTilt.cs new file mode 100644 index 0000000..bcf778e --- /dev/null +++ b/CaseAccounting/CaseAccountingDataBaseImplement/Migrations/20230519222316_migrTilt.cs @@ -0,0 +1,22 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace CaseAccountingDataBaseImplement.Migrations +{ + /// + public partial class migrTilt : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +}