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

@Entity('weapon_bans')
export class WeaponBanEntity {
    @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', default: () => 'CURRENT_TIMESTAMP' }) banned: Date;
    @Column({ type: 'date' }) unbanned: Date;
    @Column({ type: 'varchar', length: 60, default: 'SYSTEM' }) unbanned_by: string;
}
