tspace-sql
Version:
mysql & postgresql query builder object relational mapping
24 lines (23 loc) • 585 B
TypeScript
export interface Relation {
name: string;
model: any;
as?: string;
pk?: string | undefined;
fk?: string | undefined;
select?: string | undefined;
hidden?: string | undefined;
freezeTable?: string | undefined;
child?: boolean | undefined;
}
export interface RelationShip {
hasOne: string;
hasMany: string;
belongsTo: string;
belongsToMany: string;
}
export interface RelationShipChild {
hasOne: string;
hasMany: string;
belongsTo: string;
}
export declare type Pattern = 'snake_case' | 'camelCase';