All files / src/entities user_company.ts

100% Statements 16/16
100% Branches 0/0
100% Functions 1/1
100% Lines 14/14

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 281x 1x 1x   1x 1x 1x 1x   1x     1x     1x     1x     1x     1x   1x  
import { Company } from './company.js';
import { Entity } from '../entity.js';
import { User } from './user.js';
 
export class UserCompany extends Entity {
  protected static resourceName = 'user_companies';
  protected static singularName = 'userCompany';
  protected static pluralName = 'userCompanies';
 
  @UserCompany.property({type: Date})
  public archived?: Date | null;
 
  @UserCompany.property()
  public id?: number;
 
  @UserCompany.property({type: Boolean})
  public main?: boolean | null;
 
  @UserCompany.property()
  public isAdmin?: boolean;
 
  @UserCompany.property({type: User})
  public user?: User | null;
 
  @UserCompany.property({type: Company})
  public company?: Company | null;
}