pure-orm
Version:
A SQL Toolkit based on pure business objects passed to and from stateful data access objects
31 lines (30 loc) • 849 B
TypeScript
import { IModel, ICollection, IColumns } from '../../../src/index';
import { Person } from './person';
export declare const tableName = "article";
export declare const columns: IColumns;
export declare class Article implements IModel {
id: number;
authorId: number;
author?: Person;
createdDate: Date;
readTimeMinutes: number;
seoDescription: string;
primaryImage: string;
title: string;
slug: string;
body: string;
ampBody: string;
kind: string;
point: number;
constructor(props: any);
}
export declare class Articles implements ICollection<Article> {
models: Array<Article>;
constructor({ models }: any);
}
export declare const articleEntity: {
tableName: string;
columns: import("../../../src/core").IColumn[];
Model: typeof Article;
Collection: typeof Articles;
};