All files / src/models dgd-container.model.ts

85.71% Statements 6/7
100% Branches 0/0
0% Functions 0/1
80% Lines 4/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 451x           1x                                 1x                     1x                    
import {Model, model, property} from '@loopback/repository';
import {NotificationSetting} from '.';
 
@model({
  strict: true,
})
export class DGDContainer extends Model {
  // Container Number - Required field - String (100)
  container_no: string; 
 
  // Seal Number (many - separated by comma) - String (200)
  seals: string; 
 
  // Marks & Nos - Required field - Default value (when record is still open): Line 1: Field Cargo # value, Line 2: Field Seal Nos value
  marks_and_nos: string; 
 
  // Gross Mass - Required field - float - Format: ###,###,###,###.## - 
  @property({
    type: 'number',
    jsonSchema: {
      minimum: 0.01,
    },
  })
  gross_mass: number; 
  
  // Default value (when record is created): Expected Loaded Weight of the Cargo # in the flow
  // Default value (when record is still open): Actual Loaded Weight of the previous Load Product action (if any) for the selected Cargo #
  // Net Mass - Required field - float - Format: ###,###,###,###.##
  @property({
    type: 'number',
    jsonSchema: {
      minimum: 0.01,
    },
  })
  net_mass: number; 
 
  // Default value (when record is created): Expected Loaded Weight of the Cargo # in the flow
  // Default value (when record is still open): Actual Loaded Weight of the previous Load Product action (if any) for the selected Cargo #
  // Cub E M3 - Required field - float - Format: ###,###,###,###.##
  cub_E_M3: number; 
 
  constructor(data?: Partial<DGDContainer>) {
    super(data);
  }
}