refactor: remove departmentId from Class entity

This commit is contained in:
2026-07-09 17:32:37 +08:00
parent 40fef906cd
commit 22bc1876d8
9 changed files with 4 additions and 116 deletions

View File

@@ -4,8 +4,6 @@ import {
Column,
CreateDateColumn,
UpdateDateColumn,
ManyToOne,
JoinColumn,
} from 'typeorm';
export enum ClassType {
@@ -33,8 +31,6 @@ export class Class {
@Column({ name: 'code', length: 50, unique: true })
code: string;
@Column({ name: 'department_id', type: 'integer', nullable: true })
departmentId: number;
@Column({ name: 'class_type', length: 20 })