@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
15 lines (14 loc) • 603 B
TypeScript
interface ManyRealtionOptions {
pivot?: any;
relatedPivotKey?: string;
foreignPivotKey?: string;
}
interface OneRelationOptions {
foreignKey?: string;
localKey?: string;
}
export declare const HasOne: (fn: () => any, options?: OneRelationOptions) => PropertyDecorator;
export declare const BelongsTo: (fn: () => any, options?: OneRelationOptions) => PropertyDecorator;
export declare const HasMany: (fn: () => any, options?: OneRelationOptions) => PropertyDecorator;
export declare const BelongsToMany: (fn: () => any, options?: ManyRealtionOptions) => PropertyDecorator;
export {};