From 285404b0f7161ceca8621e61026682bbbb3f71aa Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 10 九月 2025 14:23:31 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs | 264 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 264 insertions(+), 0 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs index 9c2e419..44aeb78 100644 --- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs +++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs @@ -46,6 +46,21 @@ b.Property<bool>("IsDeleted") .HasColumnType("bit"); + b.Property<string>("ParamValue1") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ParamValue2") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ParamValue3") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ParamValue4") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ParamValue5") + .HasColumnType("nvarchar(max)"); + b.Property<int>("Scene") .HasColumnType("int"); @@ -1062,6 +1077,15 @@ b.Property<Guid>("EnterpriseId") .HasColumnType("uniqueidentifier"); + b.Property<string>("ErrorCode") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("FailReason") + .HasColumnType("nvarchar(max)"); + + b.Property<decimal>("FreezeBalance") + .HasColumnType("decimal(18,2)"); + b.Property<DateTime?>("InvalidTime") .HasColumnType("datetime2"); @@ -1272,6 +1296,9 @@ .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); + b.Property<decimal>("AfterBalance") + .HasColumnType("decimal(18,2)"); + b.Property<decimal>("Amount") .HasColumnType("decimal(18,2)"); @@ -1320,6 +1347,12 @@ b.Property<string>("Link") .HasColumnType("nvarchar(max)"); + b.Property<DateTime?>("OperatorTime") + .HasColumnType("datetime2"); + + b.Property<Guid?>("OperatorUserId") + .HasColumnType("uniqueidentifier"); + b.Property<decimal?>("OrderFee") .HasColumnType("decimal(18,2)"); @@ -1337,6 +1370,9 @@ b.Property<string>("ReceiveName") .HasColumnType("nvarchar(max)"); + + b.Property<Guid?>("ReceiveUserId") + .HasColumnType("uniqueidentifier"); b.Property<string>("ReceiverOpenId") .HasColumnType("nvarchar(max)"); @@ -1384,6 +1420,10 @@ .HasColumnType("uniqueidentifier"); b.HasKey("Id"); + + b.HasIndex("OperatorUserId"); + + b.HasIndex("ReceiveUserId"); b.HasIndex("TaskUserId"); @@ -1988,6 +2028,9 @@ b.Property<int>("SettlementCycle") .HasColumnType("int"); + b.Property<Guid?>("SettlementOperatorUserId") + .HasColumnType("uniqueidentifier"); + b.Property<string>("SettlementOrderName") .HasColumnType("nvarchar(max)"); @@ -2037,6 +2080,8 @@ b.HasIndex("EnterpriseId"); b.HasIndex("ProvinceCode"); + + b.HasIndex("SettlementOperatorUserId"); b.ToTable("TaskInfo"); }); @@ -2138,6 +2183,9 @@ b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); + + b.Property<decimal>("ActualAmount") + .HasColumnType("decimal(18,2)"); b.Property<decimal?>("ActualSettlementAmount") .HasColumnType("decimal(18,2)"); @@ -2962,6 +3010,164 @@ b.ToTable("UserRole"); }); + modelBuilder.Entity("FlexJobApi.Core.UserWallet", b => + { + b.Property<Guid>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property<decimal>("Balance") + .HasColumnType("decimal(18,2)"); + + 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<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<Guid>("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("UserWallet"); + }); + + modelBuilder.Entity("FlexJobApi.Core.UserWalletTransaction", b => + { + b.Property<Guid>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property<decimal>("ActualAmount") + .HasColumnType("decimal(18,2)"); + + b.Property<decimal>("AfterBalance") + .HasColumnType("decimal(18,2)"); + + b.Property<decimal>("Amount") + .HasColumnType("decimal(18,2)"); + + b.Property<DateTime?>("ArrivalTimeEnd") + .HasColumnType("datetime2"); + + b.Property<decimal>("Balance") + .HasColumnType("decimal(18,2)"); + + b.Property<string>("Code") + .HasColumnType("nvarchar(max)"); + + b.Property<Guid?>("CreatedEnterpriseId") + .HasColumnType("uniqueidentifier"); + + b.Property<DateTimeOffset>("CreatedTime") + .HasColumnType("datetimeoffset"); + + b.Property<Guid?>("CreatedUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<string>("EnterpriseName") + .HasColumnType("nvarchar(max)"); + + b.Property<Guid?>("EnterpriseWalletTransactionId") + .HasColumnType("uniqueidentifier"); + + b.Property<string>("ErrorCode") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("FailReason") + .HasColumnType("nvarchar(max)"); + + b.Property<bool>("IsDeleted") + .HasColumnType("bit"); + + b.Property<DateTime?>("OperatorTime") + .HasColumnType("datetime2"); + + b.Property<Guid?>("OperatorUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<string>("ReceiveAccount") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ReceiveName") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property<decimal>("ServiceFee") + .HasColumnType("decimal(18,2)"); + + b.Property<decimal?>("SettlementAmount") + .HasColumnType("decimal(18,2)"); + + b.Property<DateTime?>("SettlementTime") + .HasColumnType("datetime2"); + + b.Property<int>("Sort") + .HasColumnType("int"); + + b.Property<Guid?>("TaskUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<string>("Title") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("TraceId") + .HasColumnType("nvarchar(max)"); + + b.Property<DateTime?>("TransDate") + .HasColumnType("datetime2"); + + b.Property<int>("TransactionStatus") + .HasColumnType("int"); + + b.Property<int>("Type") + .HasColumnType("int"); + + b.Property<DateTimeOffset?>("UpdatedTime") + .HasColumnType("datetimeoffset"); + + b.Property<Guid?>("UpdatedUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<Guid>("WalletId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("EnterpriseWalletTransactionId"); + + b.HasIndex("OperatorUserId"); + + b.HasIndex("TaskUserId"); + + b.HasIndex("WalletId"); + + b.ToTable("UserWalletTransaction"); + }); + modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") @@ -3178,6 +3384,14 @@ modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletTransaction", b => { + b.HasOne("FlexJobApi.Core.User", "OperatorUser") + .WithMany() + .HasForeignKey("OperatorUserId"); + + b.HasOne("FlexJobApi.Core.User", "ReceiveUser") + .WithMany() + .HasForeignKey("ReceiveUserId"); + b.HasOne("FlexJobApi.Core.TaskInfoUser", "TaskUser") .WithMany() .HasForeignKey("TaskUserId"); @@ -3187,6 +3401,10 @@ .HasForeignKey("WalletId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("OperatorUser"); + + b.Navigation("ReceiveUser"); b.Navigation("TaskUser"); @@ -3260,11 +3478,17 @@ .HasPrincipalKey("Code") .OnDelete(DeleteBehavior.Restrict); + b.HasOne("FlexJobApi.Core.User", "SettlementOperatorUser") + .WithMany() + .HasForeignKey("SettlementOperatorUserId"); + b.Navigation("City"); b.Navigation("Enterprise"); b.Navigation("Province"); + + b.Navigation("SettlementOperatorUser"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b => @@ -3530,6 +3754,46 @@ b.Navigation("User"); }); + modelBuilder.Entity("FlexJobApi.Core.UserWallet", b => + { + b.HasOne("FlexJobApi.Core.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("FlexJobApi.Core.UserWalletTransaction", b => + { + b.HasOne("FlexJobApi.Core.EnterpriseWalletTransaction", "EnterpriseWalletTransaction") + .WithMany() + .HasForeignKey("EnterpriseWalletTransactionId"); + + b.HasOne("FlexJobApi.Core.User", "OperatorUser") + .WithMany() + .HasForeignKey("OperatorUserId"); + + b.HasOne("FlexJobApi.Core.TaskInfoUser", "TaskUser") + .WithMany() + .HasForeignKey("TaskUserId"); + + b.HasOne("FlexJobApi.Core.UserWallet", "Wallet") + .WithMany() + .HasForeignKey("WalletId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("EnterpriseWalletTransaction"); + + b.Navigation("OperatorUser"); + + b.Navigation("TaskUser"); + + b.Navigation("Wallet"); + }); + modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b => { b.Navigation("Values"); -- Gitblit v1.9.1