All files / dist/test-utils/thirteen/business-objects product.js

91.67% Statements 11/12
100% Branches 0/0
50% Functions 1/2
91.67% Lines 11/12

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  1x 1x 1x 1x 1x           4x 4x 4x     1x           1x 1x            
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.productConfiguration = exports.Products = exports.Product = exports.columns = exports.tableName = void 0;
const brand_1 = require("./brand");
exports.tableName = 'product';
exports.columns = [
    'id',
    { column: 'brand_id', references: brand_1.Brand },
];
class Product {
    constructor(props) {
        this.id = props.id;
        this.brandId = props.brandId;
        this.brand = props.brand;
    }
}
exports.Product = Product;
class Products {
    constructor({ models }) {
        this.models = models;
    }
}
exports.Products = Products;
exports.productConfiguration = {
    tableName: exports.tableName,
    columns: exports.columns,
    entityClass: Product,
    collectionClass: Products,
};