Add support to mark a company founded or sold date as having the month or the day unknown. Fixes #16.

This commit is contained in:
2020-08-04 18:20:35 +01:00
parent 94c98d5d4b
commit ba6d02ba62
12 changed files with 7053 additions and 62 deletions

View File

@@ -449,6 +449,10 @@ namespace Marechai.Database.Migrations
b.Property<DateTime?>("Founded").HasColumnName("founded").HasColumnType("datetime");
b.Property<bool>("FoundedDayIsUnknown").HasColumnType("bit(1)");
b.Property<bool>("FoundedMonthIsUnknown").HasColumnType("bit(1)");
b.Property<string>("Name").IsRequired().ValueGeneratedOnAdd().HasColumnName("name").
HasColumnType("varchar(128)").HasDefaultValueSql("''");
@@ -459,6 +463,10 @@ namespace Marechai.Database.Migrations
b.Property<DateTime?>("Sold").HasColumnName("sold").HasColumnType("datetime");
b.Property<bool>("SoldDayIsUnknown").HasColumnType("bit(1)");
b.Property<bool>("SoldMonthIsUnknown").HasColumnType("bit(1)");
b.Property<int?>("SoldToId").HasColumnName("sold_to").HasColumnType("int(11)");
b.Property<int>("Status").HasColumnName("status").HasColumnType("int(11)");