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 50 | 1x 1x 1x 1x 1x 75x 75x 75x 75x 75x 75x 75x 75x 75x 75x 75x 75x 75x 1x 8x 1x 1x | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.articleEntity = exports.Articles = exports.Article = exports.columns = exports.tableName = void 0;
const person_1 = require("./person");
exports.tableName = 'article';
exports.columns = [
'id',
{ column: 'author_id', references: person_1.Person },
'created_date',
'read_time_minutes',
'seo_description',
'primary_image',
'title',
'slug',
'body',
'amp_body',
'kind',
'points'
];
class Article {
constructor(props) {
this.id = props.id;
this.authorId = props.authorId;
this.author = props.author;
this.createdDate = props.createdDate;
this.readTimeMinutes = props.readTimeMinutes;
this.seoDescription = props.seoDescription;
this.primaryImage = props.primaryImage;
this.title = props.title;
this.slug = props.slug;
this.body = props.body;
this.ampBody = props.ampBody;
this.kind = props.kind;
this.point = props.point;
}
}
exports.Article = Article;
class Articles {
constructor({ models }) {
this.models = models;
}
}
exports.Articles = Articles;
exports.articleEntity = {
tableName: exports.tableName,
columns: exports.columns,
Model: Article,
Collection: Articles
};
|