mh_custom/wtmProject.DataAccess/Migrations/20240712073423_hmr2024071201.Designer.cs
2026-01-06 10:55:05 +08:00

2134 lines
76 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("20240712073423_hmr2024071201")]
partial class hmr2024071201
{
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>("CellPhone")
.HasColumnType("nvarchar(max)");
b.Property<string>("CreateBy")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<int?>("DisplayOrder")
.HasColumnType("int");
b.Property<int?>("Gender")
.HasColumnType("int");
b.Property<Guid?>("GroupId")
.HasColumnType("uniqueidentifier");
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.HasKey("ID");
b.HasIndex("GroupId");
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_BILLING_LIST", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("AreaId")
.HasColumnType("uniqueidentifier");
b.Property<decimal?>("BillingAmount")
.HasColumnType("decimal(18,2)");
b.Property<int?>("BillingCycle")
.HasColumnType("int");
b.Property<DateTime?>("BillingDate")
.HasColumnType("datetime2");
b.Property<int?>("CheckStatus")
.HasColumnType("int");
b.Property<decimal?>("ContractAmount")
.HasColumnType("decimal(18,2)");
b.Property<int?>("ContractCycle")
.HasColumnType("int");
b.Property<Guid?>("ContractId")
.HasColumnType("uniqueidentifier");
b.Property<string>("CreateBy")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<Guid?>("CustomId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("MarkManageId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("ProjectId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("ProjectManageId")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("ReceivedDate")
.HasColumnType("datetime2");
b.Property<int?>("ReceivedStatus")
.HasColumnType("int");
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?>("VisitObjectId")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("AreaId");
b.HasIndex("ContractId");
b.HasIndex("CustomId");
b.HasIndex("MarkManageId");
b.HasIndex("ProjectId");
b.HasIndex("ProjectManageId");
b.HasIndex("VisitObjectId");
b.ToTable("WTM_BILLING_LIST");
});
modelBuilder.Entity("wtmProject.Model.WTM_BILLING_LIST_BILLING_FILE", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("BillingId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("FileId")
.HasColumnType("uniqueidentifier");
b.Property<int>("Order")
.HasColumnType("int");
b.HasKey("ID");
b.HasIndex("BillingId");
b.HasIndex("FileId");
b.ToTable("WTM_BILLING_LIST_BILLING_FILE");
});
modelBuilder.Entity("wtmProject.Model.WTM_BILLING_LIST_RECEIVED_FILE", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("BillingId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("FileId")
.HasColumnType("uniqueidentifier");
b.Property<int>("Order")
.HasColumnType("int");
b.HasKey("ID");
b.HasIndex("BillingId");
b.HasIndex("FileId");
b.ToTable("WTM_BILLING_LIST_RECEIVED_FILE");
});
modelBuilder.Entity("wtmProject.Model.WTM_BUSINESS", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("AreaId")
.HasColumnType("uniqueidentifier");
b.Property<string>("BusinessName")
.HasColumnType("nvarchar(max)");
b.Property<string>("BusinessProject")
.HasColumnType("nvarchar(max)");
b.Property<int?>("BusinessStatus")
.HasColumnType("int");
b.Property<string>("CreateBy")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<Guid?>("CustomId")
.HasColumnType("uniqueidentifier");
b.Property<string>("Follow")
.HasColumnType("nvarchar(max)");
b.Property<int?>("IndustryType")
.HasColumnType("int");
b.Property<Guid?>("MarkManageId")
.HasColumnType("uniqueidentifier");
b.Property<string>("Negotiation")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("ProjectId")
.HasColumnType("uniqueidentifier");
b.Property<string>("Proposal")
.HasColumnType("nvarchar(max)");
b.Property<string>("Requirement")
.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.Property<Guid?>("VisitObjectId")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("AreaId");
b.HasIndex("CustomId");
b.HasIndex("MarkManageId");
b.HasIndex("ProjectId");
b.HasIndex("VisitObjectId");
b.ToTable("WTM_BUSINESS");
});
modelBuilder.Entity("wtmProject.Model.WTM_CONTRACT", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("AreaId")
.HasColumnType("uniqueidentifier");
b.Property<decimal?>("ContractAmount")
.HasColumnType("decimal(18,2)");
b.Property<string>("ContractCode")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int?>("ContractCycle")
.HasColumnType("int");
b.Property<string>("ContractName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<decimal?>("CostAmount")
.HasColumnType("decimal(18,2)");
b.Property<string>("CreateBy")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<int?>("CustomClass")
.HasColumnType("int");
b.Property<Guid?>("CustomId")
.HasColumnType("uniqueidentifier");
b.Property<string>("ERPCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("ERPName")
.HasColumnType("nvarchar(max)");
b.Property<string>("GrossProfitMargin")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<Guid?>("MarkManageId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("ProjectId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("ProjectManageId")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("SignDate")
.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<Guid?>("VisitObjectId")
.HasColumnType("uniqueidentifier");
b.Property<string>("Year")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.HasIndex("AreaId");
b.HasIndex("CustomId");
b.HasIndex("MarkManageId");
b.HasIndex("ProjectId");
b.HasIndex("ProjectManageId");
b.HasIndex("VisitObjectId");
b.ToTable("WTM_CONTRACT");
});
modelBuilder.Entity("wtmProject.Model.WTM_CONTRACT_FILE", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("ContractId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("FileId")
.HasColumnType("uniqueidentifier");
b.Property<int>("Order")
.HasColumnType("int");
b.HasKey("ID");
b.HasIndex("ContractId");
b.HasIndex("FileId");
b.ToTable("WTM_CONTRACT_FILE");
});
modelBuilder.Entity("wtmProject.Model.WTM_CUSTOM", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("AreaId")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.Property<string>("CreateBy")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<string>("CustomAllName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("CustomCity")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int?>("CustomClass")
.HasColumnType("int");
b.Property<Guid?>("CustomId")
.HasColumnType("uniqueidentifier");
b.Property<string>("CustomShortName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int?>("EnterprisesType")
.HasColumnType("int");
b.Property<int?>("IndustryType")
.HasColumnType("int");
b.Property<string>("ParentUnit")
.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.HasIndex("AreaId");
b.HasIndex("CustomId");
b.ToTable("WTM_CUSTOM");
});
modelBuilder.Entity("wtmProject.Model.WTM_CUSTOM_PERSON", 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<Guid?>("CustomId")
.HasColumnType("uniqueidentifier");
b.Property<string>("PersonName")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PersonPhone")
.HasColumnType("nvarchar(max)");
b.Property<string>("PersonPost")
.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.HasIndex("CustomId");
b.ToTable("WTM_CUSTOM_PERSON");
});
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_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("wtmProject.Model.WTM_VISIT_PLAN", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("AreaId")
.HasColumnType("uniqueidentifier");
b.Property<string>("CreateBy")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<Guid?>("CustomId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("MarkManageId")
.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<DateTime?>("VisitEndTime")
.HasColumnType("datetime2");
b.Property<Guid?>("VisitObjectId")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("VisitStartTime")
.HasColumnType("datetime2");
b.Property<string>("VisitTarget")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.HasKey("ID");
b.HasIndex("AreaId");
b.HasIndex("CustomId");
b.HasIndex("MarkManageId");
b.HasIndex("VisitObjectId");
b.ToTable("WTM_VISIT_PLAN");
});
modelBuilder.Entity("wtmProject.Model.WTM_VISIT_PLAN_USER", 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>("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.Property<Guid?>("VisitPlanId")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("UserId");
b.HasIndex("VisitPlanId");
b.ToTable("WTM_VISIT_PLAN_USER");
});
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.FrameworkGroup", "Group")
.WithMany()
.HasForeignKey("GroupId")
.OnDelete(DeleteBehavior.Restrict);
b.HasOne("WalkingTec.Mvvm.Core.FileAttachment", "Photo")
.WithMany()
.HasForeignKey("PhotoId")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Group");
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_BILLING_LIST", b =>
{
b.HasOne("wtmProject.Model.WTM_AREA", "Area")
.WithMany()
.HasForeignKey("AreaId");
b.HasOne("wtmProject.Model.WTM_CONTRACT", "Contract")
.WithMany()
.HasForeignKey("ContractId");
b.HasOne("wtmProject.Model.WTM_CUSTOM", "Custom")
.WithMany()
.HasForeignKey("CustomId");
b.HasOne("WalkingTec.Mvvm.Core.FrameworkUser", "MarkManage")
.WithMany()
.HasForeignKey("MarkManageId");
b.HasOne("wtmProject.Model.WTM_PROJECT", "Project")
.WithMany()
.HasForeignKey("ProjectId");
b.HasOne("WalkingTec.Mvvm.Core.FrameworkUser", "ProjectManage")
.WithMany()
.HasForeignKey("ProjectManageId");
b.HasOne("wtmProject.Model.WTM_CUSTOM_PERSON", "VisitObject")
.WithMany()
.HasForeignKey("VisitObjectId");
b.Navigation("Area");
b.Navigation("Contract");
b.Navigation("Custom");
b.Navigation("MarkManage");
b.Navigation("Project");
b.Navigation("ProjectManage");
b.Navigation("VisitObject");
});
modelBuilder.Entity("wtmProject.Model.WTM_BILLING_LIST_BILLING_FILE", b =>
{
b.HasOne("wtmProject.Model.WTM_BILLING_LIST", "Billing")
.WithMany("BillingFiles")
.HasForeignKey("BillingId")
.OnDelete(DeleteBehavior.Restrict);
b.HasOne("WalkingTec.Mvvm.Core.FileAttachment", "File")
.WithMany()
.HasForeignKey("FileId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Billing");
b.Navigation("File");
});
modelBuilder.Entity("wtmProject.Model.WTM_BILLING_LIST_RECEIVED_FILE", b =>
{
b.HasOne("wtmProject.Model.WTM_BILLING_LIST", "Billing")
.WithMany("ReceivedFiles")
.HasForeignKey("BillingId")
.OnDelete(DeleteBehavior.Restrict);
b.HasOne("WalkingTec.Mvvm.Core.FileAttachment", "File")
.WithMany()
.HasForeignKey("FileId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Billing");
b.Navigation("File");
});
modelBuilder.Entity("wtmProject.Model.WTM_BUSINESS", b =>
{
b.HasOne("wtmProject.Model.WTM_AREA", "Area")
.WithMany()
.HasForeignKey("AreaId");
b.HasOne("wtmProject.Model.WTM_CUSTOM", "Custom")
.WithMany()
.HasForeignKey("CustomId");
b.HasOne("WalkingTec.Mvvm.Core.FrameworkUser", "MarkManage")
.WithMany()
.HasForeignKey("MarkManageId");
b.HasOne("wtmProject.Model.WTM_PROJECT", "Project")
.WithMany()
.HasForeignKey("ProjectId");
b.HasOne("wtmProject.Model.WTM_CUSTOM_PERSON", "VisitObject")
.WithMany()
.HasForeignKey("VisitObjectId");
b.Navigation("Area");
b.Navigation("Custom");
b.Navigation("MarkManage");
b.Navigation("Project");
b.Navigation("VisitObject");
});
modelBuilder.Entity("wtmProject.Model.WTM_CONTRACT", b =>
{
b.HasOne("wtmProject.Model.WTM_AREA", "Area")
.WithMany()
.HasForeignKey("AreaId");
b.HasOne("wtmProject.Model.WTM_CUSTOM", "Custom")
.WithMany()
.HasForeignKey("CustomId");
b.HasOne("WalkingTec.Mvvm.Core.FrameworkUser", "MarkManage")
.WithMany()
.HasForeignKey("MarkManageId");
b.HasOne("wtmProject.Model.WTM_PROJECT", "Project")
.WithMany()
.HasForeignKey("ProjectId");
b.HasOne("WalkingTec.Mvvm.Core.FrameworkUser", "ProjectManage")
.WithMany()
.HasForeignKey("ProjectManageId");
b.HasOne("wtmProject.Model.WTM_CUSTOM_PERSON", "VisitObject")
.WithMany()
.HasForeignKey("VisitObjectId");
b.Navigation("Area");
b.Navigation("Custom");
b.Navigation("MarkManage");
b.Navigation("Project");
b.Navigation("ProjectManage");
b.Navigation("VisitObject");
});
modelBuilder.Entity("wtmProject.Model.WTM_CONTRACT_FILE", b =>
{
b.HasOne("wtmProject.Model.WTM_CONTRACT", "Contract")
.WithMany("Files")
.HasForeignKey("ContractId")
.OnDelete(DeleteBehavior.Restrict);
b.HasOne("WalkingTec.Mvvm.Core.FileAttachment", "File")
.WithMany()
.HasForeignKey("FileId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Contract");
b.Navigation("File");
});
modelBuilder.Entity("wtmProject.Model.WTM_CUSTOM", b =>
{
b.HasOne("wtmProject.Model.WTM_AREA", "Area")
.WithMany()
.HasForeignKey("AreaId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("wtmProject.Model.WTM_CUSTOM", "Custom")
.WithMany()
.HasForeignKey("CustomId");
b.Navigation("Area");
b.Navigation("Custom");
});
modelBuilder.Entity("wtmProject.Model.WTM_CUSTOM_PERSON", b =>
{
b.HasOne("wtmProject.Model.WTM_CUSTOM", "Custom")
.WithMany("CustomPerson")
.HasForeignKey("CustomId")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Custom");
});
modelBuilder.Entity("wtmProject.Model.WTM_VISIT_PLAN", b =>
{
b.HasOne("wtmProject.Model.WTM_AREA", "Area")
.WithMany()
.HasForeignKey("AreaId");
b.HasOne("wtmProject.Model.WTM_CUSTOM", "Custom")
.WithMany()
.HasForeignKey("CustomId");
b.HasOne("WalkingTec.Mvvm.Core.FrameworkUser", "MarkManage")
.WithMany()
.HasForeignKey("MarkManageId");
b.HasOne("wtmProject.Model.WTM_CUSTOM_PERSON", "VisitObject")
.WithMany()
.HasForeignKey("VisitObjectId");
b.Navigation("Area");
b.Navigation("Custom");
b.Navigation("MarkManage");
b.Navigation("VisitObject");
});
modelBuilder.Entity("wtmProject.Model.WTM_VISIT_PLAN_USER", b =>
{
b.HasOne("WalkingTec.Mvvm.Core.FrameworkUser", "User")
.WithMany()
.HasForeignKey("UserId");
b.HasOne("wtmProject.Model.WTM_VISIT_PLAN", "VisitPlan")
.WithMany("VisitUser")
.HasForeignKey("VisitPlanId")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("User");
b.Navigation("VisitPlan");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkGroup", b =>
{
b.Navigation("Children");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
{
b.Navigation("Children");
});
modelBuilder.Entity("wtmProject.Model.WTM_BILLING_LIST", b =>
{
b.Navigation("BillingFiles");
b.Navigation("ReceivedFiles");
});
modelBuilder.Entity("wtmProject.Model.WTM_CONTRACT", b =>
{
b.Navigation("Files");
});
modelBuilder.Entity("wtmProject.Model.WTM_CUSTOM", b =>
{
b.Navigation("CustomPerson");
});
modelBuilder.Entity("wtmProject.Model.WTM_VISIT_PLAN", b =>
{
b.Navigation("VisitUser");
});
#pragma warning restore 612, 618
}
}
}