//
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using System;
namespace CZFW.CMS.Web.Migrations
{
[DbContext(typeof(DbGen))]
[Migration("20180824104550_intial")]
partial class intial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.0.3-rtm-10026");
modelBuilder.Entity("CZFW.Framework.Entity.ClientEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasMaxLength(36);
b.Property("CompanyId");
b.Property("CreatedBy");
b.Property("CreatedTime");
b.Property("Name");
b.HasKey("Id");
b.ToTable("czfw_client");
});
modelBuilder.Entity("CZFW.Framework.Entity.SiteEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasMaxLength(36);
b.Property("ClientId")
.IsRequired()
.HasMaxLength(36);
b.Property("ContactId")
.IsRequired()
.HasMaxLength(36);
b.Property("CreatedBy")
.IsRequired()
.HasMaxLength(36);
b.Property("CreatedTime");
b.Property("Deleted");
b.Property("DeletedBy");
b.Property("DeletedTime");
b.Property("Description");
b.Property("Domain")
.IsRequired()
.HasMaxLength(1024);
b.Property("FirstOnlineTime");
b.Property("ManagerId")
.IsRequired()
.HasMaxLength(36);
b.Property("Name")
.IsRequired()
.HasMaxLength(128);
b.Property("OpenLevel");
b.Property("PayState");
b.Property("SiteExpires");
b.Property("SiteId")
.IsRequired()
.HasMaxLength(128);
b.Property("Stage");
b.Property("TestUrl")
.HasMaxLength(1024);
b.Property("TplName");
b.HasKey("Id");
b.ToTable("czcms_site");
});
modelBuilder.Entity("CZFW.Framework.Entity.SiteManager", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasMaxLength(36);
b.Property("AccessLevel");
b.Property("ClientId")
.IsRequired()
.HasMaxLength(36);
b.Property("ContactId")
.IsRequired()
.HasMaxLength(36);
b.Property("CreatedBy")
.IsRequired()
.HasMaxLength(36);
b.Property("CreatedTime");
b.Property("SiteId")
.IsRequired()
.HasMaxLength(36);
b.HasKey("Id");
b.ToTable("czfw_site_manager");
});
modelBuilder.Entity("CZFW.Framework.Entity.SysUserEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasMaxLength(36);
b.Property("Account")
.IsRequired()
.HasMaxLength(128);
b.Property("AccountState");
b.Property("Birthday");
b.Property("ClientId");
b.Property("DeleteTime");
b.Property("DeleteUserId")
.HasMaxLength(36);
b.Property("Deleted");
b.Property("DepartmentId")
.HasMaxLength(36);
b.Property("Description");
b.Property("DutyId")
.HasMaxLength(128);
b.Property("Email")
.HasMaxLength(128);
b.Property("Gender");
b.Property("HeadIcon")
.HasMaxLength(512);
b.Property("IsAdministrator");
b.Property("ManagerId")
.HasMaxLength(36);
b.Property("MobilePhone")
.HasMaxLength(128);
b.Property("NickName")
.HasMaxLength(128);
b.Property("OrganizeId")
.HasMaxLength(128);
b.Property("Password")
.HasMaxLength(64);
b.Property("RoleId")
.HasMaxLength(128);
b.Property("SecurityLevel");
b.Property("Signature")
.HasMaxLength(128);
b.Property("WeChat")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("czfw_sysuser");
});
modelBuilder.Entity("CZFW.Framework.Entity.TemplateEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasMaxLength(36);
b.Property("CopyFromTplName")
.HasMaxLength(128);
b.Property("CreatedBy")
.HasMaxLength(36);
b.Property("CreatedTime");
b.Property("Description");
b.Property("DiscountedPrice");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(128);
b.Property("Icon")
.HasMaxLength(1024);
b.Property("Name")
.HasMaxLength(128);
b.Property("Price");
b.Property("State");
b.Property("TypeId")
.HasMaxLength(36);
b.Property("ViewPath")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("czcms_template");
});
#pragma warning restore 612, 618
}
}
}