mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
chore: fmt
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import { BaseEntity } from '@edr/api-common';
|
||||
import { Freight } from '@edr/types';
|
||||
import { Column, Entity } from 'typeorm';
|
||||
import { BaseEntity } from "@edr/api-common";
|
||||
import { Freight } from "@edr/types";
|
||||
import { Column, Entity } from "typeorm";
|
||||
|
||||
@Entity({ name: 'tracking_events' })
|
||||
@Entity({ name: "tracking_events" })
|
||||
export class TrackingEvent extends BaseEntity {
|
||||
@Column({ name: 'consignment_id', type: 'uuid' })
|
||||
@Column({ name: "consignment_id", type: "uuid" })
|
||||
consignmentId!: string;
|
||||
|
||||
@Column({ name: 'location', type: 'varchar', length: 256 })
|
||||
@Column({ name: "location", type: "varchar", length: 256 })
|
||||
location!: string;
|
||||
|
||||
@Column({ name: 'status', type: 'enum', enum: Freight.ConsignmentStatus })
|
||||
@Column({ name: "status", type: "enum", enum: Freight.ConsignmentStatus })
|
||||
status!: Freight.ConsignmentStatus;
|
||||
|
||||
@Column({ name: 'occurred_at', type: 'timestamptz' })
|
||||
@Column({ name: "occurred_at", type: "timestamptz" })
|
||||
occurredAt!: Date;
|
||||
|
||||
@Column({ name: 'description', type: 'text', nullable: true })
|
||||
@Column({ name: "description", type: "text", nullable: true })
|
||||
description?: string | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user