diff --git a/EveryThing/Migrations/20230523103144_2.Designer.cs b/EveryThing/Migrations/20230523103144_2.Designer.cs
new file mode 100644
index 0000000..2660e2a
--- /dev/null
+++ b/EveryThing/Migrations/20230523103144_2.Designer.cs
@@ -0,0 +1,2226 @@
+//
+using System;
+using EveryThing.Data;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace EveryThing.Migrations
+{
+ [DbContext(typeof(ApplicationDbContext))]
+ [Migration("20230523103144_2")]
+ partial class _2
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "6.0.1")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTableCompany", b =>
+ {
+ b.Property("IdCompany")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Bank")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Ceo")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("City")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Email")
+ .HasColumnType("longtext");
+
+ b.Property("HouseNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Iban")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("IdCountryFk")
+ .HasColumnType("int");
+
+ b.Property("LogoFileName")
+ .HasColumnType("longtext");
+
+ b.Property("Phone")
+ .HasColumnType("longtext");
+
+ b.Property("Post")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("PostNumber")
+ .HasColumnType("int");
+
+ b.Property("RegistrationNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("ShortTitle")
+ .HasColumnType("longtext");
+
+ b.Property("Street")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("SwiftBic")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("TaxNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("IdCompany");
+
+ b.HasIndex("IdCountryFk");
+
+ b.ToTable("CodeTableCompanies");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTableCountry", b =>
+ {
+ b.Property("IdCountry")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Code")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("TranslationSlovenian")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("IdCountry");
+
+ b.ToTable("CodeTableCountries");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTableDepartement", b =>
+ {
+ b.Property("IdDepartement")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("IdDepartement");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.ToTable("CodeTableDepartements");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTableEmployee", b =>
+ {
+ b.Property("IdEmployee")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("BankAccount")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("BirthDate")
+ .HasColumnType("datetime(6)");
+
+ b.Property("CitizenIdNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("City")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Email")
+ .HasColumnType("longtext");
+
+ b.Property("EmploymentDate")
+ .HasColumnType("datetime(6)");
+
+ b.Property("FirstName")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("GenderIdEmployee")
+ .HasColumnType("int");
+
+ b.Property("HourlyWage")
+ .HasColumnType("float");
+
+ b.Property("HouseNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("IdCitizenshipFk")
+ .HasColumnType("int");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("IdCountryFk")
+ .HasColumnType("int");
+
+ b.Property("IdDepartementFk")
+ .HasColumnType("int");
+
+ b.Property("IdJobFk")
+ .HasColumnType("int");
+
+ b.Property("IdTemporaryCountryFk")
+ .HasColumnType("int");
+
+ b.Property("LastName")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("MobileTelephone")
+ .HasColumnType("longtext");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property("Post")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("PostNumber")
+ .HasColumnType("int");
+
+ b.Property("Street")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("TaxNumber")
+ .HasColumnType("int");
+
+ b.Property("Telephone")
+ .HasColumnType("longtext");
+
+ b.Property("TemporaryCity")
+ .HasColumnType("longtext");
+
+ b.Property("TemporaryHouseNumber")
+ .HasColumnType("longtext");
+
+ b.Property("TemporaryPost")
+ .HasColumnType("longtext");
+
+ b.Property("TemporaryPostNumber")
+ .HasColumnType("int");
+
+ b.Property("TemporaryStreet")
+ .HasColumnType("longtext");
+
+ b.HasKey("IdEmployee");
+
+ b.HasIndex("GenderIdEmployee");
+
+ b.HasIndex("IdCitizenshipFk");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.HasIndex("IdCountryFk");
+
+ b.HasIndex("IdDepartementFk");
+
+ b.HasIndex("IdJobFk");
+
+ b.HasIndex("IdTemporaryCountryFk");
+
+ b.ToTable("CodeTableEmployees");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTableItem", b =>
+ {
+ b.Property("IdItem")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("CodeTableItemType")
+ .HasColumnType("int");
+
+ b.Property("Description")
+ .HasColumnType("longtext");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("IdItem");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.ToTable("CodeTableItems");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTableJob", b =>
+ {
+ b.Property("IdJob")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("IdJob");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.ToTable("CodeTableJobs");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTablePartner", b =>
+ {
+ b.Property("IdPartner")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Buyer")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("City")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Email")
+ .HasColumnType("longtext");
+
+ b.Property("HouseNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("IdCountryFk")
+ .HasColumnType("int");
+
+ b.Property("Post")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("PostNumber")
+ .HasColumnType("int");
+
+ b.Property("RegistrationNumber")
+ .HasColumnType("longtext");
+
+ b.Property("Street")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Supplier")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("TaxNumber")
+ .HasColumnType("longtext");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("IdPartner");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.HasIndex("IdCountryFk");
+
+ b.ToTable("CodeTablePartners");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTablePrePostText", b =>
+ {
+ b.Property("IdPrePostText")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Content")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.HasKey("IdPrePostText");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.ToTable("CodeTablePrePostText");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTablePrePostTextLink", b =>
+ {
+ b.Property("IdPrePostTextLink")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("IdPrePostTextFk")
+ .HasColumnType("int");
+
+ b.Property("Link")
+ .HasColumnType("int");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.HasKey("IdPrePostTextLink");
+
+ b.HasIndex("IdPrePostTextFk");
+
+ b.ToTable("CodeTablePrePostTextLink");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Document", b =>
+ {
+ b.Property("IdDocument")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("ExpirationDate")
+ .HasColumnType("datetime(6)");
+
+ b.Property("IdDocumentTypeFk")
+ .HasColumnType("int");
+
+ b.Property("IdReferenceFk")
+ .HasColumnType("int");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property("Number")
+ .HasColumnType("longtext");
+
+ b.Property("Reference")
+ .HasColumnType("longtext");
+
+ b.HasKey("IdDocument");
+
+ b.HasIndex("IdDocumentTypeFk");
+
+ b.ToTable("Documents");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.DocumentType", b =>
+ {
+ b.Property("IdDocumentType")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("DocumentTypeReference")
+ .HasColumnType("int");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("IdDocumentType");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.ToTable("DocumentTypes");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.File", b =>
+ {
+ b.Property("IdFile")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("DateOfUpload")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Extension")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("FileType")
+ .HasColumnType("int");
+
+ b.Property("Guid")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("IdReferenceFk")
+ .HasColumnType("int");
+
+ b.Property("Iv")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property("Salt")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("IdFile");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.ToTable("Files");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.GeneralNote", b =>
+ {
+ b.Property("IdNote")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("DateReminder")
+ .HasColumnType("datetime(6)");
+
+ b.Property("DateSubmitted")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Description")
+ .HasColumnType("longtext");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("IdEmployeeFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleFk")
+ .HasColumnType("int");
+
+ b.Property("Status")
+ .HasColumnType("int");
+
+ b.HasKey("IdNote");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.HasIndex("IdEmployeeFk");
+
+ b.HasIndex("IdVehicleFk");
+
+ b.ToTable("GeneralNotes");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.IdentityApplicationRole", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("IdRole");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasColumnType("longtext");
+
+ b.Property("Description")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Name")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("NormalizedName")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("NormalizedName")
+ .IsUnique()
+ .HasDatabaseName("RoleNameIndex");
+
+ b.ToTable("IdentityRole", (string)null);
+ });
+
+ modelBuilder.Entity("EveryThing.Models.IdentityApplicationUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("IdUser");
+
+ b.Property("AccessFailedCount")
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasColumnType("longtext");
+
+ b.Property("DateCreated")
+ .HasColumnType("datetime(6)");
+
+ b.Property("DateValidUntil")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Email")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("EmailConfirmed")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("LockoutEnabled")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("LockoutEnd")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("NormalizedEmail")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("NormalizedUserName")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("PasswordHash")
+ .HasColumnType("longtext");
+
+ b.Property("PhoneNumber")
+ .HasColumnType("longtext");
+
+ b.Property("PhoneNumberConfirmed")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("SecurityStamp")
+ .HasColumnType("longtext");
+
+ b.Property("Surname")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("TwoFactorEnabled")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("UserName")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.HasIndex("NormalizedEmail")
+ .HasDatabaseName("EmailIndex");
+
+ b.HasIndex("NormalizedUserName")
+ .IsUnique()
+ .HasDatabaseName("UserNameIndex");
+
+ b.ToTable("IdentityUser", (string)null);
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Invoice.Invoice", b =>
+ {
+ b.Property("IdInvoice")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("BuyersOrderNumber")
+ .HasColumnType("longtext");
+
+ b.Property("Date")
+ .HasColumnType("datetime(6)");
+
+ b.Property("DateOfDispatch")
+ .HasColumnType("datetime(6)");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("IdPartnerFk")
+ .IsRequired()
+ .HasColumnType("int");
+
+ b.Property("InvoiceNumber")
+ .HasColumnType("int");
+
+ b.Property("InvoiceYear")
+ .HasColumnType("int");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property("PostText")
+ .HasColumnType("longtext");
+
+ b.Property("PreText")
+ .HasColumnType("longtext");
+
+ b.Property("State")
+ .HasColumnType("int");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.HasKey("IdInvoice");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.HasIndex("IdPartnerFk");
+
+ b.ToTable("Invoices");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Invoice.InvoiceItem", b =>
+ {
+ b.Property("IdInvoiceItem")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Discount")
+ .HasColumnType("double");
+
+ b.Property("IdInvoiceFk")
+ .HasColumnType("int");
+
+ b.Property("IdInvoiceItemJoinFk")
+ .HasColumnType("int");
+
+ b.Property("IdItemFk")
+ .HasColumnType("int");
+
+ b.Property("IdProjectPartItem")
+ .HasColumnType("int");
+
+ b.Property("ItemDescription")
+ .HasColumnType("longtext");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property("Price")
+ .HasColumnType("double");
+
+ b.Property("Quantity")
+ .HasColumnType("double");
+
+ b.Property("State")
+ .HasColumnType("int");
+
+ b.Property("Tax")
+ .HasColumnType("double");
+
+ b.Property("UnlistedItem")
+ .HasColumnType("longtext");
+
+ b.HasKey("IdInvoiceItem");
+
+ b.HasIndex("IdInvoiceFk");
+
+ b.HasIndex("IdInvoiceItemJoinFk");
+
+ b.HasIndex("IdItemFk");
+
+ b.ToTable("InvoiceItems");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Transport.TransportLoadingOrder", b =>
+ {
+ b.Property("IdTransportLoadingOrder")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("IdPartnerFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleFk")
+ .HasColumnType("int");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property("OrderCity")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("OrderDate")
+ .HasColumnType("datetime(6)");
+
+ b.Property("OrderNumber")
+ .HasColumnType("int");
+
+ b.Property("OrderYear")
+ .HasColumnType("int");
+
+ b.Property("PostText")
+ .HasColumnType("longtext");
+
+ b.Property("PreText")
+ .HasColumnType("longtext");
+
+ b.Property("Total")
+ .HasColumnType("float");
+
+ b.Property("VehicleText")
+ .HasColumnType("longtext");
+
+ b.HasKey("IdTransportLoadingOrder");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.HasIndex("IdPartnerFk");
+
+ b.HasIndex("IdVehicleFk");
+
+ b.ToTable("TransportLoadingOrders");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Transport.TransportLoadingOrderLoadUnload", b =>
+ {
+ b.Property("IdTransportLoadingOrderLoadUnload")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("CargoDescription")
+ .HasColumnType("longtext");
+
+ b.Property("IdLoadingFk")
+ .HasColumnType("int");
+
+ b.Property("IdTransportLoadingOrderFk")
+ .HasColumnType("int");
+
+ b.Property("IdUnloadingFk")
+ .HasColumnType("int");
+
+ b.Property("LoadingDateFrom")
+ .HasColumnType("datetime(6)");
+
+ b.Property("LoadingDateTo")
+ .HasColumnType("datetime(6)");
+
+ b.Property("LoadingNote")
+ .HasColumnType("longtext");
+
+ b.Property("LoadingReference")
+ .HasColumnType("longtext");
+
+ b.Property("LoadingText")
+ .HasColumnType("longtext");
+
+ b.Property("UnloadingDateFrom")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UnloadingDateTo")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UnloadingNote")
+ .HasColumnType("longtext");
+
+ b.Property("UnloadingReference")
+ .HasColumnType("longtext");
+
+ b.Property("UnloadingText")
+ .HasColumnType("longtext");
+
+ b.HasKey("IdTransportLoadingOrderLoadUnload");
+
+ b.HasIndex("IdLoadingFk");
+
+ b.HasIndex("IdTransportLoadingOrderFk");
+
+ b.HasIndex("IdUnloadingFk");
+
+ b.ToTable("TransportLoadingOrderLoadUnloads");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Vehicle.Vehicle", b =>
+ {
+ b.Property("IdVehicle")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Active")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("EngineNumber")
+ .HasColumnType("longtext");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("IdDepartementFk")
+ .HasColumnType("int");
+
+ b.Property("IdFuelTypeFk")
+ .HasColumnType("int");
+
+ b.Property("IdMakeFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleGroupFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleTypeFk")
+ .HasColumnType("int");
+
+ b.Property("Model")
+ .HasColumnType("longtext");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property("RegistrationNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("VehicleMeterType")
+ .HasColumnType("int");
+
+ b.Property("VinNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Year")
+ .HasColumnType("int");
+
+ b.HasKey("IdVehicle");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.HasIndex("IdDepartementFk");
+
+ b.HasIndex("IdFuelTypeFk");
+
+ b.HasIndex("IdMakeFk");
+
+ b.HasIndex("IdVehicleGroupFk");
+
+ b.HasIndex("IdVehicleTypeFk");
+
+ b.ToTable("Vehicles");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Vehicle.VehicleBreakdown", b =>
+ {
+ b.Property("IdVehicleBreakdown")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("DateBreakdown")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Description")
+ .HasColumnType("longtext");
+
+ b.Property("EmployeeIdEmployee")
+ .HasColumnType("int");
+
+ b.Property("IdCompanyFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleFk")
+ .HasColumnType("int");
+
+ b.Property("Meter")
+ .HasColumnType("int");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property("Reference")
+ .HasColumnType("longtext");
+
+ b.HasKey("IdVehicleBreakdown");
+
+ b.HasIndex("EmployeeIdEmployee");
+
+ b.HasIndex("IdCompanyFk");
+
+ b.ToTable("VehicleBreakdowns");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Vehicle.VehicleDrive", b =>
+ {
+ b.Property("IdVehicleDrive")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("DateEnd")
+ .HasColumnType("datetime(6)");
+
+ b.Property("DateStart")
+ .HasColumnType("datetime(6)");
+
+ b.Property("IdEmployeeFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleFk")
+ .HasColumnType("int");
+
+ b.Property("MileageEnd")
+ .HasColumnType("int");
+
+ b.Property("MileageStart")
+ .HasColumnType("int");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.HasKey("IdVehicleDrive");
+
+ b.HasIndex("IdEmployeeFk");
+
+ b.HasIndex("IdVehicleFk");
+
+ b.ToTable("VehicleDrives");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Vehicle.VehicleDriver", b =>
+ {
+ b.Property("IdVehicleDriver")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("IdEmployeeFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleFk")
+ .HasColumnType("int");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.HasKey("IdVehicleDriver");
+
+ b.HasIndex("IdEmployeeFk");
+
+ b.HasIndex("IdVehicleFk");
+
+ b.ToTable("VehicleDrivers");
+ });
+
+ modelBuilder.Entity("EveryThing.Models.Vehicle.VehicleFueling", b =>
+ {
+ b.Property("IdVehicleFueling")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Amount")
+ .HasColumnType("double");
+
+ b.Property("City")
+ .HasColumnType("longtext");
+
+ b.Property("DateOfFueling")
+ .HasColumnType("datetime(6)");
+
+ b.Property("FuelingCardInvoiceDate")
+ .HasColumnType("datetime(6)");
+
+ b.Property("FuelingCardInvoiceNumber")
+ .HasColumnType("longtext");
+
+ b.Property("FullTank")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IdCountryFk")
+ .HasColumnType("int");
+
+ b.Property("IdEmployeeFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleFuelTypeFk")
+ .HasColumnType("int");
+
+ b.Property("IdVehicleFuelingCardFk")
+ .HasColumnType("int");
+
+ b.Property("Mileage")
+ .HasColumnType("int");
+
+ b.Property("Note")
+ .HasColumnType("longtext");
+
+ b.Property