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

@Entity('commercial_vehicles')
export class CommercialVehicleEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 64 }) model: string;
    @Column({ type: 'json' }) cargo_space: BoundingBox;
    @Column() capacity_weight: number;
    @Column() min_cdl_level: number;
    @Column({ type: 'boolean', default: false }) requires_trailer: boolean;
}
