import {
  Entity,
  PrimaryGeneratedColumn,
  Column,
  ManyToMany
} from "typeorm";
import { Classes } from "./Classes";

@Entity()
export class TeachingMode {
  @PrimaryGeneratedColumn()
  id!: number;

  @Column()
  name!: string;

  @Column({ default: true })
  enable: boolean = true;

  @Column({ default: true })
  isTravelMiles: boolean = true;

  @ManyToMany(() => Classes, classes => classes.TeachingMode)
  Classes!: Classes[];
}
