MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / defaultRaw

Method defaultRaw

packages/core/src/entity/defineEntity.ts:138–138  ·  view source on GitHub ↗
(defaultRaw: string)

Source from the content-addressed store, hash-verified

136 defaultValue: string | string[] | number | number[] | boolean | null | Date | Raw,
137 ): PropertyChain<Value, Omit<Options, 'default'> & { default: any }>;
138 defaultRaw(defaultRaw: string): PropertyChain<Value, Options & { defaultRaw: string }>;
139 formula(formula: string | FormulaCallback<any>): PropertyChain<Value, Omit<Options, 'formula'> & { formula: any }>;
140 onUpdate(onUpdate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): PropertyChain<Value, Options>;
141 fieldNames(...fieldNames: string[]): PropertyChain<Value, Options>;

Callers 4

getEntityDefinitionMethod · 0.65
getTableNameMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected