diff --git a/RenovationWork/RenovationWorkDatabaseImplement/Migrations/20230518164024_Start.Designer.cs b/RenovationWork/RenovationWorkDatabaseImplement/Migrations/20230518164024_Start.Designer.cs
new file mode 100644
index 0000000..edc2db4
--- /dev/null
+++ b/RenovationWork/RenovationWorkDatabaseImplement/Migrations/20230518164024_Start.Designer.cs
@@ -0,0 +1,283 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
+using RenovationWorkDatabaseImplement;
+
+#nullable disable
+
+namespace RenovationWorkDatabaseImplement.Migrations
+{
+ [DbContext(typeof(RenovationWorkDatabase))]
+ [Migration("20230518164024_Start")]
+ partial class Start
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "7.0.4")
+ .HasAnnotation("Relational:MaxIdentifierLength", 63);
+
+ NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Client", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ClientFIO")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property("Email")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property("Password")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.HasKey("Id");
+
+ b.ToTable("Clients");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Component", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ComponentName")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property("Cost")
+ .HasColumnType("double precision");
+
+ b.HasKey("Id");
+
+ b.ToTable("Components");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Implementer", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ImplementerFIO")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property("Password")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property("Qualification")
+ .HasColumnType("integer");
+
+ b.Property("WorkExperience")
+ .HasColumnType("integer");
+
+ b.HasKey("Id");
+
+ b.ToTable("Implementers");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.MessageInfo", b =>
+ {
+ b.Property("MessageId")
+ .HasColumnType("text");
+
+ b.Property("Body")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property("ClientId")
+ .HasColumnType("integer");
+
+ b.Property("DateDelivery")
+ .HasColumnType("timestamp with time zone");
+
+ b.Property("SenderName")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property("Subject")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.HasKey("MessageId");
+
+ b.ToTable("Messages");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Order", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ClientId")
+ .HasColumnType("integer");
+
+ b.Property("Count")
+ .HasColumnType("integer");
+
+ b.Property("DateCreate")
+ .HasColumnType("timestamp with time zone");
+
+ b.Property("DateImplement")
+ .HasColumnType("timestamp with time zone");
+
+ b.Property("ImplementerId")
+ .HasColumnType("integer");
+
+ b.Property("RepairId")
+ .HasColumnType("integer");
+
+ b.Property("Status")
+ .HasColumnType("integer");
+
+ b.Property("Sum")
+ .HasColumnType("double precision");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ClientId");
+
+ b.HasIndex("ImplementerId");
+
+ b.HasIndex("RepairId");
+
+ b.ToTable("Orders");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Repair", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Price")
+ .HasColumnType("double precision");
+
+ b.Property("RepairName")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.HasKey("Id");
+
+ b.ToTable("Repairs");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.RepairComponent", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ComponentId")
+ .HasColumnType("integer");
+
+ b.Property("Count")
+ .HasColumnType("integer");
+
+ b.Property("RepairId")
+ .HasColumnType("integer");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ComponentId");
+
+ b.HasIndex("RepairId");
+
+ b.ToTable("RepairComponents");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Order", b =>
+ {
+ b.HasOne("RenovationWorkDatabaseImplement.Model.Client", "Client")
+ .WithMany("Orders")
+ .HasForeignKey("ClientId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("RenovationWorkDatabaseImplement.Model.Implementer", "Implementer")
+ .WithMany("Orders")
+ .HasForeignKey("ImplementerId");
+
+ b.HasOne("RenovationWorkDatabaseImplement.Model.Repair", "Repair")
+ .WithMany()
+ .HasForeignKey("RepairId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Client");
+
+ b.Navigation("Implementer");
+
+ b.Navigation("Repair");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.RepairComponent", b =>
+ {
+ b.HasOne("RenovationWorkDatabaseImplement.Model.Component", "Component")
+ .WithMany("RepairComponents")
+ .HasForeignKey("ComponentId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("RenovationWorkDatabaseImplement.Model.Repair", "Repair")
+ .WithMany("Components")
+ .HasForeignKey("RepairId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Component");
+
+ b.Navigation("Repair");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Client", b =>
+ {
+ b.Navigation("Orders");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Component", b =>
+ {
+ b.Navigation("RepairComponents");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Implementer", b =>
+ {
+ b.Navigation("Orders");
+ });
+
+ modelBuilder.Entity("RenovationWorkDatabaseImplement.Model.Repair", b =>
+ {
+ b.Navigation("Components");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/RenovationWork/RenovationWorkDatabaseImplement/Migrations/20230518164024_Start.cs b/RenovationWork/RenovationWorkDatabaseImplement/Migrations/20230518164024_Start.cs
new file mode 100644
index 0000000..a7f4393
--- /dev/null
+++ b/RenovationWork/RenovationWorkDatabaseImplement/Migrations/20230518164024_Start.cs
@@ -0,0 +1,22 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace RenovationWorkDatabaseImplement.Migrations
+{
+ ///
+ public partial class Start : Migration
+ {
+ ///
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+
+ }
+
+ ///
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+
+ }
+ }
+}
diff --git a/RenovationWork/RenovationWorkView/FormComponent.Designer.cs b/RenovationWork/RenovationWorkView/FormComponent.Designer.cs
index 0abc9cf..d259c92 100644
--- a/RenovationWork/RenovationWorkView/FormComponent.Designer.cs
+++ b/RenovationWork/RenovationWorkView/FormComponent.Designer.cs
@@ -19,7 +19,6 @@
}
base.Dispose(disposing);
}
-
#region Windows Form Designer generated code
///
@@ -109,9 +108,7 @@
this.Load += new System.EventHandler(this.FormComponent_Load);
this.ResumeLayout(false);
this.PerformLayout();
-
}
-
#endregion
private Label ComponentNameLabel;