ConstraintEntity
import type { ConstraintEntity } from "https://googleapis.deno.dev/v1/datamigration:v1.ts";
Constraint is not used as an independent entity, it is retrieved as part of another entity such as Table or View.
interface ConstraintEntity {
customFeatures?: {};
[key: string]: any;
name?: string;
referenceColumns?: string[];
referenceTable?: string;
tableColumns?: string[];
tableName?: string;
type?: string;
}§Properties
§
referenceColumns?: string[]
[src]Reference columns which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.
§
referenceTable?: string
[src]Reference table which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.
§
tableColumns?: string[]
[src]Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.