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

@Entity('vehicle_theft_containers')
export class VehicleTheftContainerEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'float' }) x: number;
    @Column({ type: 'float' }) y: number;
    @Column({ type: 'float' }) z: number;
    @Column({ type: 'float' }) angle: number;

    get position(): Vector3 {
        return new mp.Vector3(this.x, this.y, this.z);
    }
}
