mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 00:10:57 +00:00
23 lines
719 B
TypeScript
23 lines
719 B
TypeScript
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;
|
|
}
|