All files / dist/test-utils/thirteen/models recommendation.js

100% Statements 24/24
100% Branches 0/0
100% Functions 2/2
100% Lines 24/24

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 42 43 44 45 46  1x 1x 1x 1x 1x 1x 1x 1x 1x                   4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x     1x     13x     1x 1x            
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.recommendationEntity = exports.Recommendations = exports.Recommendation = exports.columns = exports.tableName = void 0;
const member_1 = require("./member");
const brand_1 = require("./brand");
const product_1 = require("./product");
const category_1 = require("./category");
const passion_1 = require("./passion");
exports.tableName = 'recommendation';
exports.columns = [
    'id',
    { column: 'member_id', references: member_1.Member },
    { column: 'brand_id', references: brand_1.Brand },
    { column: 'product_id', references: product_1.Product },
    { column: 'category_id', references: category_1.Category },
    { column: 'passion_id', references: passion_1.Passion }
];
class Recommendation {
    constructor(props) {
        this.id = props.id;
        this.memberId = props.memberId;
        this.member = props.member;
        this.brandId = props.brandId;
        this.brand = props.brand;
        this.productId = props.productId;
        this.product = props.product;
        this.categoryId = props.categoryId;
        this.category = props.category;
        this.passionId = props.passionId;
        this.passion = props.passion;
    }
}
exports.Recommendation = Recommendation;
class Recommendations {
    constructor({ models }) {
        this.models = models;
    }
}
exports.Recommendations = Recommendations;
exports.recommendationEntity = {
    tableName: exports.tableName,
    columns: exports.columns,
    Model: Recommendation,
    Collection: Recommendations
};