// using System; using Jiaowu.Api.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql { [DbContext(typeof(AppDbContext))] [Migration("20260724051514_CurriculumPlans")] partial class CurriculumPlans { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.AcademicTerm", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("AcademicYear") .IsRequired() .HasColumnType("longtext"); b.Property("Code") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("EndDate") .HasColumnType("date"); b.Property("IsCurrent") .HasColumnType("tinyint(1)"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Season") .HasColumnType("int"); b.Property("SortOrder") .HasColumnType("int"); b.Property("StartDate") .HasColumnType("date"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique(); b.HasIndex("IsCurrent"); b.HasIndex("IsEnabled", "SortOrder"); b.ToTable("AcademicTerms"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.AdministrativeClass", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("Code") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)"); b.Property("CounselorName") .HasColumnType("longtext"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("Grade") .HasColumnType("int"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("MajorId") .HasColumnType("char(36)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("SortOrder") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique(); b.HasIndex("MajorId"); b.HasIndex("IsEnabled", "SortOrder"); b.ToTable("AdministrativeClasses"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Building", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CampusId") .HasColumnType("char(36)"); b.Property("Code") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("SortOrder") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("CampusId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("IsEnabled", "SortOrder"); b.ToTable("Buildings"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Campus", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("Address") .HasColumnType("longtext"); b.Property("Code") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("SortOrder") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique(); b.HasIndex("IsEnabled", "SortOrder"); b.ToTable("Campuses"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Classroom", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("BuildingId") .HasColumnType("char(36)"); b.Property("Capacity") .HasColumnType("int"); b.Property("Code") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("Equipment") .HasColumnType("longtext"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("RoomType") .IsRequired() .HasColumnType("longtext"); b.Property("SortOrder") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("BuildingId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("IsEnabled", "SortOrder"); b.ToTable("Classrooms"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.College", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CampusId") .HasColumnType("char(36)"); b.Property("Code") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("ShortName") .HasColumnType("longtext"); b.Property("SortOrder") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("CampusId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("IsEnabled", "SortOrder"); b.ToTable("Colleges"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Course", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("AssessmentMethod") .HasColumnType("int"); b.Property("Code") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)"); b.Property("CollegeId") .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("Credits") .HasPrecision(5, 2) .HasColumnType("decimal(5,2)"); b.Property("Description") .HasMaxLength(1000) .HasColumnType("varchar(1000)"); b.Property("EnglishName") .HasMaxLength(150) .HasColumnType("varchar(150)"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("LectureHours") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Nature") .HasColumnType("int"); b.Property("PracticeHours") .HasColumnType("int"); b.Property("SortOrder") .HasColumnType("int"); b.Property("TotalHours") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique(); b.HasIndex("CollegeId", "Nature"); b.HasIndex("IsEnabled", "SortOrder"); b.ToTable("Courses"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CurriculumCourse", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CourseId") .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("CurriculumModuleId") .HasColumnType("char(36)"); b.Property("Notes") .HasMaxLength(500) .HasColumnType("varchar(500)"); b.Property("RecommendedSemester") .HasColumnType("int"); b.Property("Type") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("CourseId"); b.HasIndex("CurriculumModuleId", "CourseId") .IsUnique(); b.ToTable("CurriculumCourses"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CurriculumModule", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("Code") .IsRequired() .HasMaxLength(30) .HasColumnType("varchar(30)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("CurriculumPlanId") .HasColumnType("char(36)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("RequiredCredits") .HasPrecision(6, 2) .HasColumnType("decimal(6,2)"); b.Property("SortOrder") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("CurriculumPlanId", "Code") .IsUnique(); b.ToTable("CurriculumModules"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CurriculumPlan", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("Description") .HasMaxLength(1000) .HasColumnType("varchar(1000)"); b.Property("EffectiveGrade") .HasColumnType("int"); b.Property("MajorId") .HasColumnType("char(36)"); b.Property("Name") .IsRequired() .HasMaxLength(120) .HasColumnType("varchar(120)"); b.Property("PublishedAt") .HasColumnType("datetime(6)"); b.Property("Status") .HasColumnType("int"); b.Property("TotalCredits") .HasPrecision(6, 2) .HasColumnType("decimal(6,2)"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.Property("Version") .IsRequired() .HasMaxLength(30) .HasColumnType("varchar(30)"); b.HasKey("Id"); b.HasIndex("Status", "EffectiveGrade"); b.HasIndex("MajorId", "EffectiveGrade", "Version") .IsUnique(); b.ToTable("CurriculumPlans"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Major", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("Code") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)"); b.Property("CollegeId") .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("DegreeType") .IsRequired() .HasColumnType("longtext"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("SchoolingYears") .HasColumnType("int"); b.Property("SortOrder") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique(); b.HasIndex("CollegeId"); b.HasIndex("IsEnabled", "SortOrder"); b.ToTable("Majors"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Student", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("AdministrativeClassId") .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("DateOfBirth") .HasColumnType("date"); b.Property("Email") .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("EnrollmentDate") .HasColumnType("date"); b.Property("EnrollmentYear") .HasColumnType("int"); b.Property("Gender") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Notes") .HasMaxLength(500) .HasColumnType("varchar(500)"); b.Property("Phone") .HasMaxLength(30) .HasColumnType("varchar(30)"); b.Property("Status") .HasColumnType("int"); b.Property("StudentNumber") .IsRequired() .HasMaxLength(30) .HasColumnType("varchar(30)"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("EnrollmentYear"); b.HasIndex("StudentNumber") .IsUnique(); b.HasIndex("UserId"); b.HasIndex("AdministrativeClassId", "Status"); b.ToTable("Students"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Teacher", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CollegeId") .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("Email") .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Gender") .HasColumnType("int"); b.Property("HireDate") .HasColumnType("date"); b.Property("IsExternal") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Notes") .HasMaxLength(500) .HasColumnType("varchar(500)"); b.Property("Phone") .HasMaxLength(30) .HasColumnType("varchar(30)"); b.Property("Status") .HasColumnType("int"); b.Property("TeacherNumber") .IsRequired() .HasMaxLength(30) .HasColumnType("varchar(30)"); b.Property("Title") .HasMaxLength(30) .HasColumnType("varchar(30)"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TeacherNumber") .IsUnique(); b.HasIndex("UserId"); b.HasIndex("CollegeId", "Status"); b.ToTable("Teachers"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Identity.ApplicationRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("longtext"); b.Property("DataScope") .HasColumnType("int"); b.Property("Description") .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Name") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("NormalizedName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasDatabaseName("RoleNameIndex"); b.ToTable("AspNetRoles", (string)null); }); modelBuilder.Entity("Jiaowu.Api.Domain.Identity.ApplicationUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("AccessFailedCount") .HasColumnType("int"); b.Property("CollegeId") .HasColumnType("char(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("longtext"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Email") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("EmailConfirmed") .HasColumnType("tinyint(1)"); b.Property("IsEnabled") .HasColumnType("tinyint(1)"); b.Property("LastLoginAt") .HasColumnType("datetime(6)"); b.Property("LockoutEnabled") .HasColumnType("tinyint(1)"); b.Property("LockoutEnd") .HasColumnType("datetime"); b.Property("NormalizedEmail") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("NormalizedUserName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("PasswordHash") .HasColumnType("longtext"); b.Property("PhoneNumber") .HasColumnType("longtext"); b.Property("PhoneNumberConfirmed") .HasColumnType("tinyint(1)"); b.Property("SecurityStamp") .HasColumnType("longtext"); b.Property("StaffNumber") .HasMaxLength(30) .HasColumnType("varchar(30)"); b.Property("TwoFactorEnabled") .HasColumnType("tinyint(1)"); b.Property("UserName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasDatabaseName("UserNameIndex"); b.HasIndex("StaffNumber"); b.ToTable("AspNetUsers", (string)null); }); modelBuilder.Entity("Jiaowu.Api.Domain.System.AuditLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("IpAddress") .HasMaxLength(64) .HasColumnType("varchar(64)"); b.Property("Method") .IsRequired() .HasMaxLength(10) .HasColumnType("varchar(10)"); b.Property("Path") .IsRequired() .HasMaxLength(300) .HasColumnType("varchar(300)"); b.Property("StatusCode") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.Property("UserId") .HasColumnType("char(36)"); b.Property("UserName") .HasMaxLength(100) .HasColumnType("varchar(100)"); b.HasKey("Id"); b.HasIndex("CreatedAt"); b.ToTable("AuditLogs"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ClaimType") .HasColumnType("longtext"); b.Property("ClaimValue") .HasColumnType("longtext"); b.Property("RoleId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ClaimType") .HasColumnType("longtext"); b.Property("ClaimValue") .HasColumnType("longtext"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.Property("LoginProvider") .HasColumnType("varchar(255)"); b.Property("ProviderKey") .HasColumnType("varchar(255)"); b.Property("ProviderDisplayName") .HasColumnType("longtext"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") .HasColumnType("char(36)"); b.Property("RoleId") .HasColumnType("char(36)"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") .HasColumnType("char(36)"); b.Property("LoginProvider") .HasColumnType("varchar(255)"); b.Property("Name") .HasColumnType("varchar(255)"); b.Property("Value") .HasColumnType("longtext"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens", (string)null); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.AdministrativeClass", b => { b.HasOne("Jiaowu.Api.Domain.Academic.Major", "Major") .WithMany() .HasForeignKey("MajorId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Major"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Building", b => { b.HasOne("Jiaowu.Api.Domain.Academic.Campus", "Campus") .WithMany() .HasForeignKey("CampusId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Campus"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Classroom", b => { b.HasOne("Jiaowu.Api.Domain.Academic.Building", "Building") .WithMany() .HasForeignKey("BuildingId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Building"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.College", b => { b.HasOne("Jiaowu.Api.Domain.Academic.Campus", "Campus") .WithMany() .HasForeignKey("CampusId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Campus"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Course", b => { b.HasOne("Jiaowu.Api.Domain.Academic.College", "College") .WithMany() .HasForeignKey("CollegeId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("College"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CurriculumCourse", b => { b.HasOne("Jiaowu.Api.Domain.Academic.Course", "Course") .WithMany() .HasForeignKey("CourseId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("Jiaowu.Api.Domain.Academic.CurriculumModule", "CurriculumModule") .WithMany("Courses") .HasForeignKey("CurriculumModuleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Course"); b.Navigation("CurriculumModule"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CurriculumModule", b => { b.HasOne("Jiaowu.Api.Domain.Academic.CurriculumPlan", "CurriculumPlan") .WithMany("Modules") .HasForeignKey("CurriculumPlanId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("CurriculumPlan"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CurriculumPlan", b => { b.HasOne("Jiaowu.Api.Domain.Academic.Major", "Major") .WithMany() .HasForeignKey("MajorId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Major"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Major", b => { b.HasOne("Jiaowu.Api.Domain.Academic.College", "College") .WithMany() .HasForeignKey("CollegeId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("College"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Student", b => { b.HasOne("Jiaowu.Api.Domain.Academic.AdministrativeClass", "AdministrativeClass") .WithMany() .HasForeignKey("AdministrativeClassId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("Jiaowu.Api.Domain.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.SetNull); b.Navigation("AdministrativeClass"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.Teacher", b => { b.HasOne("Jiaowu.Api.Domain.Academic.College", "College") .WithMany() .HasForeignKey("CollegeId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("Jiaowu.Api.Domain.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.SetNull); b.Navigation("College"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("Jiaowu.Api.Domain.Identity.ApplicationRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.HasOne("Jiaowu.Api.Domain.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.HasOne("Jiaowu.Api.Domain.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.HasOne("Jiaowu.Api.Domain.Identity.ApplicationRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Jiaowu.Api.Domain.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.HasOne("Jiaowu.Api.Domain.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CurriculumModule", b => { b.Navigation("Courses"); }); modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CurriculumPlan", b => { b.Navigation("Modules"); }); #pragma warning restore 612, 618 } } }