1407 lines
49 KiB
C#
1407 lines
49 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
using System;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
using wtmProject.DataAccess;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace wtmProject.DataAccess.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(DataContext))]
|
|||
|
|
[Migration("20240326095031_hmr2024032601")]
|
|||
|
|
partial class hmr2024032601
|
|||
|
|
{
|
|||
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder
|
|||
|
|
.HasAnnotation("ProductVersion", "6.0.21")
|
|||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|||
|
|
|
|||
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.ActionLog", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActionName")
|
|||
|
|
.HasMaxLength(255)
|
|||
|
|
.HasColumnType("nvarchar(255)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("ActionTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActionUrl")
|
|||
|
|
.HasMaxLength(250)
|
|||
|
|
.HasColumnType("nvarchar(250)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<double>("Duration")
|
|||
|
|
.HasColumnType("float");
|
|||
|
|
|
|||
|
|
b.Property<string>("IP")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ITCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<int>("LogType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("ModuleName")
|
|||
|
|
.HasMaxLength(255)
|
|||
|
|
.HasColumnType("nvarchar(255)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("ActionLogs");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.DataPrivilege", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("Domain")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("GroupCode")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("RelateId")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TableName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserCode")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("DataPrivileges");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FileAttachment", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraInfo")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<byte[]>("FileData")
|
|||
|
|
.HasColumnType("varbinary(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("FileExt")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(10)
|
|||
|
|
.HasColumnType("nvarchar(10)");
|
|||
|
|
|
|||
|
|
b.Property<string>("FileName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("HandlerInfo")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<long>("Length")
|
|||
|
|
.HasColumnType("bigint");
|
|||
|
|
|
|||
|
|
b.Property<string>("Path")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("SaveMode")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("UploadTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FileAttachments");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkGroup", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("GroupCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("GroupName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("GroupRemark")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Manager")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ParentId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.HasIndex("ParentId");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkGroups");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActionName")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClassName")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<int?>("DisplayOrder")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("Domain")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("FolderOnly")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("Icon")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsInherit")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<bool?>("IsInside")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsPublic")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("MethodName")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ModuleName")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("PageName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(100)
|
|||
|
|
.HasColumnType("nvarchar(100)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ParentId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<bool>("ShowOnMenu")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<bool?>("TenantAllowed")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("Url")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.HasIndex("ParentId");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkMenus");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkRole", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("RoleCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("RoleName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("RoleRemark")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkRoles");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkTenant", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("DbContext")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("EnableSub")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<bool>("Enabled")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("TCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TDb")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<int?>("TDbType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("TDomain")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkTenants");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUser", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("Address")
|
|||
|
|
.HasMaxLength(200)
|
|||
|
|
.HasColumnType("nvarchar(200)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CellPhone")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("Email")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<int?>("Gender")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("HomePhone")
|
|||
|
|
.HasMaxLength(30)
|
|||
|
|
.HasColumnType("nvarchar(30)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ITCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsValid")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Password")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(32)
|
|||
|
|
.HasColumnType("nvarchar(32)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("PhotoId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("ZipCode")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.HasIndex("PhotoId");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkUsers");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUserGroup", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("GroupCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkUserGroups");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUserRole", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("RoleCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkUserRoles");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkWorkflow", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActivityId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ModelID")
|
|||
|
|
.HasMaxLength(100)
|
|||
|
|
.HasColumnType("nvarchar(100)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ModelType")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("StartTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("Submitter")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Tag")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("WorkflowId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("WorkflowName")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkWorkflows");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FunctionPrivilege", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<bool?>("Allowed")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("MenuItemId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("RoleCode")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FunctionPrivileges");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.Models.Elsa_Bookmark", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<string>("ID")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)")
|
|||
|
|
.HasColumnName("Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActivityId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActivityType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CorrelationId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Hash")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Model")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ModelType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantId")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("WorkflowInstanceId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("Bookmarks", "Elsa");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.Models.Elsa_Trigger", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<string>("ID")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)")
|
|||
|
|
.HasColumnName("Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActivityId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActivityType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Hash")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Model")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ModelType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantId")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("WorkflowDefinitionId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("Triggers", "Elsa");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.Models.Elsa_WorkflowDefinition", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<string>("ID")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)")
|
|||
|
|
.HasColumnName("Id");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset>("CreatedAt")
|
|||
|
|
.HasColumnType("datetimeoffset");
|
|||
|
|
|
|||
|
|
b.Property<string>("Data")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DefinitionId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("DeleteCompletedInstances")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("Description")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayName")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsLatest")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsPublished")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsSingleton")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<int>("PersistenceBehavior")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("Tag")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantId")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<int>("Version")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("WorkflowDefinitions", "Elsa");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.Models.Elsa_WorkflowExecutionLogRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<string>("ID")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)")
|
|||
|
|
.HasColumnName("Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActivityId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ActivityType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Data")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("EventName")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Message")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Source")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantId")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset>("Timestamp")
|
|||
|
|
.HasColumnType("datetimeoffset");
|
|||
|
|
|
|||
|
|
b.Property<string>("WorkflowInstanceId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("WorkflowExecutionLogRecords", "Elsa");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.Models.Elsa_WorkflowInstance", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<string>("ID")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)")
|
|||
|
|
.HasColumnName("Id");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset?>("CancelledAt")
|
|||
|
|
.HasColumnType("datetimeoffset");
|
|||
|
|
|
|||
|
|
b.Property<string>("ContextId")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ContextType")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CorrelationId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset?>("CreatedAt")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("datetimeoffset");
|
|||
|
|
|
|||
|
|
b.Property<string>("Data")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DefinitionId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DefinitionVersionId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset?>("FaultedAt")
|
|||
|
|
.HasColumnType("datetimeoffset");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset?>("FinishedAt")
|
|||
|
|
.HasColumnType("datetimeoffset");
|
|||
|
|
|
|||
|
|
b.Property<string>("LastExecutedActivityId")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset?>("LastExecutedAt")
|
|||
|
|
.HasColumnType("datetimeoffset");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantId")
|
|||
|
|
.HasMaxLength(450)
|
|||
|
|
.HasColumnType("nvarchar(450)");
|
|||
|
|
|
|||
|
|
b.Property<int>("Version")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<int>("WorkflowStatus")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("WorkflowInstances", "Elsa");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.FrameworkCustom", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("CustomCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CustomName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkCustoms");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.FrameworkOutRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("City")
|
|||
|
|
.HasMaxLength(200)
|
|||
|
|
.HasColumnType("nvarchar(200)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CustomId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("OutEndTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OutRecordType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("OutStartTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ProjectId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasMaxLength(500)
|
|||
|
|
.HasColumnType("nvarchar(500)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("UserId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.HasIndex("CustomId");
|
|||
|
|
|
|||
|
|
b.HasIndex("ProjectId");
|
|||
|
|
|
|||
|
|
b.HasIndex("UserId");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkOutRecords");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.FrameworkPost", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("PostCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("PostName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkPosts");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.FrameworkProject", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProjectCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProjectName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkProjects");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.FrameworkUserPost", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("PostCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("FrameworkUserPosts");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.WTM_AREA", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("AreaCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("AreaName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("WTM_AREA");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.WTM_PROJECT", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProjectCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProjectName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("WTM_PROJECT");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.WTM_USER", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CellPhone")
|
|||
|
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Code")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DepartmentId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<int?>("Gender")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsValid")
|
|||
|
|
.HasColumnType("bit");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Password")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(32)
|
|||
|
|
.HasColumnType("nvarchar(32)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("PhotoId")
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.HasIndex("DepartmentId");
|
|||
|
|
|
|||
|
|
b.HasIndex("PhotoId");
|
|||
|
|
|
|||
|
|
b.ToTable("WTM_USER");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.WTM_USER_AREA", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("AreaCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("WTM_USER_AREA");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.WTM_USER_PROJECT", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|
|||
|
|
b.Property<string>("CreateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CreateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProjectCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantCode")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateBy")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("UpdateTime")
|
|||
|
|
.HasColumnType("datetime2");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserCode")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("nvarchar(50)");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("WTM_USER_PROJECT");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkGroup", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("WalkingTec.Mvvm.Core.FrameworkGroup", "Parent")
|
|||
|
|
.WithMany("Children")
|
|||
|
|
.HasForeignKey("ParentId");
|
|||
|
|
|
|||
|
|
b.Navigation("Parent");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("WalkingTec.Mvvm.Core.FrameworkMenu", "Parent")
|
|||
|
|
.WithMany("Children")
|
|||
|
|
.HasForeignKey("ParentId");
|
|||
|
|
|
|||
|
|
b.Navigation("Parent");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUser", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("WalkingTec.Mvvm.Core.FileAttachment", "Photo")
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("PhotoId")
|
|||
|
|
.OnDelete(DeleteBehavior.Restrict);
|
|||
|
|
|
|||
|
|
b.Navigation("Photo");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.FrameworkOutRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("wtmProject.Model.FrameworkCustom", "Custom")
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("CustomId");
|
|||
|
|
|
|||
|
|
b.HasOne("wtmProject.Model.FrameworkProject", "Project")
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("ProjectId");
|
|||
|
|
|
|||
|
|
b.HasOne("WalkingTec.Mvvm.Core.FrameworkUser", "User")
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("UserId");
|
|||
|
|
|
|||
|
|
b.Navigation("Custom");
|
|||
|
|
|
|||
|
|
b.Navigation("Project");
|
|||
|
|
|
|||
|
|
b.Navigation("User");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("wtmProject.Model.WTM_USER", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("WalkingTec.Mvvm.Core.FrameworkGroup", "Department")
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("DepartmentId");
|
|||
|
|
|
|||
|
|
b.HasOne("WalkingTec.Mvvm.Core.FileAttachment", "Photo")
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("PhotoId")
|
|||
|
|
.OnDelete(DeleteBehavior.Restrict);
|
|||
|
|
|
|||
|
|
b.Navigation("Department");
|
|||
|
|
|
|||
|
|
b.Navigation("Photo");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkGroup", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("Children");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("Children");
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|