PrimaryGeneratedColumn(
options?: Omit<ColumnOptions, "isPrimary">,
): (target: any, propertyKey: string) => void
Optional
options: Omit<ColumnOptions, "isPrimary">Properties of the row in the database see ColumnOptions.
must define options.tsType
or options.type
.
Returns a decorator function that will be applied to an attribute.
Decorator for marking a property as the primary key.