refactor: remove obsolete scaffolding and dead modules

Drop the unused root hello-world controller, empty CommonModule imports, development seeding code, legacy student report entity, stale DTOs, notification hook, and their placeholder tests.
This commit is contained in:
2026-07-10 14:12:56 +08:00
parent b093d69f6a
commit 44105c1689
26 changed files with 9 additions and 1074 deletions

View File

@@ -32,5 +32,4 @@ export { ExamScore } from './exam-score.entity';
export { LearningRecord } from './learning-record.entity';
export { ResultArchive } from './result-archive.entity';
export { ArchiveAttachment } from './archive-attachment.entity';
export { StudentReport } from './student-report.entity';
export { StudentDingMapping } from './student-ding-mapping.entity';

View File

@@ -1,42 +0,0 @@
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
ManyToOne,
JoinColumn,
} from 'typeorm';
import { Student } from './student.entity';
@Entity('student_reports')
export class StudentReport {
@PrimaryGeneratedColumn()
id: number;
@Column({ name: 'student_id', type: 'integer' })
studentId: number;
@ManyToOne(() => Student, { eager: true })
@JoinColumn({ name: 'student_id' })
student: Student;
@Column({ name: 'snapshot_data', type: 'simple-json', nullable: true })
snapshotData: Record<string, unknown>;
@Column({ name: 'html_content', type: 'text', nullable: true })
htmlContent: string;
@Column({ name: 'pdf_path', length: 500, nullable: true })
pdfPath: string;
@Column({ name: 'generated_at', type: 'datetime', nullable: true })
generatedAt: Date;
@CreateDateColumn({ name: 'created_at' })
createdAt: Date;
@UpdateDateColumn({ name: 'updated_at' })
updatedAt: Date;
}