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 3x 1x 1x | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.productEntity = 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.productEntity = {
tableName: exports.tableName,
columns: exports.columns,
Model: Product,
Collection: Products
};
|