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

@Entity('uniform')
export class UniformEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 200 }) name: string;
    @Column({ type: 'varchar', length: 30 }) category: string;
    @Column({ type: 'int' }) gender: number;
    @Column({ type: 'varchar', length: 7 }) entity_type: 'faction' | 'company';
    @Column({ type: 'json' }) entity_ids: number[];
    @Column({ type: 'json' }) clothing: [number, number, number, number] | [number, number, number];
    @Column({ type: 'json', default: null, nullable: true }) extras: [number, number, number, number][] | [number, number, number][] | null;
    @Column({ type: 'int', default: null, nullable: true }) is_prop: number | null;
}

// FEMALE = 0,
// MALE = 1,
