modal partnerji in dodajanje pri transport plan

This commit is contained in:
David Štaleker
2023-07-23 21:20:29 +02:00
parent 41639b3354
commit facfb3a726
11 changed files with 2710 additions and 112 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,37 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EveryThing.Migrations
{
public partial class _4 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "LoadingOrderLoadUnload",
table: "CodeTablePartners",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "Transporter",
table: "CodeTablePartners",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LoadingOrderLoadUnload",
table: "CodeTablePartners");
migrationBuilder.DropColumn(
name: "Transporter",
table: "CodeTablePartners");
}
}
}

View File

@@ -347,6 +347,9 @@ namespace EveryThing.Migrations
b.Property<int>("IdCountryFk")
.HasColumnType("int");
b.Property<bool>("LoadingOrderLoadUnload")
.HasColumnType("tinyint(1)");
b.Property<string>("Post")
.IsRequired()
.HasColumnType("longtext");
@@ -371,6 +374,9 @@ namespace EveryThing.Migrations
.IsRequired()
.HasColumnType("longtext");
b.Property<bool>("Transporter")
.HasColumnType("tinyint(1)");
b.HasKey("IdPartner");
b.HasIndex("IdCompanyFk");