import { TClassDecoratorReturn, TPropertyDecoratorReturn, Type } from "@simplysm/sd-core-common"; import { DbContext } from "./DbContext"; import { Queryable } from "./query/queryable/Queryable"; import { TSdOrmDataType } from "./types"; export declare function Table(def: { description: string; database?: string; schema?: string; name?: string; view?: (db: any) => Queryable; procedure?: string; }): TClassDecoratorReturn; export declare function Column(columnDef: { description: string; name?: string; dataType?: TSdOrmDataType; nullable?: boolean; autoIncrement?: boolean; primaryKey?: number; }): TPropertyDecoratorReturn; export declare function ForeignKey(columnNames: (keyof T)[], targetTypeFwd: () => Type, description: string): TPropertyDecoratorReturn>; export declare function ForeignKeyTarget(sourceTypeFwd: () => Type

, foreignKeyPropertyKey: keyof P, description: string, multiplicity?: "single"): TPropertyDecoratorReturn; export declare function Index(def?: { name?: string; order?: number; orderBy?: "ASC" | "DESC"; unique?: boolean; }): TPropertyDecoratorReturn; export declare function ReferenceKey(columnNames: (keyof T)[], targetTypeFwd: () => Type, description: string): TPropertyDecoratorReturn>; export declare function ReferenceKeyTarget(sourceTypeFwd: () => Type

, referenceKeyPropertyKey: keyof P, description: string, multiplicity?: "single"): TPropertyDecoratorReturn;