All files / dist/examples/blog/entities person.js

90.48% Statements 19/21
100% Branches 0/0
50% Functions 1/2
90.48% Lines 19/21

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 47 48 49  1x 1x 1x 1x                               23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x     1x             1x 1x            
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.personConfiguration = exports.Persons = exports.Person = exports.columns = exports.tableName = void 0;
exports.tableName = 'person';
exports.columns = [
    'id',
    'first_name',
    'last_name',
    'slug',
    'email',
    'picture',
    'cover_photo',
    'brand',
    'tagline',
    'display_name',
    'biography',
    'title'
];
class Person {
    constructor(props) {
        this.id = props.id;
        this.firstName = props.firstName;
        this.lastName = props.lastName;
        this.slug = props.slug;
        this.email = props.email;
        this.picture = props.picture;
        this.coverPhoto = props.coverPhoto;
        this.brand = props.brand;
        this.tagline = props.tagline;
        this.displayName = props.displayName;
        this.biography = props.biography;
        this.title = props.title;
    }
}
exports.Person = Person;
class Persons {
    constructor({ models }) {
        this.models = models;
        return this;
    }
}
exports.Persons = Persons;
exports.personConfiguration = {
    tableName: exports.tableName,
    columns: exports.columns,
    entityClass: Person,
    collectionClass: Persons,
};