All files / src/model BaseModel.ts

100% Statements 6/6
75% Branches 6/8
100% Functions 1/1
100% Lines 6/6

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 149x 9x   9x   9x   9x     1579x      
import { DBOperations, timestamp } from "@decaf-ts/db-decorators";
import { ModelArg, Model } from "@decaf-ts/decorator-validation";
 
export abstract class BaseModel extends Model {
  @timestamp(DBOperations.CREATE)
  createdOn!: Date;
  @timestamp()
  updatedOn!: Date;
 
  protected constructor(arg?: ModelArg<BaseModel>) {
    super(arg);
  }
}