import type { TableConfig } from '../types'

export const vistaResumenIngresosConfig: TableConfig = {
  name: 'vista_resumen_ingresos',
  table: 'vista_resumen_ingresos',
  primaryKey: 'id',
  defaultSelect: '*',
  transforms: {
    // Map fecha to created_at for consistency
    serializeRow: (row: any) => ({
      ...row,
      created_at: row.fecha || row.created_at
    })
  }
}