// using System; using FlexJobApi.EntityFramework.Core; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace FlexJobApi.Database.Migrations.Migrations { [DbContext(typeof(DefaultDbContext))] [Migration("20250905062919_UpdateEnterpriseWallet0905004")] partial class UpdateEnterpriseWallet0905004 { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("FlexJobApi.Core.CodeUrl", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Code") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("ExpiredTime") .HasColumnType("datetime2"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Scene") .HasColumnType("int"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Url") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("CodeUrl"); }); modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Access") .HasColumnType("int"); b.Property("Code") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("CompletedTime") .HasColumnType("datetime2"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("ElectronSignContractTemplateId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("File") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("Status") .HasColumnType("int"); b.Property("TemplateEditData") .HasColumnType("nvarchar(max)"); b.Property("TemplateId") .HasColumnType("nvarchar(max)"); b.Property("TemplateJsonData") .HasColumnType("nvarchar(max)"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("WxmpQrCode") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("EnterpriseId"); b.ToTable("ContractTemplate"); }); modelBuilder.Entity("FlexJobApi.Core.ContractTemplateValue", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BindProperty") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Label") .HasColumnType("nvarchar(max)"); b.Property("Name") .HasColumnType("nvarchar(max)"); b.Property("Recorder") .HasColumnType("int"); b.Property("Required") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TemplateId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserType") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TemplateId"); b.ToTable("ContractTemplateValue"); }); modelBuilder.Entity("FlexJobApi.Core.Department", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Path") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("EnterpriseId"); b.HasIndex("ParentId"); b.ToTable("Department"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("FieldNames") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("DictionaryCategory"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CategoryId") .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Content") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Deep") .HasColumnType("int"); b.Property("Field1") .HasColumnType("nvarchar(max)"); b.Property("Field2") .HasColumnType("nvarchar(max)"); b.Property("Field3") .HasColumnType("nvarchar(max)"); b.Property("Field4") .HasColumnType("nvarchar(max)"); b.Property("Field5") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Path") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("CategoryId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("ParentId"); b.ToTable("DictionaryData"); }); modelBuilder.Entity("FlexJobApi.Core.ElectronSignSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Access") .HasColumnType("int"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("MergeSignCost") .HasColumnType("decimal(18,2)"); b.Property("RealVerifyCost") .HasColumnType("decimal(18,2)"); b.Property("SignCost") .HasColumnType("decimal(18,2)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("ElectronSignSetting"); }); modelBuilder.Entity("FlexJobApi.Core.Enterprise", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Address") .HasColumnType("nvarchar(max)"); b.Property("BankBranchName") .HasColumnType("nvarchar(max)"); b.Property("BankCard") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("BankName") .HasColumnType("nvarchar(max)"); b.Property("CityCode") .HasColumnType("nvarchar(128)"); b.Property("ContactEmail") .HasColumnType("nvarchar(max)"); b.Property("ContactPhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("Contacts") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseName") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("EnterpriseType") .HasColumnType("nvarchar(max)"); b.Property("EstablishmentDate") .HasColumnType("nvarchar(max)"); b.Property("IndustrialParkId") .HasColumnType("uniqueidentifier"); b.Property("IndustryTypeCode") .HasColumnType("nvarchar(128)"); b.Property("IsCheckedBankCard") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsReal") .HasColumnType("bit"); b.Property("LegalIdentity") .HasMaxLength(18) .HasColumnType("nvarchar(18)"); b.Property("LegalPerson") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("LicenseImage") .HasColumnType("nvarchar(max)"); b.Property("MainBusiness") .HasColumnType("nvarchar(max)"); b.Property("PayAccess") .HasColumnType("int"); b.Property("ProvinceCode") .HasColumnType("nvarchar(128)"); b.Property("RealAccess") .HasColumnType("int"); b.Property("RegisteredCapital") .HasColumnType("nvarchar(max)"); b.Property("SmsAccess") .HasColumnType("int"); b.Property("SmsCost") .HasColumnType("decimal(18,2)"); b.Property("SocietyCreditCode") .IsRequired() .HasMaxLength(18) .HasColumnType("nvarchar(18)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("CityCode"); b.HasIndex("IndustryTypeCode"); b.HasIndex("ProvinceCode"); b.ToTable("Enterprise"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BankCard") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("BankCardImg") .HasColumnType("nvarchar(max)"); b.Property("CertAccount") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("ElectronSignEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseName") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("EnterpriseRealMethod") .HasColumnType("int"); b.Property("Identity") .HasMaxLength(18) .HasColumnType("nvarchar(18)"); b.Property("IdentityBackImg") .HasColumnType("nvarchar(max)"); b.Property("IdentityImg") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("LegalIdentity") .HasMaxLength(18) .HasColumnType("nvarchar(18)"); b.Property("LegalPerson") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("LicenseImage") .HasColumnType("nvarchar(max)"); b.Property("Name") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("PersonalRealMethod") .HasColumnType("int"); b.Property("PhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("Proxy") .HasColumnType("bit"); b.Property("ProxyPowerAttorneyUrl") .HasColumnType("nvarchar(max)"); b.Property("SocietyCreditCode") .IsRequired() .HasMaxLength(18) .HasColumnType("nvarchar(18)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("EnterpriseAuth"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseCost", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Amount") .HasColumnType("decimal(18,2)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseEmployeeContractId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("Status") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("EnterpriseEmployeeContractId"); b.HasIndex("EnterpriseId"); b.ToTable("EnterpriseCost"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseElectronSignSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("ElectronSignAccess") .HasColumnType("int"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("EnterpriseId"); b.ToTable("EnterpriseElectronSignSetting"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Age") .HasColumnType("int"); b.Property("Birthday") .HasColumnType("datetime2"); b.Property("ContactPhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("ContractCode") .HasColumnType("nvarchar(max)"); b.Property("ContractTemplateId") .HasColumnType("uniqueidentifier"); b.Property("ContractUrl") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseSignContractErrorMessage") .HasColumnType("nvarchar(max)"); b.Property("EnterpriseSignContractStatus") .HasColumnType("int"); b.Property("EnterpriseSignContractTime") .HasColumnType("datetime2"); b.Property("Gender") .HasColumnType("int"); b.Property("Identity") .HasColumnType("nvarchar(max)"); b.Property("IdentityBackImg") .HasColumnType("nvarchar(max)"); b.Property("IdentityImg") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Name") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.Property("UserSignContractErrorMessage") .HasColumnType("nvarchar(max)"); b.Property("UserSignContractStatus") .HasColumnType("int"); b.Property("UserSignContractTime") .HasColumnType("datetime2"); b.HasKey("Id"); b.HasIndex("ContractTemplateId"); b.HasIndex("EnterpriseId"); b.HasIndex("UserId"); b.ToTable("EnterpriseEmployee"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployeeContract", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ContractCode") .HasColumnType("nvarchar(max)"); b.Property("ContractTemplateId") .HasColumnType("uniqueidentifier"); b.Property("ContractUrl") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseEmployeeId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseSignContractErrorMessage") .HasColumnType("nvarchar(max)"); b.Property("EnterpriseSignContractStatus") .HasColumnType("int"); b.Property("EnterpriseSignContractTime") .HasColumnType("datetime2"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserSignContractErrorMessage") .HasColumnType("nvarchar(max)"); b.Property("UserSignContractStatus") .HasColumnType("int"); b.Property("UserSignContractTime") .HasColumnType("datetime2"); b.HasKey("Id"); b.HasIndex("ContractTemplateId"); b.HasIndex("EnterpriseEmployeeId"); b.ToTable("EnterpriseEmployeeContract"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CollectedTime") .HasColumnType("datetime2"); b.Property("ContactedTime") .HasColumnType("datetime2"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("IsCollected") .HasColumnType("bit"); b.Property("IsContacted") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("EnterpriseId"); b.HasIndex("UserId"); b.ToTable("EnterpriseUserCollect"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWallet", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Access") .HasColumnType("int"); b.Property("Account") .HasColumnType("nvarchar(max)"); b.Property("AccountBookId") .HasColumnType("nvarchar(max)"); b.Property("AccountBookStatus") .HasColumnType("int"); b.Property("AgreementNo") .HasColumnType("nvarchar(max)"); b.Property("AlipayLogonId") .HasColumnType("nvarchar(max)"); b.Property("Balance") .HasColumnType("decimal(18,2)"); b.Property("BankAccName") .HasColumnType("nvarchar(max)"); b.Property("CardBank") .HasColumnType("nvarchar(max)"); b.Property("CardBranch") .HasColumnType("nvarchar(max)"); b.Property("CardDeposit") .HasColumnType("nvarchar(max)"); b.Property("CardLocation") .HasColumnType("nvarchar(max)"); b.Property("CardNo") .HasColumnType("nvarchar(max)"); b.Property("Code") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("CreditAuthMode") .HasColumnType("nvarchar(max)"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("InvalidTime") .HasColumnType("datetime2"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("MerchantId") .HasColumnType("nvarchar(max)"); b.Property("PersonalProductCode") .HasColumnType("nvarchar(max)"); b.Property("PricipalType") .HasColumnType("nvarchar(max)"); b.Property("PrincipalId") .HasColumnType("nvarchar(max)"); b.Property("PrincipalOpenId") .HasColumnType("nvarchar(max)"); b.Property("ProductCode") .HasColumnType("nvarchar(max)"); b.Property("SignScene") .HasColumnType("nvarchar(max)"); b.Property("SignStatus") .HasColumnType("int"); b.Property("SignTime") .HasColumnType("datetime2"); b.Property("Sort") .HasColumnType("int"); b.Property("ThirdPartyType") .HasColumnType("nvarchar(max)"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("ValidTime") .HasColumnType("datetime2"); b.Property("ZmOpenId") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("EnterpriseId"); b.ToTable("EnterpriseWallet"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BizScene") .HasColumnType("nvarchar(max)"); b.Property("BizType") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Identity") .HasColumnType("nvarchar(max)"); b.Property("IdentityType") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Name") .HasColumnType("nvarchar(max)"); b.Property("OrderId") .HasColumnType("nvarchar(max)"); b.Property("OrderStatus") .HasColumnType("int"); b.Property("OriginalOrderId") .HasColumnType("nvarchar(max)"); b.Property("OutBizNo") .HasColumnType("nvarchar(max)"); b.Property("ProductCode") .HasColumnType("nvarchar(max)"); b.Property("RiskReviewRemark") .HasColumnType("nvarchar(max)"); b.Property("Scene") .HasColumnType("int"); b.Property("SceneCode") .HasColumnType("nvarchar(max)"); b.Property("SceneDirections") .HasColumnType("nvarchar(max)"); b.Property("SceneImage") .HasColumnType("nvarchar(max)"); b.Property("SceneQualificationImage") .HasColumnType("nvarchar(max)"); b.Property("Sites") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("Status") .HasColumnType("nvarchar(max)"); b.Property("TaskFinishTime") .HasColumnType("datetime2"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("WalletId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("WalletId"); b.ToTable("EnterpriseWalletExpandindirectOrder"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrderFile", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("File") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("OrderId") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("OrderId"); b.ToTable("EnterpriseWalletExpandindirectOrderFile"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Amount") .HasColumnType("decimal(18,2)"); b.Property("ArrivalTimeEnd") .HasColumnType("datetime2"); b.Property("Balance") .HasColumnType("decimal(18,2)"); b.Property("BizScene") .HasColumnType("nvarchar(max)"); b.Property("Code") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("ErrorCode") .HasColumnType("nvarchar(max)"); b.Property("FailInstErrorCode") .HasColumnType("nvarchar(max)"); b.Property("FailInstName") .HasColumnType("nvarchar(max)"); b.Property("FailInstReason") .HasColumnType("nvarchar(max)"); b.Property("FailReason") .HasColumnType("nvarchar(max)"); b.Property("InflowSettleSerialNo") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Link") .HasColumnType("nvarchar(max)"); b.Property("OrderFee") .HasColumnType("decimal(18,2)"); b.Property("OrderId") .HasColumnType("nvarchar(max)"); b.Property("PayFundOrderId") .HasColumnType("nvarchar(max)"); b.Property("ProductCode") .HasColumnType("nvarchar(max)"); b.Property("ReceiverOpenId") .HasColumnType("nvarchar(max)"); b.Property("ReceiverUserId") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettleSerialNo") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("Status") .HasColumnType("nvarchar(max)"); b.Property("SubStatus") .HasColumnType("nvarchar(max)"); b.Property("TaskUserId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("TransDate") .HasColumnType("datetime2"); b.Property("TransactionStatus") .HasColumnType("int"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("WalletId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("TaskUserId"); b.HasIndex("WalletId"); b.ToTable("EnterpriseWalletTransaction"); }); modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ClientType") .HasColumnType("int"); b.Property("Code") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Group") .HasColumnType("nvarchar(max)"); b.Property("Icon") .HasColumnType("nvarchar(max)"); b.Property("IsCache") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("Location") .HasColumnType("nvarchar(max)"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Path") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Url") .HasColumnType("nvarchar(max)"); b.Property("UserType") .HasColumnType("int"); b.Property("VisitLevel") .HasColumnType("int"); b.Property("Width") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("ParentId"); b.ToTable("Menu"); }); modelBuilder.Entity("FlexJobApi.Core.Resource", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ActionName") .HasColumnType("nvarchar(max)"); b.Property("ActionSummary") .HasColumnType("nvarchar(max)"); b.Property("AllowAnonymous") .HasColumnType("bit"); b.Property("ApplicationName") .HasColumnType("nvarchar(max)"); b.Property("Code") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ControllerName") .HasColumnType("nvarchar(max)"); b.Property("ControllerSummary") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("DynamicAssemblyName") .HasColumnType("nvarchar(max)"); b.Property("FileUpload") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsExpired") .HasColumnType("bit"); b.Property("IsFromForm") .HasColumnType("bit"); b.Property("Method") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestTypeFullName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestTypeName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ResponseTypeFullName") .HasColumnType("nvarchar(max)"); b.Property("ResponseTypeName") .HasColumnType("nvarchar(max)"); b.Property("Route") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RouteArea") .HasColumnType("nvarchar(max)"); b.Property("ServiceName") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("Resource"); }); modelBuilder.Entity("FlexJobApi.Core.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ClientType") .HasColumnType("int"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("DataPower") .HasColumnType("int"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("MinLevel") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserType") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("Role"); }); modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("MenuId") .HasColumnType("uniqueidentifier"); b.Property("RoleId") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("MenuId"); b.HasIndex("RoleId"); b.ToTable("RoleMenu"); }); modelBuilder.Entity("FlexJobApi.Core.RoleResource", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("DataPower") .HasColumnType("int"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("ResourceId") .HasColumnType("uniqueidentifier"); b.Property("RoleId") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("ResourceId"); b.HasIndex("RoleId"); b.ToTable("RoleResource"); }); modelBuilder.Entity("FlexJobApi.Core.ScheduleJobDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AssemblyName") .HasColumnType("nvarchar(max)"); b.Property("Concurrent") .HasColumnType("bit"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Description") .HasColumnType("nvarchar(max)"); b.Property("GroupName") .HasColumnType("nvarchar(max)"); b.Property("IncludeAnnotations") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("JobId") .HasColumnType("nvarchar(max)"); b.Property("JobType") .HasColumnType("nvarchar(max)"); b.Property("Properties") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("ScheduleJobDetail"); }); modelBuilder.Entity("FlexJobApi.Core.ScheduleJobTrigger", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Args") .HasColumnType("nvarchar(max)"); b.Property("AssemblyName") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Description") .HasColumnType("nvarchar(max)"); b.Property("ElapsedTime") .HasColumnType("bigint"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("JobId") .HasColumnType("nvarchar(max)"); b.Property("LastRunTime") .HasColumnType("datetime2"); b.Property("MaxNumberOfErrors") .HasColumnType("bigint"); b.Property("MaxNumberOfRuns") .HasColumnType("bigint"); b.Property("NextRunTime") .HasColumnType("datetime2"); b.Property("NumRetries") .HasColumnType("bigint"); b.Property("NumberOfErrors") .HasColumnType("bigint"); b.Property("NumberOfRuns") .HasColumnType("bigint"); b.Property("ResetOnlyOnce") .HasColumnType("bit"); b.Property("Result") .HasColumnType("nvarchar(max)"); b.Property("RetryTimeout") .HasColumnType("int"); b.Property("RunOnStart") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("StartNow") .HasColumnType("bit"); b.Property("StartTime") .HasColumnType("datetime2"); b.Property("Status") .HasColumnType("bigint"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("TriggerId") .HasColumnType("nvarchar(max)"); b.Property("TriggerType") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("ScheduleJobTrigger"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ActualSettlementAmount") .HasColumnType("decimal(18,2)"); b.Property("AddressDetail") .HasColumnType("nvarchar(max)"); b.Property("AddressName") .HasColumnType("nvarchar(max)"); b.Property("AgeMaxLimit") .HasColumnType("int"); b.Property("AgeMinLimit") .HasColumnType("int"); b.Property("BeginTime") .HasColumnType("datetime2"); b.Property("BillingMethod") .HasColumnType("int"); b.Property("CheckReceiveStatus") .HasColumnType("int"); b.Property("CheckReceiveTime") .HasColumnType("datetime2"); b.Property("CityCode") .HasColumnType("nvarchar(128)"); b.Property("Code") .HasColumnType("nvarchar(max)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("GenderLimit") .HasColumnType("int"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("LastCheckReceiveTime") .HasColumnType("datetime2"); b.Property("LastSubmitTime") .HasColumnType("datetime2"); b.Property("Latitude") .HasColumnType("decimal(18,6)"); b.Property("Longitude") .HasColumnType("decimal(18,6)"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ProvinceCode") .HasColumnType("nvarchar(128)"); b.Property("RecommendStatus") .HasColumnType("int"); b.Property("RecommendTime") .HasColumnType("datetime2"); b.Property("ReleaseStatus") .HasColumnType("int"); b.Property("ServiceFee") .HasColumnType("decimal(18,2)"); b.Property("SettlementAmount") .HasColumnType("decimal(18,2)"); b.Property("SettlementCycle") .HasColumnType("int"); b.Property("SettlementOrderName") .HasColumnType("nvarchar(max)"); b.Property("SettlementOrderStatus") .HasColumnType("int"); b.Property("SettlementOrderTime") .HasColumnType("datetime2"); b.Property("SettlementOrderUrl") .HasColumnType("nvarchar(max)"); b.Property("SettlementRemark") .HasColumnType("nvarchar(max)"); b.Property("SettlementStartTime") .HasColumnType("datetime2"); b.Property("SettlementStatus") .HasColumnType("int"); b.Property("SettlementTime") .HasColumnType("datetime2"); b.Property("SettlementUserCount") .HasColumnType("int"); b.Property("Sort") .HasColumnType("int"); b.Property("Status") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("CityCode"); b.HasIndex("EnterpriseId"); b.HasIndex("ProvinceCode"); b.ToTable("TaskInfo"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BenefitCode") .IsRequired() .HasColumnType("nvarchar(128)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TaskInfoId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("BenefitCode"); b.HasIndex("TaskInfoId"); b.ToTable("TaskInfoBenefit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TaskInfoId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("TypeCode") .IsRequired() .HasColumnType("nvarchar(128)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("TaskInfoId"); b.HasIndex("TypeCode"); b.ToTable("TaskInfoCredentialLimit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ActualSettlementAmount") .HasColumnType("decimal(18,2)"); b.Property("ArrangeStatus") .HasColumnType("int"); b.Property("ArrangeTime") .HasColumnType("datetime2"); b.Property("Bank") .HasColumnType("nvarchar(max)"); b.Property("BankBranch") .HasColumnType("nvarchar(max)"); b.Property("CheckReceiveStatus") .HasColumnType("int"); b.Property("CheckReceiveTime") .HasColumnType("datetime2"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseEmployeeId") .HasColumnType("uniqueidentifier"); b.Property("HireStatus") .HasColumnType("int"); b.Property("HireTime") .HasColumnType("datetime2"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("LastCheckReceiveTime") .HasColumnType("datetime2"); b.Property("LastSubmitTime") .HasColumnType("datetime2"); b.Property("ReceiveAccount") .HasColumnType("nvarchar(max)"); b.Property("ReceiveName") .HasColumnType("nvarchar(max)"); b.Property("SettlementAmount") .HasColumnType("decimal(18,2)"); b.Property("SettlementRemark") .HasColumnType("nvarchar(max)"); b.Property("SettlementStatus") .HasColumnType("int"); b.Property("SettlementTime") .HasColumnType("datetime2"); b.Property("Sort") .HasColumnType("int"); b.Property("TaskInfoId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("EnterpriseEmployeeId"); b.HasIndex("TaskInfoId"); b.ToTable("TaskInfoUser"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CheckReceiveStatus") .HasColumnType("int"); b.Property("CheckReceiveTime") .HasColumnType("datetime2"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Date") .HasColumnType("datetime2"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TaskInfoUserId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("TaskInfoUserId"); b.ToTable("TaskInfoUserSubmit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmitFile", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("File") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("SubmitId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("SubmitId"); b.ToTable("TaskInfoUserSubmitFile"); }); modelBuilder.Entity("FlexJobApi.Core.TaskUserCollect", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TaskInfoId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("TaskInfoId"); b.HasIndex("UserId"); b.ToTable("TaskUserCollect"); }); modelBuilder.Entity("FlexJobApi.Core.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Age") .HasColumnType("int"); b.Property("Avatar") .HasColumnType("nvarchar(max)"); b.Property("Birthday") .HasColumnType("datetime2"); b.Property("CityCode") .HasColumnType("nvarchar(128)"); b.Property("ContactPhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("DataSource") .HasColumnType("int"); b.Property("DataSourceId") .HasColumnType("uniqueidentifier"); b.Property("EducationalBackgroundCode") .HasColumnType("nvarchar(128)"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("FreeTime") .HasColumnType("int"); b.Property("Gender") .HasColumnType("int"); b.Property("Height") .HasColumnType("int"); b.Property("Identity") .HasColumnType("nvarchar(max)"); b.Property("IsCheckPhoneNumber") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsReal") .HasColumnType("bit"); b.Property("JobSeekingStatus") .HasColumnType("int"); b.Property("Level") .HasColumnType("int"); b.Property("Name") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("Password") .HasColumnType("nvarchar(max)"); b.Property("PersonalIdentityCode") .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("ProvinceCode") .HasColumnType("nvarchar(128)"); b.Property("RealMethod") .HasColumnType("int"); b.Property("RealTime") .HasColumnType("datetime2"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("Status") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserName") .IsRequired() .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("Weight") .HasColumnType("int"); b.Property("WorkExperience") .HasColumnType("nvarchar(max)"); b.Property("WorkSeniority") .HasColumnType("nvarchar(max)"); b.Property("WxmpOpenId") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.HasKey("Id"); b.HasIndex("CityCode"); b.HasIndex("EducationalBackgroundCode"); b.HasIndex("EnterpriseId"); b.HasIndex("PersonalIdentityCode"); b.HasIndex("ProvinceCode"); b.ToTable("User"); b.HasData( new { Id = new Guid("11111111-1111-1111-1111-111111111111"), CreatedTime = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 8, 0, 0, 0)), IsCheckPhoneNumber = false, IsDeleted = false, IsReal = false, Level = 999, Name = "管理员", Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=", Sort = 0, Status = 10, Type = 100, UserName = "system" }); }); modelBuilder.Entity("FlexJobApi.Core.UserAuth", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Age") .HasColumnType("int"); b.Property("BankCard") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("BankCardImg") .HasColumnType("nvarchar(max)"); b.Property("Birthday") .HasColumnType("datetime2"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("ElectronSignUserId") .HasColumnType("uniqueidentifier"); b.Property("FaceRealUrl") .HasColumnType("nvarchar(max)"); b.Property("Gender") .HasColumnType("int"); b.Property("Identity") .HasColumnType("nvarchar(max)"); b.Property("IdentityBackImg") .HasColumnType("nvarchar(max)"); b.Property("IdentityImg") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("PhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("RealAccess") .HasColumnType("int"); b.Property("RealFailMessage") .HasColumnType("nvarchar(max)"); b.Property("RealStatus") .HasColumnType("int"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("UserAuth"); }); modelBuilder.Entity("FlexJobApi.Core.UserBankCard", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Access") .HasColumnType("int"); b.Property("Bank") .HasColumnType("nvarchar(max)"); b.Property("BankBranch") .HasColumnType("nvarchar(max)"); b.Property("Code") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("PhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("UserBankCard"); }); modelBuilder.Entity("FlexJobApi.Core.UserCredential", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BackImg") .HasColumnType("nvarchar(max)"); b.Property("Code") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("EndDate") .HasColumnType("datetime2"); b.Property("Img") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsForever") .HasColumnType("bit"); b.Property("IssueUnit") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("TypeCode") .IsRequired() .HasColumnType("nvarchar(128)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("TypeCode"); b.HasIndex("UserId"); b.ToTable("UserCredential"); }); modelBuilder.Entity("FlexJobApi.Core.UserDepartment", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("DepartmentId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("DepartmentId"); b.HasIndex("UserId"); b.ToTable("UserDepartment"); }); modelBuilder.Entity("FlexJobApi.Core.UserExpectJob", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("ExpectJobCode") .IsRequired() .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("ExpectJobCode"); b.HasIndex("UserId"); b.ToTable("UserExpectJob"); }); modelBuilder.Entity("FlexJobApi.Core.UserManageIndustrialPark", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IndustrialParkId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("UserManageIndustrialPark"); }); modelBuilder.Entity("FlexJobApi.Core.UserPhoto", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("Img") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("UserPhoto"); }); modelBuilder.Entity("FlexJobApi.Core.UserRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("RoleId") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserId") .HasColumnType("uniqueidentifier"); b.Property("UserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("RoleId"); b.HasIndex("UserId"); b.ToTable("UserRole"); }); modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany("ContractTemplates") .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Enterprise"); }); modelBuilder.Entity("FlexJobApi.Core.ContractTemplateValue", b => { b.HasOne("FlexJobApi.Core.ContractTemplate", "Template") .WithMany("Values") .HasForeignKey("TemplateId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Template"); }); modelBuilder.Entity("FlexJobApi.Core.Department", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany("Departments") .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.Department", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Enterprise"); b.Navigation("Parent"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b => { b.HasOne("FlexJobApi.Core.DictionaryCategory", "Category") .WithMany() .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Category"); b.Navigation("Parent"); }); modelBuilder.Entity("FlexJobApi.Core.Enterprise", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "City") .WithMany() .HasForeignKey("CityCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.HasOne("FlexJobApi.Core.DictionaryData", "IndustryType") .WithMany() .HasForeignKey("IndustryTypeCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.HasOne("FlexJobApi.Core.DictionaryData", "Province") .WithMany() .HasForeignKey("ProvinceCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.Navigation("City"); b.Navigation("IndustryType"); b.Navigation("Province"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithOne("EnterpriseAuth") .HasForeignKey("FlexJobApi.Core.EnterpriseAuth", "Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Enterprise"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseCost", b => { b.HasOne("FlexJobApi.Core.EnterpriseEmployeeContract", "EnterpriseEmployeeContract") .WithMany() .HasForeignKey("EnterpriseEmployeeContractId"); b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany() .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Enterprise"); b.Navigation("EnterpriseEmployeeContract"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseElectronSignSetting", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany("ElectronSignSettings") .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Enterprise"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => { b.HasOne("FlexJobApi.Core.ContractTemplate", "ContractTemplate") .WithMany() .HasForeignKey("ContractTemplateId"); b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany() .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.User", "User") .WithMany("EnterpriseEmployees") .HasForeignKey("UserId"); b.Navigation("ContractTemplate"); b.Navigation("Enterprise"); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployeeContract", b => { b.HasOne("FlexJobApi.Core.ContractTemplate", "ContractTemplate") .WithMany() .HasForeignKey("ContractTemplateId"); b.HasOne("FlexJobApi.Core.EnterpriseEmployee", "EnterpriseEmployee") .WithMany("Contracts") .HasForeignKey("EnterpriseEmployeeId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("ContractTemplate"); b.Navigation("EnterpriseEmployee"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany() .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.User", "User") .WithMany("EnterpriseUserCollects") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Enterprise"); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWallet", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany() .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Enterprise"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", b => { b.HasOne("FlexJobApi.Core.EnterpriseWallet", "Wallet") .WithMany() .HasForeignKey("WalletId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Wallet"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrderFile", b => { b.HasOne("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", "Order") .WithMany("Files") .HasForeignKey("OrderId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Order"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletTransaction", b => { b.HasOne("FlexJobApi.Core.TaskInfoUser", "TaskUser") .WithMany() .HasForeignKey("TaskUserId"); b.HasOne("FlexJobApi.Core.EnterpriseWallet", "Wallet") .WithMany() .HasForeignKey("WalletId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("TaskUser"); b.Navigation("Wallet"); }); modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.HasOne("FlexJobApi.Core.Menu", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Parent"); }); modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b => { b.HasOne("FlexJobApi.Core.Menu", "Menu") .WithMany() .HasForeignKey("MenuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.Role", "Role") .WithMany("RoleMenus") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Menu"); b.Navigation("Role"); }); modelBuilder.Entity("FlexJobApi.Core.RoleResource", b => { b.HasOne("FlexJobApi.Core.Resource", "Resource") .WithMany() .HasForeignKey("ResourceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.Role", "Role") .WithMany("RoleResources") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Resource"); b.Navigation("Role"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "City") .WithMany() .HasForeignKey("CityCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany() .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "Province") .WithMany() .HasForeignKey("ProvinceCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.Navigation("City"); b.Navigation("Enterprise"); b.Navigation("Province"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "Benefit") .WithMany() .HasForeignKey("BenefitCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") .WithMany("Benefits") .HasForeignKey("TaskInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Benefit"); b.Navigation("TaskInfo"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b => { b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") .WithMany("CredentialLimits") .HasForeignKey("TaskInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "Type") .WithMany() .HasForeignKey("TypeCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("TaskInfo"); b.Navigation("Type"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => { b.HasOne("FlexJobApi.Core.EnterpriseEmployee", "EnterpriseEmployee") .WithMany("TaskInfoUsers") .HasForeignKey("EnterpriseEmployeeId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") .WithMany("TaskInfoUsers") .HasForeignKey("TaskInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("EnterpriseEmployee"); b.Navigation("TaskInfo"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b => { b.HasOne("FlexJobApi.Core.TaskInfoUser", "TaskInfoUser") .WithMany("Submits") .HasForeignKey("TaskInfoUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("TaskInfoUser"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmitFile", b => { b.HasOne("FlexJobApi.Core.TaskInfoUserSubmit", "Submit") .WithMany("Files") .HasForeignKey("SubmitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Submit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskUserCollect", b => { b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") .WithMany("TaskUserCollects") .HasForeignKey("TaskInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.User", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("TaskInfo"); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.User", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "City") .WithMany() .HasForeignKey("CityCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.HasOne("FlexJobApi.Core.DictionaryData", "EducationalBackground") .WithMany() .HasForeignKey("EducationalBackgroundCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany("Users") .HasForeignKey("EnterpriseId"); b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity") .WithMany() .HasForeignKey("PersonalIdentityCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.HasOne("FlexJobApi.Core.DictionaryData", "Province") .WithMany() .HasForeignKey("ProvinceCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); b.Navigation("City"); b.Navigation("EducationalBackground"); b.Navigation("Enterprise"); b.Navigation("PersonalIdentity"); b.Navigation("Province"); }); modelBuilder.Entity("FlexJobApi.Core.UserAuth", b => { b.HasOne("FlexJobApi.Core.User", "User") .WithOne("UserAuth") .HasForeignKey("FlexJobApi.Core.UserAuth", "Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.UserBankCard", b => { b.HasOne("FlexJobApi.Core.User", "User") .WithMany("BankCards") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.UserCredential", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "Type") .WithMany() .HasForeignKey("TypeCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("FlexJobApi.Core.User", "User") .WithMany("UserCredentials") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Type"); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.UserDepartment", b => { b.HasOne("FlexJobApi.Core.Department", "Department") .WithMany() .HasForeignKey("DepartmentId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.User", "User") .WithMany("UserDepartments") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Department"); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.UserExpectJob", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "ExpectJob") .WithMany() .HasForeignKey("ExpectJobCode") .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("FlexJobApi.Core.User", "User") .WithMany("UserExpectJobs") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("ExpectJob"); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.UserManageIndustrialPark", b => { b.HasOne("FlexJobApi.Core.User", "User") .WithMany("UserManageIndustrialParks") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.UserPhoto", b => { b.HasOne("FlexJobApi.Core.User", "User") .WithMany("Photos") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.UserRole", b => { b.HasOne("FlexJobApi.Core.Role", "Role") .WithMany("UserRoles") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.User", "User") .WithMany("UserRoles") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Role"); b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b => { b.Navigation("Values"); }); modelBuilder.Entity("FlexJobApi.Core.Department", b => { b.Navigation("Children"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b => { b.Navigation("Children"); }); modelBuilder.Entity("FlexJobApi.Core.Enterprise", b => { b.Navigation("ContractTemplates"); b.Navigation("Departments"); b.Navigation("ElectronSignSettings"); b.Navigation("EnterpriseAuth"); b.Navigation("Users"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => { b.Navigation("Contracts"); b.Navigation("TaskInfoUsers"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", b => { b.Navigation("Files"); }); modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.Navigation("Children"); }); modelBuilder.Entity("FlexJobApi.Core.Role", b => { b.Navigation("RoleMenus"); b.Navigation("RoleResources"); b.Navigation("UserRoles"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => { b.Navigation("Benefits"); b.Navigation("CredentialLimits"); b.Navigation("TaskInfoUsers"); b.Navigation("TaskUserCollects"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => { b.Navigation("Submits"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b => { b.Navigation("Files"); }); modelBuilder.Entity("FlexJobApi.Core.User", b => { b.Navigation("BankCards"); b.Navigation("EnterpriseEmployees"); b.Navigation("EnterpriseUserCollects"); b.Navigation("Photos"); b.Navigation("UserAuth"); b.Navigation("UserCredentials"); b.Navigation("UserDepartments"); b.Navigation("UserExpectJobs"); b.Navigation("UserManageIndustrialParks"); b.Navigation("UserRoles"); }); #pragma warning restore 612, 618 } } }