import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('help_requests')
export class HelpRequestEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 32 }) character_name: string;
    @Column({ type: 'int' }) character_id: number;
    @Column({ type: 'int' }) account_id: number;
    @Column({ type: 'varchar', length: 256 }) question: string;
    @Column({ type: 'datetime' }) time: string;
    @Column({ type: 'datetime', nullable: true, default: null }) time_handled: string | null;
    @Column({ type: 'varchar', length: 12 }) status: string;
    @Column({ type: 'varchar', length: 256, nullable: true, default: null }) reason: string | null;
    @Column({ type: 'varchar', length: 32, nullable: true, default: null }) handler_account_name: string;
    @Column({ type: 'int', nullable: true, default: null }) handler_account_id: number;
    @Column({ type: 'longtext' }) testers_online: string;
}
