import { BaseEntity } from '@edr/api-common'; import { Column, Entity, Index } from 'typeorm'; @Entity({ schema: 'freight', name: 'shipping_lines' }) @Index(['code']) @Index(['isActive']) export class ShippingLine extends BaseEntity { @Column({ name: 'code', type: 'varchar', length: 20, unique: true }) code!: string; @Column({ name: 'label', type: 'varchar', length: 100 }) label!: string; @Column({ name: 'mapped_to_code', type: 'varchar', length: 20, nullable: true }) mappedToCode?: string | null; @Column({ name: 'show_extra_fee_notice', type: 'boolean', default: false }) showExtraFeeNotice!: boolean; @Column({ name: 'is_active', type: 'boolean', default: true }) isActive!: boolean; }