refactor(classes): preserve student membership history

This commit is contained in:
2026-07-13 14:38:34 +08:00
parent 1f32d1285b
commit 0533c30ece
7 changed files with 303 additions and 42 deletions

View File

@@ -30,14 +30,11 @@ export class ClassStudent {
@JoinColumn({ name: 'student_id' })
student: Student;
@Column({ name: 'enrollment_id', type: 'integer', nullable: true })
enrollmentId: number;
@Column({ name: 'join_date', type: 'date', nullable: true })
joinDate: string;
joinDate: string | null;
@Column({ name: 'leave_date', type: 'date', nullable: true })
leaveDate: string;
leaveDate: string | null;
@Column({ name: 'status', length: 10, default: 'active' })
status: string;