| | |
| | | b.ToTable("EnterpriseEmployee"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTime?>("CollectedTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<DateTime?>("ContactedTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | 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>("IsCollected") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<bool>("IsContacted") |
| | | .HasColumnType("bit"); |
| | | |
| | | 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("EnterpriseId"); |
| | | |
| | | b.HasIndex("UserId"); |
| | | |
| | | b.ToTable("EnterpriseUserCollect"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.Menu", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | |
| | | |
| | | b.Property<string>("DynamicAssemblyName") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<bool>("FileUpload") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | |
| | | b.ToTable("TaskInfoUserSubmitFile"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.TaskUserCollect", 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<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<Guid>("TaskInfoId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | 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("TaskInfoId"); |
| | | |
| | | b.HasIndex("UserId"); |
| | | |
| | | b.ToTable("TaskUserCollect"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.User", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | |
| | | b.ToTable("UserRole"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.UserTaskCollect", 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<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<Guid>("TaskInfoId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | 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("TaskInfoId"); |
| | | |
| | | b.HasIndex("UserId"); |
| | | |
| | | b.ToTable("UserTaskCollect"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.Department", b => |
| | | { |
| | | b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") |
| | |
| | | b.HasOne("FlexJobApi.Core.User", "User") |
| | | .WithMany("EnterpriseEmployees") |
| | | .HasForeignKey("UserId"); |
| | | |
| | | b.Navigation("Enterprise"); |
| | | |
| | | b.Navigation("User"); |
| | | }); |
| | | |
| | | 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("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") |
| | |
| | | b.Navigation("User"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.UserTaskCollect", b => |
| | | { |
| | | b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") |
| | | .WithMany() |
| | | .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.Department", b => |
| | | { |
| | | b.Navigation("Children"); |
| | |
| | | b.Navigation("CredentialLimits"); |
| | | |
| | | b.Navigation("TaskInfoUsers"); |
| | | |
| | | b.Navigation("TaskUserCollects"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => |
| | |
| | | |
| | | b.Navigation("EnterpriseEmployees"); |
| | | |
| | | b.Navigation("EnterpriseUserCollects"); |
| | | |
| | | b.Navigation("Photos"); |
| | | |
| | | b.Navigation("UserAuth"); |