import { TableColumn } from 'typeorm'; /** * Creates a TableColumn definition for an auto-incrementing id column. * * @param name - The name of the column. * @returns {TableColumn} - A TableColumn object configured as an id column. */ export const idColumn = (name = 'id'): TableColumn => { return { name, type: 'int', isPrimary: true, isGenerated: true, generationStrategy: 'increment', unsigned: true, } as TableColumn; };