All files / src/entities job_operation_log.ts

100% Statements 21/21
100% Branches 0/0
66.66% Functions 2/3
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 41 421x   1x   1x   1x 1x 1x 1x   1x     1x     1x     1x     1x     1x     1x     1x     1x     1x   1x  
import { Entity } from '../entity.js';
import type { Job } from './job.js';
import { User } from './user.js';
 
const jsonPropertyType = class {};
 
export class JobOperationLog extends Entity {
  protected static resourceName = 'job_operation_logs';
  protected static singularName = 'jobOperationLog';
  protected static pluralName = 'jobOperationLogs';
 
  @JobOperationLog.property({type: String})
  public id?: string;
 
  @JobOperationLog.property({type: 'Job'})
  public job?: Job | null;
 
  @JobOperationLog.property({type: User})
  public user?: User | null;
 
  @JobOperationLog.property({type: String})
  public sourceType?: string;
 
  @JobOperationLog.property({type: Boolean})
  public aiInvolved?: boolean;
 
  @JobOperationLog.property({type: String})
  public action?: string;
 
  @JobOperationLog.property({type: jsonPropertyType})
  public payloadJson?: Record<string, unknown> | null;
 
  @JobOperationLog.property({type: jsonPropertyType})
  public changesJson?: Record<string, unknown> | null;
 
  @JobOperationLog.property({type: jsonPropertyType})
  public operationJson?: Record<string, unknown> | null;
 
  @JobOperationLog.property({type: Date})
  public createdAt?: Date | null;
}