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

@Entity('graffiti_bans')
export class SprayBanEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'int' }) account_id: number;
    @Column({ type: 'varchar', length: 32 }) account_name: string;
    @Column({ type: 'varchar', length: 32 }) banned_by: string;
    @Column({ type: 'varchar', length: 256 }) reason: string;
    @Column({ type: 'date' }) unban_date: Date;
    @Column({ type: 'date', nullable: true }) unbanned: Date | null;
    @Column({ type: 'varchar', length: 32 }) unbanned_by: string;
    @Column({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP()' }) date: Date;
}
