调整数据库结构,实现消息模板管理
This commit is contained in:
@@ -344,6 +344,53 @@ namespace Atomx.Data.Migrations
|
||||
b.ToTable("Categories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Atomx.Common.Entities.Channel", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Config")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("CreateTime")
|
||||
.HasColumnType("timestamptz");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(512)");
|
||||
|
||||
b.Property<int>("DisplayOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(20)");
|
||||
|
||||
b.Property<int>("Network")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<long>("SiteId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(20)");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime?>("UpdateTime")
|
||||
.HasColumnType("timestamptz");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Channels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Atomx.Common.Entities.Currency", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -383,6 +430,9 @@ namespace Atomx.Data.Migrations
|
||||
b.Property<decimal>("Rate")
|
||||
.HasColumnType("decimal(16, 4)");
|
||||
|
||||
b.Property<long>("SiteId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Symbolic")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(8)");
|
||||
@@ -603,6 +653,10 @@ namespace Atomx.Data.Migrations
|
||||
b.Property<long>("Id")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Attachments")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(1024)");
|
||||
|
||||
b.Property<string>("Body")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
@@ -617,10 +671,16 @@ namespace Atomx.Data.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<int>("LanguageId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<long>("SiteId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(256)");
|
||||
@@ -636,54 +696,6 @@ namespace Atomx.Data.Migrations
|
||||
b.ToTable("MessageTemplates");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Atomx.Common.Entities.PaymentChannel", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Account")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<string>("Config")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("CreateTime")
|
||||
.HasColumnType("timestamptz");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(512)");
|
||||
|
||||
b.Property<int>("DisplayOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(20)");
|
||||
|
||||
b.Property<int>("Network")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(20)");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime?>("UpdateTime")
|
||||
.HasColumnType("timestamptz");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PaymentChannels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Atomx.Common.Entities.Permission", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
|
||||
Reference in New Issue
Block a user