pure-orm
Version:
A SQL Toolkit based on pure business objects passed to and from stateful data access objects
43 lines (42 loc) • 1.17 kB
TypeScript
import { UtmSource } from './utm-source';
import { IModel, ICollection, IColumns } from '../../../src/index';
export declare const tableName: string;
export declare const columns: IColumns;
export declare class Order implements IModel {
id: number;
email: string;
browserIp: number;
browserUserAgent: number;
kujoImportedDate: Date;
createdDate: Date;
cancelReason: string;
cancelledDate: Date;
closedDate: Date;
processedDate: Date;
updatedDate: Date;
note: string;
subtotalPrice: number;
taxesIncluded: boolean;
totalDiscounts: number;
totalPrice: number;
totalTax: number;
totalWeight: number;
orderStatusUrl: string;
utmSourceId: number;
utmSource?: UtmSource;
utmMediumId: number;
utmCampaign: string;
utmContent: string;
utmTerm: string;
constructor(props: any);
}
export declare class Orders implements ICollection<Order> {
models: Array<Order>;
constructor({ models }: any);
}
export declare const orderEntity: {
tableName: string;
columns: import("../../../src/core").IColumn[];
Model: typeof Order;
Collection: typeof Orders;
};