sunpengfei
22 小时以前 fd1d2c1d5f519ddb4667019d6685ff270ad6716b
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");
@@ -1008,9 +1023,6 @@
                    b.Property<int>("Access")
                        .HasColumnType("int");
                    b.Property<string>("Account")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("AccountBookId")
                        .HasColumnType("nvarchar(max)");
@@ -1062,14 +1074,20 @@
                    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");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<string>("MerchantId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("PersonalProductCode")
                        .HasColumnType("nvarchar(max)");
@@ -1272,6 +1290,9 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<decimal>("AfterBalance")
                        .HasColumnType("decimal(18,2)");
                    b.Property<decimal>("Amount")
                        .HasColumnType("decimal(18,2)");
@@ -1320,6 +1341,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)");
@@ -1331,6 +1358,15 @@
                    b.Property<string>("ProductCode")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ReceiveAccount")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ReceiveName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("ReceiveUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("ReceiverOpenId")
                        .HasColumnType("nvarchar(max)");
@@ -1378,6 +1414,10 @@
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.HasIndex("OperatorUserId");
                    b.HasIndex("ReceiveUserId");
                    b.HasIndex("TaskUserId");
@@ -1982,6 +2022,9 @@
                    b.Property<int>("SettlementCycle")
                        .HasColumnType("int");
                    b.Property<Guid?>("SettlementOperatorUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("SettlementOrderName")
                        .HasColumnType("nvarchar(max)");
@@ -2031,6 +2074,8 @@
                    b.HasIndex("EnterpriseId");
                    b.HasIndex("ProvinceCode");
                    b.HasIndex("SettlementOperatorUserId");
                    b.ToTable("TaskInfo");
                });
@@ -2132,6 +2177,9 @@
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<decimal>("ActualAmount")
                        .HasColumnType("decimal(18,2)");
                    b.Property<decimal?>("ActualSettlementAmount")
                        .HasColumnType("decimal(18,2)");
@@ -2956,6 +3004,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")
@@ -3172,6 +3378,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");
@@ -3181,6 +3395,10 @@
                        .HasForeignKey("WalletId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("OperatorUser");
                    b.Navigation("ReceiveUser");
                    b.Navigation("TaskUser");
@@ -3254,11 +3472,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 =>
@@ -3524,6 +3748,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");