| | |
| | | |
| | | SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.AlipayFundExpandindirectOrder", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("BizScene") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("BizType") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTimeOffset>("CreatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("Identity") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("IdentityType") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<string>("Name") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("OrderId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("OriginalOrderId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("OutBizNo") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("ProductCode") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("RiskReviewRemark") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("SceneCode") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("SceneDirections") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("SceneImage") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("SceneImageOssUrl") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("SceneQualificationImage") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("SceneQualificationImageOssUrl") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("SceneQualificationText") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("Sites") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<string>("Status") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("TaskFinishTime") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("TraceId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<DateTimeOffset?>("UpdatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.ToTable("AlipayFundExpandindirectOrder"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<string>("Code") |
| | | .HasColumnType("nvarchar(max)"); |
| | | .HasMaxLength(32) |
| | | .HasColumnType("nvarchar(32)"); |
| | | |
| | | b.Property<DateTime?>("CompletedTime") |
| | | .HasColumnType("datetime2"); |
| | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("WxmpQrCode") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("EnterpriseId"); |
| | |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("BindProperty") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | |
| | | b.ToTable("DictionaryData"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.ElectronSignSetting", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<int>("Access") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTimeOffset>("CreatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<bool>("IsDisabled") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<decimal?>("MergeSignCost") |
| | | .HasColumnType("decimal(18,2)"); |
| | | |
| | | b.Property<decimal?>("RealVerifyCost") |
| | | .HasColumnType("decimal(18,2)"); |
| | | |
| | | b.Property<decimal?>("SignCost") |
| | | .HasColumnType("decimal(18,2)"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<string>("TraceId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<DateTimeOffset?>("UpdatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.ToTable("ElectronSignSetting"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.Enterprise", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | |
| | | b.Property<string>("MainBusiness") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<decimal?>("MergeSignCost") |
| | | .HasColumnType("decimal(18,2)"); |
| | | |
| | | b.Property<int?>("PayAccess") |
| | | .HasColumnType("int"); |
| | | |
| | |
| | | b.Property<int?>("RealAccess") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<decimal?>("RealVerifyCost") |
| | | .HasColumnType("decimal(18,2)"); |
| | | |
| | | b.Property<string>("RegisteredCapital") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<decimal?>("SignCost") |
| | | .HasColumnType("decimal(18,2)"); |
| | | |
| | | b.Property<int?>("SmsAccess") |
| | | .HasColumnType("int"); |
| | |
| | | .HasColumnType("nvarchar(32)"); |
| | | |
| | | b.Property<string>("BankCardImg") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("CertAccount") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | |
| | | b.ToTable("EnterpriseAuth"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseCost", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<decimal?>("Amount") |
| | | .HasColumnType("decimal(18,2)"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTimeOffset>("CreatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<Guid?>("EnterpriseEmployeeContractId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<Guid>("EnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<int?>("Status") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<string>("TraceId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<int>("Type") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTimeOffset?>("UpdatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("EnterpriseEmployeeContractId"); |
| | | |
| | | b.HasIndex("EnterpriseId"); |
| | | |
| | | b.ToTable("EnterpriseCost"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseElectronSignSetting", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTimeOffset>("CreatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<int>("ElectronSignAccess") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<Guid>("EnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<string>("TraceId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<DateTimeOffset?>("UpdatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("EnterpriseId"); |
| | | |
| | | b.ToTable("EnterpriseElectronSignSetting"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | |
| | | .HasMaxLength(11) |
| | | .HasColumnType("nvarchar(11)"); |
| | | |
| | | b.Property<string>("ContractCode") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<Guid?>("ContractTemplateId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("ContractUrl") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | |
| | | |
| | | b.Property<Guid>("EnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("EnterpriseSignContractErrorMessage") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<int?>("EnterpriseSignContractStatus") |
| | | .HasColumnType("int"); |
| | |
| | | b.Property<Guid?>("UserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("UserSignContractErrorMessage") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<int?>("UserSignContractStatus") |
| | | .HasColumnType("int"); |
| | | |
| | |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("ContractTemplateId"); |
| | | |
| | | b.HasIndex("EnterpriseId"); |
| | | |
| | | b.HasIndex("UserId"); |
| | | |
| | | b.ToTable("EnterpriseEmployee"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployeeContract", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("ContractCode") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<Guid?>("ContractTemplateId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("ContractUrl") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTimeOffset>("CreatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<Guid>("EnterpriseEmployeeId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("EnterpriseSignContractErrorMessage") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<int?>("EnterpriseSignContractStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("EnterpriseSignContractTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<string>("TraceId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<DateTimeOffset?>("UpdatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("UserSignContractErrorMessage") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<int?>("UserSignContractStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("UserSignContractTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("ContractTemplateId"); |
| | | |
| | | b.HasIndex("EnterpriseEmployeeId"); |
| | | |
| | | b.ToTable("EnterpriseEmployeeContract"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b => |
| | |
| | | b.HasIndex("UserId"); |
| | | |
| | | b.ToTable("EnterpriseUserCollect"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseWallet", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<int>("Access") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTimeOffset>("CreatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<Guid>("EnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<string>("TraceId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<DateTimeOffset?>("UpdatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("EnterpriseId"); |
| | | |
| | | b.ToTable("EnterpriseWallet"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.Menu", b => |
| | |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<bool>("IsExpired") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<bool>("IsFromForm") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Method") |
| | |
| | | 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") |
| | |
| | | .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.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.Menu", b => |
| | |
| | | |
| | | b.Navigation("Departments"); |
| | | |
| | | b.Navigation("ElectronSignSettings"); |
| | | |
| | | b.Navigation("EnterpriseAuth"); |
| | | |
| | | b.Navigation("Users"); |
| | |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => |
| | | { |
| | | b.Navigation("Contracts"); |
| | | |
| | | b.Navigation("TaskInfoUsers"); |
| | | }); |
| | | |