All files / src/entities job_note.ts

100% Statements 20/20
100% Branches 0/0
100% Functions 1/1
100% Lines 18/18

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 411x   1x 1x   1x 1x 1x 1x   1x     1x     1x     1x     1x     1x     1x     1x     1x     1x   1x  
import { Entity } from '../entity.js';
import { MerchiFile } from './file.js';
import { Job } from './job.js';
import { User } from './user.js';
 
export class JobNote extends Entity {
  protected static resourceName = 'job_notes';
  protected static singularName = 'jobNote';
  protected static pluralName = 'jobNotes';
 
  @JobNote.property({type: Date})
  public archived?: Date | null;
 
  @JobNote.property()
  public id?: number;
 
  @JobNote.property()
  public noteType?: number;
 
  @JobNote.property()
  public richText?: string;
 
  @JobNote.property({type: Date})
  public creationDate?: Date | null;
 
  @JobNote.property({type: Date})
  public lastEditedTime?: Date | null;
 
  @JobNote.property({arrayType: 'MerchiFile'})
  public files?: MerchiFile[];
 
  @JobNote.property({type: 'Job'})
  public job?: Job;
 
  @JobNote.property({type: 'User'})
  public createdBy?: User;
 
  @JobNote.property({type: 'User'})
  public lastEditedBy?: User;
}