UNPKG

nestjs-api-tools

Version:

Wrappers for convenient API development including validation, logging and i18n wrappers

11 lines (9 loc) 271 B
import {Column, ColumnOptions} from 'typeorm'; /** * Who has updated the entity (user or inner system). * @param options */ export const UpdatedBy = (options: ColumnOptions = {default: 'user'}): PropertyDecorator => Column({ type: 'text', ...(options || {}), });