import { type EntitySchemaRelationOptions } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/entity-schema/EntitySchemaRelationOptions.ts";
Properties
Indicates if persistence is enabled for the relation. By default its enabled, but if you want to avoid any changes in the relation to be reflected in the database you can disable it. If its disabled you can only change a relation from inverse side of a relation or using relation query builder functionality. This is useful for performance optimization since its disabling avoid multiple extra queries during entity save.
Indicates if this relation will be a primary key. Can be used only for many-to-one and owner one-to-one relations.
Join table options of this column. If set to true then it simply means that it has a join table.
Join column options of this column. If set to true then it simply means that it has a join column.
Indicates if this is a parent (can be only many-to-one relation) relation in the tree tables.
Indicates if this is a children (can be only one-to-many relation) relation in the tree tables.
If set to true then it means that related object can be allowed to be inserted / updated / removed to the db. This is option a shortcut if you would like to set cascadeInsert, cascadeUpdate and cascadeRemove to true.