mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add legal name for companies.
This commit is contained in:
6855
Marechai.Database/Migrations/20200806002515_AddCompanyLegalName.Designer.cs
generated
Normal file
6855
Marechai.Database/Migrations/20200806002515_AddCompanyLegalName.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Marechai.Database.Migrations
|
||||
{
|
||||
public partial class AddCompanyLegalName : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder) =>
|
||||
migrationBuilder.AddColumn<string>("LegalName", "companies", nullable: true);
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) =>
|
||||
migrationBuilder.DropColumn("LegalName", "companies");
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace Marechai.Database.Migrations
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "3.1.4").HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
modelBuilder.HasAnnotation("ProductVersion", "3.1.6").HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("Marechai.Database.Models.ApplicationRole", b =>
|
||||
{
|
||||
@@ -453,6 +453,8 @@ namespace Marechai.Database.Migrations
|
||||
|
||||
b.Property<bool>("FoundedMonthIsUnknown").HasColumnType("bit(1)");
|
||||
|
||||
b.Property<string>("LegalName").HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("Name").IsRequired().ValueGeneratedOnAdd().HasColumnName("name").
|
||||
HasColumnType("varchar(128)").HasDefaultValueSql("''");
|
||||
|
||||
|
||||
@@ -77,6 +77,7 @@ namespace Marechai.Database.Models
|
||||
public bool SoldMonthIsUnknown { get; set; }
|
||||
[DefaultValue(false)]
|
||||
public bool SoldDayIsUnknown { get; set; }
|
||||
public string LegalName { get; set; }
|
||||
|
||||
public virtual Iso31661Numeric Country { get; set; }
|
||||
[DisplayName("Sold to")]
|
||||
|
||||
Reference in New Issue
Block a user