//
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("20260724074551_StudentStatusChanges")]
partial class StudentStatusChanges
{
///
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("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("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.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.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.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.ScheduleEntry", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ClassroomId")
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("DayOfWeek")
.HasColumnType("int");
b.Property("EndWeek")
.HasColumnType("int");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("PeriodCount")
.HasColumnType("int");
b.Property("SchedulePlanId")
.HasColumnType("char(36)");
b.Property("StartPeriod")
.HasColumnType("int");
b.Property("StartWeek")
.HasColumnType("int");
b.Property("TeachingTaskId")
.HasColumnType("char(36)");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.Property("WeekPattern")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ClassroomId");
b.HasIndex("TeachingTaskId");
b.HasIndex("SchedulePlanId", "DayOfWeek", "StartPeriod");
b.ToTable("ScheduleEntries");
});
modelBuilder.Entity("Jiaowu.Api.Domain.Academic.SchedulePlan", 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.Property("Version")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("varchar(30)");
b.HasKey("Id");
b.HasIndex("AcademicTermId", "Status");
b.HasIndex("AcademicTermId", "Version")
.IsUnique();
b.ToTable("SchedulePlans");
});
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.StudentStatusChange", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ApprovedAt")
.HasColumnType("datetime(6)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("OriginalStatus")
.HasColumnType("int");
b.Property("Reason")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("varchar(1000)");
b.Property("ReviewComment")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property("ReviewedAt")
.HasColumnType("datetime(6)");
b.Property("State")
.HasColumnType("int");
b.Property("StudentId")
.HasColumnType("char(36)");
b.Property("SubmittedAt")
.HasColumnType("datetime(6)");
b.Property("TargetStatus")
.HasColumnType("int");
b.Property("Type")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("StudentId", "State");
b.ToTable("StudentStatusChanges");
});
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.Academic.TeachingTask", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("AcademicTermId")
.HasColumnType("char(36)");
b.Property("Capacity")
.HasColumnType("int");
b.Property("CourseId")
.HasColumnType("char(36)");
b.Property("CreatedAt")
.HasColumnType("datetime(6)");
b.Property("EndWeek")
.HasColumnType("int");
b.Property("Name")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("varchar(120)");
b.Property