import { ChildEntity } from "../../../../../../../src/decorator/entity/ChildEntity"
import { OneToMany } from "../../../../../../../src/decorator/relations/OneToMany"
import { Employee } from "./Employee"
import { Department } from "./Department"

@ChildEntity()
export class Accountant extends Employee {
    @OneToMany(() => Department, (department) => department.accountant)
    departments: Department[]
}
