调整地区实体
This commit is contained in:
@@ -239,6 +239,9 @@ namespace Atomx.Data.Migrations
|
||||
b.Property<bool>("AllowShipping")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<long>("CountryId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("DisplayOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -253,19 +256,11 @@ namespace Atomx.Data.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<int>("NumericISOCode")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<long>("ParentId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("ThreeLetterISOCode")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(3)");
|
||||
|
||||
b.Property<string>("TwoLetterISOCode")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(2)");
|
||||
b.Property<long>("StateProvinceId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
@@ -347,8 +342,11 @@ namespace Atomx.Data.Migrations
|
||||
modelBuilder.Entity("Atomx.Common.Entities.Channel", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Config")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
@@ -391,6 +389,44 @@ namespace Atomx.Data.Migrations
|
||||
b.ToTable("Channels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Atomx.Common.Entities.Country", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<bool>("AllowShipping")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<int>("DisplayOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<bool>("Enabled")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("Initial")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(1)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<int>("NumericISOCode")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ThreeLetterISOCode")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(3)");
|
||||
|
||||
b.Property<string>("TwoLetterISOCode")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(2)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Countries");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Atomx.Common.Entities.Currency", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -457,6 +493,9 @@ namespace Atomx.Data.Migrations
|
||||
b.Property<long>("Id")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("ChannelId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("CreateTime")
|
||||
.HasColumnType("timestamptz");
|
||||
|
||||
@@ -470,9 +509,6 @@ namespace Atomx.Data.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("PayChannelId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("Rate")
|
||||
.HasColumnType("numeric");
|
||||
|
||||
@@ -578,7 +614,7 @@ namespace Atomx.Data.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<int>("LanguageNumber")
|
||||
b.Property<int>("LanguageId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("Type")
|
||||
@@ -1336,6 +1372,37 @@ namespace Atomx.Data.Migrations
|
||||
b.ToTable("SpecificationAttributeOptions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Atomx.Common.Entities.StateProvince", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Abbreviation")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)");
|
||||
|
||||
b.Property<long>("CountryId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("DisplayOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<bool>("Enabled")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("Initial")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(1)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("StateProvinces");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Atomx.Common.Entities.Tag", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
|
||||
Reference in New Issue
Block a user