No overload matches this call. Overload 1 of 2, '(table: Table>>): BuildSchema<"insert", Record>, undefined, undefined>', gave the following error. Argument of type 'PgTableWithColumns<{ name: "events"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "events"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; ... 7 more ...; generated: undefined; }, {}, {}>; ... 10 more ...; updatedAt: PgColumn<...>; }; di...' is not assignable to parameter of type 'Table>>'. The types of '_.config.columns' are incompatible between these types. Type '{ id: PgColumn<{ name: "id"; tableName: "events"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; ... 4 more ...; generated: undefined; }, {}, {}>; ... 10 more ...; updatedAt: PgColumn<...>; }' is not assignable to type 'Record>'. Property 'id' is incompatible with index signature. Type 'PgColumn<{ name: "id"; tableName: "events"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; ... 4 more ...; generated: undefined; }, {}, {}>' is not assignable to type 'Column'. The types of 'table._.config.columns' are incompatible between these types. Type 'Record, {}, {}>>' is not assignable to type 'Record>'. 'string' index signatures are incompatible. Type 'PgColumn, {}, {}>' is not assignable to type 'Column'. Property 'config' is protected but type 'Column' is not a class derived from 'Column'. Overload 2 of 2, '(table: Table>>, refine?: NoUnknownKeys>, string | number>, undefined>, { ...; }> | undefined): BuildSchema<...>', gave the following error. Argument of type 'PgTableWithColumns<{ name: "events"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "events"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; ... 7 more ...; generated: undefined; }, {}, {}>; ... 10 more ...; updatedAt: PgColumn<...>; }; di...' is not assignable to parameter of type 'Table>>'. The types of '_.config.columns' are incompatible between these types. Type '{ id: PgColumn<{ name: "id"; tableName: "events"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; ... 4 more ...; generated: undefined; }, {}, {}>; ... 10 more ...; updatedAt: PgColumn<...>; }' is not assignable to type 'Record>'. Property 'id' is incompatible with index signature. Type 'PgColumn<{ name: "id"; tableName: "events"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; ... 4 more ...; generated: undefined; }, {}, {}>' is not assignable to type 'Column'. The types of 'table._.config.columns' are incompatible between these types. Type 'Record, {}, {}>>' is not assignable to type 'Record>'. 'string' index signatures are incompatible. Type 'PgColumn, {}, {}>' is not assignable to type 'Column'. Property 'config' is protected but type 'Column' is not a class derived from 'Column'.ts(2769)