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

@Entity('pet_types')
export class PetTypeEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 32 }) hash: string;
    @Column({ type: 'varchar', length: 32 }) breed: string;
    @Column({ type: 'varchar', length: 10 }) type: 'dog' | 'cat';
    @Column({ type: 'json', default: null, nullable: true }) clothes: [number, number, number, number][] | null;
    @Column({ type: 'tinyint', default: 100 }) agility: number;
    @Column({ type: 'tinyint', width: 1, default: 0 }) can_attack: boolean;
    @Column({ type: 'tinyint', width: 1, default: 0 }) can_enter_vehicle: boolean;
    @Column({ type: 'tinyint', width: 1, default: 0 }) special: boolean;
}
