//
using System;
using Jiaowu.Api.Infrastructure.Persistence;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
{
[DbContext(typeof(AppDbContext))]
partial class AppDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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("CounselorUserId")
.HasColumnType("char(36)");
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("CounselorUserId");
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("CourseCategoryId")
.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("CourseCategoryId");
b.HasIndex("CollegeId", "Nature");
b.HasIndex("IsEnabled", "SortOrder");
b.ToTable("Courses");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CourseCategory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.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("Code")
.IsUnique();
b.HasIndex("IsEnabled", "SortOrder");
b.ToTable("CourseCategories");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CourseEnrollment", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CourseSelectionOfferingId")
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("EnrolledAt")
.HasColumnType("datetime(6)");
b.Property("Status")
.HasColumnType("int");
b.Property("StudentId")
.HasColumnType("char(36)");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.Property("WithdrawnAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("CourseSelectionOfferingId", "StudentId")
.IsUnique();
b.HasIndex("StudentId", "Status");
b.ToTable("CourseEnrollments");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CourseSelectionOffering", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Capacity")
.HasColumnType("int");
b.Property("CourseSelectionRoundId")
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("IsOpenToAll")
.HasColumnType("tinyint(1)");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("TeachingTaskId")
.HasColumnType("char(36)");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("TeachingTaskId");
b.HasIndex("CourseSelectionRoundId", "TeachingTaskId")
.IsUnique();
b.ToTable("CourseSelectionOfferings");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.CourseSelectionRound", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("AcademicTermId")
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("EndsAt")
.HasColumnType("datetime(6)");
b.Property("MaxCredits")
.HasPrecision(6, 1)
.HasColumnType("decimal(6,1)");
b.Property("Name")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("varchar(120)");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("StartsAt")
.HasColumnType("datetime(6)");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.Property("WithdrawalEndsAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("AcademicTermId", "Status");
b.ToTable("CourseSelectionRounds");
});
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.DegreeAwardBatch", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CalculatedAt")
.HasColumnType("datetime(6)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("DegreeName")
.IsRequired()
.HasMaxLength(80)
.HasColumnType("varchar(80)");
b.Property("GraduationYear")
.HasColumnType("int");
b.Property("MinimumGradePoint")
.HasPrecision(3, 2)
.HasColumnType("decimal(3,2)");
b.Property("Name")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("varchar(120)");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("PublishedAt")
.HasColumnType("datetime(6)");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("GraduationYear", "Status");
b.ToTable("DegreeAwardBatches");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.DegreeAwardResult", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("AverageGradePoint")
.HasPrecision(4, 2)
.HasColumnType("decimal(4,2)");
b.Property("CalculatedConclusion")
.HasColumnType("int");
b.Property("Conclusion")
.HasColumnType("int");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("DegreeAwardBatchId")
.HasColumnType("char(36)");
b.Property("ExceptionReason")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("GraduationAuditResultId")
.HasColumnType("char(36)");
b.Property("IsOverridden")
.HasColumnType("tinyint(1)");
b.Property("ReviewComment")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("ReviewedAt")
.HasColumnType("datetime(6)");
b.Property("StudentId")
.HasColumnType("char(36)");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("GraduationAuditResultId");
b.HasIndex("StudentId");
b.HasIndex("Conclusion", "IsOverridden");
b.HasIndex("DegreeAwardBatchId", "StudentId")
.IsUnique();
b.ToTable("DegreeAwardResults");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.ExamPlan", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("AcademicTermId")
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("Name")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("varchar(120)");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("PublishedAt")
.HasColumnType("datetime(6)");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("AcademicTermId", "Status");
b.ToTable("ExamPlans");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.ExamSession", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ClassroomId")
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("EndsAt")
.HasColumnType("datetime(6)");
b.Property("ExamPlanId")
.HasColumnType("char(36)");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("StartsAt")
.HasColumnType("datetime(6)");
b.Property("TeachingTaskId")
.HasColumnType("char(36)");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("ClassroomId");
b.HasIndex("TeachingTaskId");
b.HasIndex("ExamPlanId", "StartsAt");
b.ToTable("ExamSessions");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.ExamSessionInvigilator", b =>
{
b.Property("ExamSessionId")
.HasColumnType("char(36)");
b.Property("TeacherId")
.HasColumnType("char(36)");
b.HasKey("ExamSessionId", "TeacherId");
b.HasIndex("TeacherId");
b.ToTable("ExamSessionInvigilators");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.GradeRecord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("ExamStatus")
.HasColumnType("int");
b.Property("FinalScore")
.HasPrecision(5, 1)
.HasColumnType("decimal(5,1)");
b.Property("GradePoint")
.HasPrecision(3, 1)
.HasColumnType("decimal(3,1)");
b.Property("GradeSheetId")
.HasColumnType("char(36)");
b.Property("MidtermScore")
.HasPrecision(5, 1)
.HasColumnType("decimal(5,1)");
b.Property("Notes")
.HasMaxLength(300)
.HasColumnType("varchar(300)");
b.Property("RegularScore")
.HasPrecision(5, 1)
.HasColumnType("decimal(5,1)");
b.Property("StudentId")
.HasColumnType("char(36)");
b.Property("TotalScore")
.HasPrecision(5, 1)
.HasColumnType("decimal(5,1)");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("GradeSheetId", "StudentId")
.IsUnique();
b.HasIndex("StudentId", "TotalScore");
b.ToTable("GradeRecords");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.GradeSheet", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("FinalWeight")
.HasPrecision(5, 1)
.HasColumnType("decimal(5,1)");
b.Property("MidtermWeight")
.HasPrecision(5, 1)
.HasColumnType("decimal(5,1)");
b.Property("PublishedAt")
.HasColumnType("datetime(6)");
b.Property("RegularWeight")
.HasPrecision(5, 1)
.HasColumnType("decimal(5,1)");
b.Property("ReviewComment")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("ReviewedAt")
.HasColumnType("datetime(6)");
b.Property("Status")
.HasColumnType("int");
b.Property("SubmittedAt")
.HasColumnType("datetime(6)");
b.Property("TeachingTaskId")
.HasColumnType("char(36)");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("Status");
b.HasIndex("TeachingTaskId")
.IsUnique();
b.ToTable("GradeSheets");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.GraduationAuditBatch", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CalculatedAt")
.HasColumnType("datetime(6)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("EnrollmentYear")
.HasColumnType("int");
b.Property("GraduationYear")
.HasColumnType("int");
b.Property("Name")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("varchar(120)");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("PublishedAt")
.HasColumnType("datetime(6)");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("Status");
b.HasIndex("GraduationYear", "EnrollmentYear");
b.ToTable("GraduationAuditBatches");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.GraduationAuditResult", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CalculatedConclusion")
.HasColumnType("int");
b.Property("Conclusion")
.HasColumnType("int");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("CurriculumPlanId")
.HasColumnType("char(36)");
b.Property("EarnedCredits")
.HasPrecision(6, 2)
.HasColumnType("decimal(6,2)");
b.Property("FailedCourseCount")
.HasColumnType("int");
b.Property("GraduationAuditBatchId")
.HasColumnType("char(36)");
b.Property("IsOverridden")
.HasColumnType("tinyint(1)");
b.Property("MissingCourseNames")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("varchar(2000)");
b.Property("PassedRequiredCourseCount")
.HasColumnType("int");
b.Property("RequiredCourseCount")
.HasColumnType("int");
b.Property("RequiredCredits")
.HasPrecision(6, 2)
.HasColumnType("decimal(6,2)");
b.Property("ReviewComment")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("ReviewedAt")
.HasColumnType("datetime(6)");
b.Property("StudentId")
.HasColumnType("char(36)");
b.Property("StudentStatusSnapshot")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("CurriculumPlanId");
b.HasIndex("StudentId");
b.HasIndex("Conclusion", "IsOverridden");
b.HasIndex("GraduationAuditBatchId", "StudentId")
.IsUnique();
b.ToTable("GraduationAuditResults");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.GraduationClearanceBatch", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ClosedAt")
.HasColumnType("datetime(6)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("GraduationYear")
.HasColumnType("int");
b.Property("Name")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("varchar(120)");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("GraduationYear", "Status");
b.ToTable("GraduationClearanceBatches");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.GraduationClearanceItem", 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("GraduationClearanceBatchId")
.HasColumnType("char(36)");
b.Property("IsRequired")
.HasColumnType("tinyint(1)");
b.Property("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("ResponsibleRole")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("varchar(30)");
b.Property("ResponsibleUnit")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("SortOrder")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("GraduationClearanceBatchId", "Code")
.IsUnique();
b.ToTable("GraduationClearanceItems");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.GraduationClearanceRecord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CompletedAt")
.HasColumnType("datetime(6)");
b.Property("CompletedByUserId")
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property