import { OneToOne } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";
One-to-one relation allows to create direct relation between two entities. Entity1 have only one Entity2. Entity1 is an owner of the relationship, and storages Entity1 id on its own side.
Parameters
typeFunctionOrTarget: string | ((type?: any) => ObjectType<T>)
One-to-one relation allows to create direct relation between two entities. Entity1 have only one Entity2. Entity1 is an owner of the relationship, and storages Entity1 id on its own side.