src/model/schema/BasicTableRelationship.ts
A generalisation of TableRelationship. It can be used to display and persist foreign key relationships between any type of table. Because of this generalisation basicTableRelationships cannot always be used for a join.
Properties |
referencedCols |
referencedCols:
|
Type : Array<BasicColumn>
|
referencedName |
referencedName:
|
Type : string
|
referencedTable |
referencedTable:
|
Type : BasicTable
|
referencingCols |
referencingCols:
|
Type : Array<BasicColumn>
|
referencingName |
referencingName:
|
Type : string
|
referencingTable |
referencingTable:
|
Type : BasicTable
|
import BasicColumn from '../types/BasicColumn';
import BasicTable from './BasicTable';
/**
* A generalisation of TableRelationship. It can be used to display and persist foreign key relationships between any type of table.
* Because of this generalisation basicTableRelationships cannot always be used for a join.
*/
export default interface BasicTableRelationship {
referencingTable: BasicTable;
referencingCols: Array<BasicColumn>;
referencingName: string;
referencedTable: BasicTable;
referencedCols: Array<BasicColumn>;
referencedName: string;
}