123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- // <auto-generated />
- 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<string>("Id")
- .ValueGeneratedOnAdd()
- .HasMaxLength(36);
- b.Property<string>("CompanyId");
- b.Property<string>("CreatedBy");
- b.Property<DateTime>("CreatedTime");
- b.Property<string>("Name");
- b.HasKey("Id");
- b.ToTable("czfw_client");
- });
- modelBuilder.Entity("CZFW.Framework.Entity.SiteEntity", b =>
- {
- b.Property<string>("Id")
- .ValueGeneratedOnAdd()
- .HasMaxLength(36);
- b.Property<string>("ClientId")
- .IsRequired()
- .HasMaxLength(36);
- b.Property<string>("ContactId")
- .IsRequired()
- .HasMaxLength(36);
- b.Property<string>("CreatedBy")
- .IsRequired()
- .HasMaxLength(36);
- b.Property<DateTime>("CreatedTime");
- b.Property<bool>("Deleted");
- b.Property<string>("DeletedBy");
- b.Property<DateTime?>("DeletedTime");
- b.Property<string>("Description");
- b.Property<string>("Domain")
- .IsRequired()
- .HasMaxLength(1024);
- b.Property<DateTime?>("FirstOnlineTime");
- b.Property<string>("ManagerId")
- .IsRequired()
- .HasMaxLength(36);
- b.Property<string>("Name")
- .IsRequired()
- .HasMaxLength(128);
- b.Property<int>("OpenLevel");
- b.Property<int>("PayState");
- b.Property<DateTime?>("SiteExpires");
- b.Property<string>("SiteId")
- .IsRequired()
- .HasMaxLength(128);
- b.Property<int>("Stage");
- b.Property<string>("TestUrl")
- .HasMaxLength(1024);
- b.Property<string>("TplName");
- b.HasKey("Id");
- b.ToTable("czcms_site");
- });
- modelBuilder.Entity("CZFW.Framework.Entity.SiteManager", b =>
- {
- b.Property<string>("Id")
- .ValueGeneratedOnAdd()
- .HasMaxLength(36);
- b.Property<int>("AccessLevel");
- b.Property<string>("ClientId")
- .IsRequired()
- .HasMaxLength(36);
- b.Property<string>("ContactId")
- .IsRequired()
- .HasMaxLength(36);
- b.Property<string>("CreatedBy")
- .IsRequired()
- .HasMaxLength(36);
- b.Property<DateTime>("CreatedTime");
- b.Property<string>("SiteId")
- .IsRequired()
- .HasMaxLength(36);
- b.HasKey("Id");
- b.ToTable("czfw_site_manager");
- });
- modelBuilder.Entity("CZFW.Framework.Entity.SysUserEntity", b =>
- {
- b.Property<string>("Id")
- .ValueGeneratedOnAdd()
- .HasMaxLength(36);
- b.Property<string>("Account")
- .IsRequired()
- .HasMaxLength(128);
- b.Property<int>("AccountState");
- b.Property<DateTime?>("Birthday");
- b.Property<string>("ClientId");
- b.Property<DateTime?>("DeleteTime");
- b.Property<string>("DeleteUserId")
- .HasMaxLength(36);
- b.Property<bool?>("Deleted");
- b.Property<string>("DepartmentId")
- .HasMaxLength(36);
- b.Property<string>("Description");
- b.Property<string>("DutyId")
- .HasMaxLength(128);
- b.Property<string>("Email")
- .HasMaxLength(128);
- b.Property<int?>("Gender");
- b.Property<string>("HeadIcon")
- .HasMaxLength(512);
- b.Property<bool?>("IsAdministrator");
- b.Property<string>("ManagerId")
- .HasMaxLength(36);
- b.Property<string>("MobilePhone")
- .HasMaxLength(128);
- b.Property<string>("NickName")
- .HasMaxLength(128);
- b.Property<string>("OrganizeId")
- .HasMaxLength(128);
- b.Property<string>("Password")
- .HasMaxLength(64);
- b.Property<string>("RoleId")
- .HasMaxLength(128);
- b.Property<int?>("SecurityLevel");
- b.Property<string>("Signature")
- .HasMaxLength(128);
- b.Property<string>("WeChat")
- .HasMaxLength(128);
- b.HasKey("Id");
- b.ToTable("czfw_sysuser");
- });
- modelBuilder.Entity("CZFW.Framework.Entity.TemplateEntity", b =>
- {
- b.Property<string>("Id")
- .ValueGeneratedOnAdd()
- .HasMaxLength(36);
- b.Property<string>("CopyFromTplName")
- .HasMaxLength(128);
- b.Property<string>("CreatedBy")
- .HasMaxLength(36);
- b.Property<DateTime>("CreatedTime");
- b.Property<string>("Description");
- b.Property<decimal>("DiscountedPrice");
- b.Property<string>("DisplayName")
- .IsRequired()
- .HasMaxLength(128);
- b.Property<string>("Icon")
- .HasMaxLength(1024);
- b.Property<string>("Name")
- .HasMaxLength(128);
- b.Property<decimal>("Price");
- b.Property<int>("State");
- b.Property<string>("TypeId")
- .HasMaxLength(36);
- b.Property<string>("ViewPath")
- .HasMaxLength(128);
- b.HasKey("Id");
- b.ToTable("czcms_template");
- });
- #pragma warning restore 612, 618
- }
- }
- }
|