| | |
| | | b.ToTable("EnterpriseAuth"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<int?>("Age") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<string>("ContactPhoneNumber") |
| | | .HasMaxLength(11) |
| | | .HasColumnType("nvarchar(11)"); |
| | | |
| | | 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>("EnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<int?>("EnterpriseSignContractStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("EnterpriseSignContractTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<int?>("Gender") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<int>("HireStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("HireTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<string>("Identity") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("IdentityBackImg") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<string>("IdentityImg") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<string>("Name") |
| | | .HasMaxLength(32) |
| | | .HasColumnType("nvarchar(32)"); |
| | | |
| | | 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.Property<int?>("UserSignContractStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("UserSignContractTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("EnterpriseId"); |
| | | |
| | | b.HasIndex("UserId"); |
| | | |
| | | b.ToTable("EnterpriseEmployee"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.Menu", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<int?>("ArrangeStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("ArrangeTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<int?>("CheckReceiveStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("CheckReceiveTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<int>("HireStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("HireTime") |
| | | .HasColumnType("datetime2"); |
| | | b.Property<Guid>("EnterpriseEmployeeId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int?>("SignContractStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("SignContractTime") |
| | | b.Property<DateTime?>("LastSubmitTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<int>("Sort") |
| | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<Guid>("UserId") |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("EnterpriseEmployeeId"); |
| | | |
| | | b.HasIndex("TaskInfoId"); |
| | | |
| | | b.ToTable("TaskInfoUser"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<int>("CheckReceiveStatus") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("CheckReceiveTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<Guid?>("CreatedEnterpriseId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTimeOffset>("CreatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTime>("Date") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<Guid>("TaskInfoUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("TraceId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<DateTimeOffset?>("UpdatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("TaskInfoId"); |
| | | b.HasIndex("TaskInfoUserId"); |
| | | |
| | | b.HasIndex("UserId"); |
| | | b.ToTable("TaskInfoUserSubmit"); |
| | | }); |
| | | |
| | | b.ToTable("TaskInfoUser"); |
| | | modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmitFile", 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<string>("File") |
| | | .IsRequired() |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .HasColumnType("bit"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<Guid>("SubmitId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<string>("TraceId") |
| | | .HasColumnType("nvarchar(max)"); |
| | | |
| | | b.Property<DateTimeOffset?>("UpdatedTime") |
| | | .HasColumnType("datetimeoffset"); |
| | | |
| | | b.Property<Guid?>("UpdatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("SubmitId"); |
| | | |
| | | b.ToTable("TaskInfoUserSubmitFile"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.User", b => |
| | |
| | | |
| | | b.Property<int?>("RealAccess") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<int?>("RealMethod") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime?>("RealTime") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasColumnType("nvarchar(max)"); |
| | |
| | | b.Property<Guid?>("CreatedUserId") |
| | | .HasColumnType("uniqueidentifier"); |
| | | |
| | | b.Property<DateTime>("EndDate") |
| | | b.Property<DateTime?>("EndDate") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<string>("Img") |
| | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int"); |
| | | |
| | | b.Property<DateTime>("StartDate") |
| | | b.Property<DateTime?>("StartDate") |
| | | .HasColumnType("datetime2"); |
| | | |
| | | b.Property<string>("TraceId") |
| | |
| | | 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") |
| | |
| | | .IsRequired(); |
| | | |
| | | b.Navigation("Enterprise"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => |
| | | { |
| | | 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("Enterprise"); |
| | | |
| | | b.Navigation("User"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.Menu", b => |
| | |
| | | |
| | | 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("Users") |
| | | .WithMany("TaskInfoUsers") |
| | | .HasForeignKey("TaskInfoId") |
| | | .OnDelete(DeleteBehavior.Cascade) |
| | | .IsRequired(); |
| | | |
| | | b.HasOne("FlexJobApi.Core.User", "User") |
| | | .WithMany() |
| | | .HasForeignKey("UserId") |
| | | 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("TaskInfo"); |
| | | b.Navigation("TaskInfoUser"); |
| | | }); |
| | | |
| | | b.Navigation("User"); |
| | | 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.User", b => |
| | |
| | | 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("EnterpriseAuth"); |
| | | |
| | | b.Navigation("Users"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => |
| | | { |
| | | b.Navigation("TaskInfoUsers"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("FlexJobApi.Core.Menu", b => |
| | |
| | | |
| | | b.Navigation("CredentialLimits"); |
| | | |
| | | b.Navigation("Users"); |
| | | b.Navigation("TaskInfoUsers"); |
| | | }); |
| | | |
| | | 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("Photos"); |
| | | |
| | | b.Navigation("UserAuth"); |