Skip to main content
Version: 5.5

OneToOneOptions <T, O>

Hierarchy

Index

Properties

optionalautoincrement

autoincrement?: boolean

optionalcascade

cascade?: Cascade[]

optionalcheck

check?: string | CheckCallback<O>

optionalcolumnType

columnType?: AnyString | ColumnType

optionalcomment

comment?: string

optionalconcurrencyCheck

concurrencyCheck?: boolean

optionalcustomOrder

customOrder?: string[] | number[] | boolean[]

optionalcustomType

customType?: Type<any, any>

optionaldefault

default?: null | string | number | boolean | string[] | number[]

optionaldefaultRaw

defaultRaw?: string

optionaleager

eager?: boolean

optionalentity

entity?: string & (string & () => EntityName<T>) & (() => EntityName<T> & string) & (() => EntityName<T> & () => EntityName<T>)

optionalextra

extra?: string

mysql only

optionalfieldName

fieldName?: string

optionalfieldNames

fieldNames?: string[]

optionalformula

formula?: string | (alias: string) => string

optionalgetter

getter?: boolean

optionalhidden

hidden?: boolean

optionalignoreSchemaChanges

ignoreSchemaChanges?: (type | extra)[]

optionalindex

index?: string | boolean

optionalinverseJoinColumn

inverseJoinColumn?: string

optionalinverseJoinColumns

inverseJoinColumns?: string[]

optionalinversedBy

inversedBy?: (string & keyof T) | (e: T) => any

optionaljoinColumn

joinColumn?: string

optionaljoinColumns

joinColumns?: string[]

optionallazy

lazy?: boolean

optionallength

length?: number

optionalmapToPk

mapToPk?: boolean

optionalmappedBy

mappedBy?: (string & keyof T) | (e: T) => any

optionalname

name?: string

optionalnullable

nullable?: boolean

optionalonCreate

onCreate?: (entity: O) => any

Type declaration

    • (entity: O): any
    • Parameters

      • entity: O

      Returns any

optionalonDelete

onDelete?: AnyString | cascade | no action | set null | set default

optionalonUpdate

onUpdate?: (entity: O) => any

Type declaration

    • (entity: O): any
    • Parameters

      • entity: O

      Returns any

optionalonUpdateIntegrity

onUpdateIntegrity?: AnyString | cascade | no action | set null | set default

optionalorphanRemoval

orphanRemoval?: boolean

optionalowner

owner?: boolean

optionalpersist

persist?: boolean

optionalprecision

precision?: number

optionalprimary

primary?: boolean

optionalreferenceColumnName

referenceColumnName?: string

optionalscale

scale?: number

optionalserializedName

serializedName?: string

optionalserializedPrimaryKey

serializedPrimaryKey?: boolean

optionalserializer

serializer?: (value: any) => any

Type declaration

    • (value: any): any
    • Parameters

      • value: any

      Returns any

optionalsetter

setter?: boolean

optionalstrategy

strategy?: LoadStrategy

optionaltrackChanges

trackChanges?: boolean

optionaltype

type?: string | Date | array | enumArray | AnyString | Type<any, any> | Constructor<Partial<any>> | ColumnType | Constructor<Type<any, any>> | ObjectId | () => unknown

optionalunique

unique?: string | boolean

optionalunsigned

unsigned?: boolean

optionalversion

version?: boolean

optionalwrappedReference

wrappedReference?: boolean