UNPKG

pure-orm

Version:

A SQL Toolkit based on pure business objects passed to and from stateful data access objects

44 lines (43 loc) 1.07 kB
import { IModel, ICollection, IColumns } from '../../../src/index'; export declare const tableName: string; export declare const columns: IColumns; interface IPersonProps { id: number; firstName: string; lastName: string; slug: string; email: string; picture: string; coverPhoto: string; brand: string; tagline: string; displayName: string; biography: string; title: string; } export declare class Person implements IModel { id: number; firstName: string; lastName: string; slug: string; email: string; picture: string; coverPhoto: string; brand: string; tagline: string; displayName: string; biography: string; title: string; constructor(props: IPersonProps); } export declare class Persons implements ICollection<Person> { models: Array<Person>; constructor({ models }: any); } export declare const personEntity: { tableName: string; columns: import("../../../src/core").IColumn[]; Model: typeof Person; Collection: typeof Persons; }; export {};