import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm'

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

    @Column()
    question: string

    @Column()
    answer: string

    @Column()
    del: number

    @CreateDateColumn()
    createdAt: Date
}
