// using System; using FlexJobApi.EntityFramework.Core; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace FlexJobApi.Database.Migrations.Migrations { [DbContext(typeof(DefaultDbContext))] partial class DefaultDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("FlexJobApi.Core.Department", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Path") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("EnterpriseId"); b.HasIndex("ParentId"); b.ToTable("Department"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("FieldNames") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("DictionaryCategory"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CategoryId") .HasColumnType("uniqueidentifier"); b.Property("Code") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Content") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("Field1") .HasColumnType("nvarchar(max)"); b.Property("Field2") .HasColumnType("nvarchar(max)"); b.Property("Field3") .HasColumnType("nvarchar(max)"); b.Property("Field4") .HasColumnType("nvarchar(max)"); b.Property("Field5") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Path") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("CategoryId"); b.HasIndex("ParentId"); b.ToTable("DictionaryData"); }); modelBuilder.Entity("FlexJobApi.Core.Enterprise", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BankBranchName") .HasColumnType("nvarchar(max)"); b.Property("BankCard") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("BankName") .HasColumnType("nvarchar(max)"); b.Property("CityId") .HasColumnType("uniqueidentifier"); b.Property("ContactEmail") .HasColumnType("nvarchar(max)"); b.Property("ContactPhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("Contacts") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseAuthId") .HasColumnType("uniqueidentifier"); b.Property("IndustryTypeId") .HasColumnType("uniqueidentifier"); b.Property("IsCheckedBankCard") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("MainBusiness") .HasColumnType("nvarchar(max)"); b.Property("MergeSignCost") .HasColumnType("decimal(18,2)"); b.Property("PayAccess") .HasColumnType("int"); b.Property("ProvinceId") .HasColumnType("uniqueidentifier"); b.Property("RealAccess") .HasColumnType("int"); b.Property("RealVerifyCost") .HasColumnType("decimal(18,2)"); b.Property("SignCost") .HasColumnType("decimal(18,2)"); b.Property("SmsAccess") .HasColumnType("int"); b.Property("SmsCost") .HasColumnType("decimal(18,2)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("CityId"); b.HasIndex("EnterpriseAuthId"); b.HasIndex("IndustryTypeId"); b.HasIndex("ProvinceId"); b.ToTable("Enterprise"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BankCard") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("BankCardImg") .HasColumnType("nvarchar(max)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseName") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("EnterpriseRealMethod") .HasColumnType("int"); b.Property("Identity") .HasMaxLength(18) .HasColumnType("nvarchar(18)"); b.Property("IdentityBackImg") .HasColumnType("nvarchar(max)"); b.Property("IdentityImg") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsReal") .HasColumnType("bit"); b.Property("LegalIdentity") .HasMaxLength(18) .HasColumnType("nvarchar(18)"); b.Property("LegalPerson") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("LicenseImage") .HasColumnType("nvarchar(max)"); b.Property("Name") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("PersonalRealMethod") .HasColumnType("int"); b.Property("PhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("Proxy") .HasColumnType("bit"); b.Property("ProxyPowerAttorneyUrl") .HasColumnType("nvarchar(max)"); b.Property("SocietyCreditCode") .IsRequired() .HasMaxLength(18) .HasColumnType("nvarchar(18)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("EnterpriseAuth"); }); modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ClientType") .HasColumnType("int"); b.Property("Code") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("Group") .HasColumnType("nvarchar(max)"); b.Property("Icon") .HasColumnType("nvarchar(max)"); b.Property("IsCache") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("Location") .HasColumnType("nvarchar(max)"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Path") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("Url") .HasColumnType("nvarchar(max)"); b.Property("UserType") .HasColumnType("int"); b.Property("VisitLevel") .HasColumnType("int"); b.Property("Width") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("ParentId"); b.ToTable("Menu"); }); modelBuilder.Entity("FlexJobApi.Core.Resource", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ActionName") .HasColumnType("nvarchar(max)"); b.Property("ActionSummary") .HasColumnType("nvarchar(max)"); b.Property("AllowAnonymous") .HasColumnType("bit"); b.Property("ApplicationName") .HasColumnType("nvarchar(max)"); b.Property("Code") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Controller") .HasColumnType("int"); b.Property("ControllerSummary") .HasColumnType("nvarchar(max)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("DynamicAssemblyName") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsExpired") .HasColumnType("bit"); b.Property("Method") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestTypeFullName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestTypeName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ResponseTypeFullName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ResponseTypeName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Route") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RouteArea") .HasColumnType("nvarchar(max)"); b.Property("Service") .HasColumnType("int"); b.Property("ServiceName") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("Resource"); }); modelBuilder.Entity("FlexJobApi.Core.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ClientType") .HasColumnType("int"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("DataPower") .HasColumnType("int"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsDisabled") .HasColumnType("bit"); b.Property("MinLevel") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserType") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("Role"); }); modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("MenuId") .HasColumnType("uniqueidentifier"); b.Property("RoleId") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("MenuId"); b.HasIndex("RoleId"); b.ToTable("RoleMenu"); }); modelBuilder.Entity("FlexJobApi.Core.RoleResource", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("DataPower") .HasColumnType("int"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("ResourceId") .HasColumnType("uniqueidentifier"); b.Property("RoleId") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("ResourceId"); b.HasIndex("RoleId"); b.ToTable("RoleResource"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Address") .HasColumnType("nvarchar(max)"); b.Property("AgeMaxLimit") .HasColumnType("int"); b.Property("AgeMinLimit") .HasColumnType("int"); b.Property("BeginTime") .HasColumnType("datetime2"); b.Property("BillingMethod") .HasColumnType("int"); b.Property("CityId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("GenderLimit") .HasColumnType("int"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ServiceFee") .HasColumnType("decimal(18,2)"); b.Property("SettlementCycle") .HasColumnType("int"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("CityId"); b.HasIndex("EnterpriseId"); b.ToTable("TaskInfo"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BenefitId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TaskInfoId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("BenefitId"); b.HasIndex("TaskInfoId"); b.ToTable("TaskInfoBenefit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TaskInfoId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("TypeId") .HasColumnType("uniqueidentifier"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("TaskInfoId"); b.HasIndex("TypeId"); b.ToTable("TaskInfoCredentialLimit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("HireStatus") .HasColumnType("int"); b.Property("HireTime") .HasColumnType("datetime2"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("SignContractStatus") .HasColumnType("int"); b.Property("SignContractTime") .HasColumnType("datetime2"); b.Property("Sort") .HasColumnType("int"); b.Property("TaskInfoId") .HasColumnType("uniqueidentifier"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("TaskInfoId"); b.HasIndex("UserInfoId"); b.ToTable("TaskInfoUser"); }); modelBuilder.Entity("FlexJobApi.Core.UserAuth", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BankCard") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("BankCardImg") .HasColumnType("nvarchar(max)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("Identity") .HasColumnType("nvarchar(max)"); b.Property("IdentityBackImg") .HasColumnType("nvarchar(max)"); b.Property("IdentityImg") .HasColumnType("nvarchar(max)"); b.Property("IsCheckPhoneNumber") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsReal") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("Password") .HasColumnType("nvarchar(max)"); b.Property("PhoneNumber") .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("RealAccess") .HasColumnType("int"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserName") .IsRequired() .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.HasKey("Id"); b.ToTable("UserAuth"); b.HasData( new { Id = new Guid("11111111-1111-1111-1111-111111111111"), CreatedTime = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 8, 0, 0, 0)), IsCheckPhoneNumber = false, IsDeleted = false, IsReal = false, Name = "管理员", Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=", Sort = 0, UserName = "system" }); }); modelBuilder.Entity("FlexJobApi.Core.UserInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Avatar") .HasColumnType("nvarchar(max)"); b.Property("CityId") .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("EducationalBackgroundId") .HasColumnType("uniqueidentifier"); b.Property("EnterpriseId") .HasColumnType("uniqueidentifier"); b.Property("FreeTime") .HasColumnType("int"); b.Property("Height") .HasColumnType("int"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("JobSeekingStatus") .HasColumnType("int"); b.Property("Level") .HasColumnType("int"); b.Property("PersonalIdentityId") .HasColumnType("uniqueidentifier"); b.Property("ProvinceId") .HasColumnType("uniqueidentifier"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("Status") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserAuthId") .HasColumnType("uniqueidentifier"); b.Property("Weight") .HasColumnType("int"); b.Property("WorkExperience") .HasColumnType("nvarchar(max)"); b.Property("WorkSeniority") .HasColumnType("nvarchar(max)"); b.Property("WxmpOpenId") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.HasKey("Id"); b.HasIndex("CityId"); b.HasIndex("EducationalBackgroundId"); b.HasIndex("EnterpriseId"); b.HasIndex("PersonalIdentityId"); b.HasIndex("ProvinceId"); b.HasIndex("UserAuthId"); b.ToTable("UserInfo"); b.HasData( new { Id = new Guid("11111111-1111-1111-1111-111111111112"), CreatedTime = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 8, 0, 0, 0)), IsDeleted = false, Level = 999, Sort = 0, Status = 0, Type = 100, UserAuthId = new Guid("11111111-1111-1111-1111-111111111111") }); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoBankCard", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Bank") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Code") .IsRequired() .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("PhoneNumber") .IsRequired() .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("UserInfoId"); b.ToTable("UserInfoBankCard"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BackImg") .HasColumnType("nvarchar(max)"); b.Property("Code") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("EndDate") .HasColumnType("datetime2"); b.Property("Img") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsForever") .HasColumnType("bit"); b.Property("IssueUnit") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("TypeId") .HasColumnType("uniqueidentifier"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("TypeId"); b.HasIndex("UserInfoId"); b.ToTable("UserInfoCredential"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("DepartmentId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("DepartmentId"); b.HasIndex("UserInfoId"); b.ToTable("UserInfoDepartment"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("PersonalIdentityId") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("PersonalIdentityId"); b.HasIndex("UserInfoId"); b.ToTable("UserInfoExpectJob"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("Img") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("UserInfoId"); b.ToTable("UserInfoPhoto"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("RoleId") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("UpdatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UserInfoId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("RoleId"); b.HasIndex("UserInfoId"); b.ToTable("UserInfoRole"); }); modelBuilder.Entity("FlexJobApi.Core.Department", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany("Departments") .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.Department", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Enterprise"); b.Navigation("Parent"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b => { b.HasOne("FlexJobApi.Core.DictionaryCategory", "Category") .WithMany() .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Category"); b.Navigation("Parent"); }); modelBuilder.Entity("FlexJobApi.Core.Enterprise", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "City") .WithMany() .HasForeignKey("CityId"); b.HasOne("FlexJobApi.Core.EnterpriseAuth", "EnterpriseAuth") .WithMany() .HasForeignKey("EnterpriseAuthId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "IndustryType") .WithMany() .HasForeignKey("IndustryTypeId"); b.HasOne("FlexJobApi.Core.DictionaryData", "Province") .WithMany() .HasForeignKey("ProvinceId"); b.Navigation("City"); b.Navigation("EnterpriseAuth"); b.Navigation("IndustryType"); b.Navigation("Province"); }); modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.HasOne("FlexJobApi.Core.Menu", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Parent"); }); modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b => { b.HasOne("FlexJobApi.Core.Menu", "Menu") .WithMany() .HasForeignKey("MenuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.Role", "Role") .WithMany("RoleMenus") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Menu"); b.Navigation("Role"); }); modelBuilder.Entity("FlexJobApi.Core.RoleResource", b => { b.HasOne("FlexJobApi.Core.Resource", "Resource") .WithMany() .HasForeignKey("ResourceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.Role", "Role") .WithMany("RoleResources") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Resource"); b.Navigation("Role"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "City") .WithMany() .HasForeignKey("CityId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany() .HasForeignKey("EnterpriseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("City"); b.Navigation("Enterprise"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "Benefit") .WithMany() .HasForeignKey("BenefitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") .WithMany("Benefits") .HasForeignKey("TaskInfoId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Benefit"); b.Navigation("TaskInfo"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b => { b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") .WithMany("CredentialLimits") .HasForeignKey("TaskInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "Type") .WithMany() .HasForeignKey("TypeId"); b.Navigation("TaskInfo"); b.Navigation("Type"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => { b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") .WithMany() .HasForeignKey("TaskInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo") .WithMany() .HasForeignKey("UserInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("TaskInfo"); b.Navigation("UserInfo"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfo", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "City") .WithMany() .HasForeignKey("CityId"); b.HasOne("FlexJobApi.Core.DictionaryData", "EducationalBackground") .WithMany() .HasForeignKey("EducationalBackgroundId"); b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") .WithMany("UserInfos") .HasForeignKey("EnterpriseId"); b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity") .WithMany() .HasForeignKey("PersonalIdentityId"); b.HasOne("FlexJobApi.Core.DictionaryData", "Province") .WithMany() .HasForeignKey("ProvinceId"); b.HasOne("FlexJobApi.Core.UserAuth", "UserAuth") .WithMany("UserInfos") .HasForeignKey("UserAuthId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("City"); b.Navigation("EducationalBackground"); b.Navigation("Enterprise"); b.Navigation("PersonalIdentity"); b.Navigation("Province"); b.Navigation("UserAuth"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoBankCard", b => { b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo") .WithMany() .HasForeignKey("UserInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("UserInfo"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "Type") .WithMany() .HasForeignKey("TypeId"); b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo") .WithMany("UserInfoCredentials") .HasForeignKey("UserInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Type"); b.Navigation("UserInfo"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b => { b.HasOne("FlexJobApi.Core.Department", "Department") .WithMany() .HasForeignKey("DepartmentId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo") .WithMany("UserInfoDepartments") .HasForeignKey("UserInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Department"); b.Navigation("UserInfo"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b => { b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity") .WithMany() .HasForeignKey("PersonalIdentityId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo") .WithMany("UserInfoExpectJobs") .HasForeignKey("UserInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("PersonalIdentity"); b.Navigation("UserInfo"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b => { b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo") .WithMany() .HasForeignKey("UserInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("UserInfo"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b => { b.HasOne("FlexJobApi.Core.Role", "Role") .WithMany("UserInfoRoles") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo") .WithMany("UserInfoRoles") .HasForeignKey("UserInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Role"); b.Navigation("UserInfo"); }); modelBuilder.Entity("FlexJobApi.Core.Department", b => { b.Navigation("Children"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b => { b.Navigation("Children"); }); modelBuilder.Entity("FlexJobApi.Core.Enterprise", b => { b.Navigation("Departments"); b.Navigation("UserInfos"); }); modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.Navigation("Children"); }); modelBuilder.Entity("FlexJobApi.Core.Role", b => { b.Navigation("RoleMenus"); b.Navigation("RoleResources"); b.Navigation("UserInfoRoles"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => { b.Navigation("Benefits"); b.Navigation("CredentialLimits"); }); modelBuilder.Entity("FlexJobApi.Core.UserAuth", b => { b.Navigation("UserInfos"); }); modelBuilder.Entity("FlexJobApi.Core.UserInfo", b => { b.Navigation("UserInfoCredentials"); b.Navigation("UserInfoDepartments"); b.Navigation("UserInfoExpectJobs"); b.Navigation("UserInfoRoles"); }); #pragma warning restore 612, 618 } } }