import {
    Entity,
    PrimaryGeneratedColumn,
    ManyToMany,
    JoinTable,
} from "../../../../src"
import { Column } from "../../../../src/decorator/columns/Column"
import { Category } from "./Category"

@Entity()
export class Question {
    @PrimaryGeneratedColumn()
    id: number

    @Column()
    name: string

    @ManyToMany("Category")
    @JoinTable()
    categories: Category[]
}
