fix: remove broken Department relation from Class entity

This commit is contained in:
2026-07-05 20:56:23 +08:00
parent eb82b269c1
commit 2357db31dd

View File

@@ -36,10 +36,6 @@ export class Class {
@Column({ name: 'department_id', type: 'integer', nullable: true })
departmentId: number;
// Forward reference — Department entity will be added later
@ManyToOne('Department', { nullable: true })
@JoinColumn({ name: 'department_id' })
department: unknown;
@Column({ name: 'class_type', length: 20 })
classType: string;