55import { pgTable , text as pgText , integer as pgInteger , timestamp as pgTimestamp } from 'drizzle-orm/pg-core' ;
66import { baseTableDefinitions , pluginTableDefinitions } from './schema' ; // Central definitions
77
8+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
89const tables : Record < string , any > = { } ;
910
1011// Helper to get the correct PG column builder based on a simple type string
@@ -18,6 +19,7 @@ function getPgColumnBuilder(type: 'text' | 'integer' | 'timestamp') {
1819
1920// Instantiate base tables for PostgreSQL
2021for ( const [ tableName , tableColumnDefinitions ] of Object . entries ( baseTableDefinitions ) ) {
22+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2123 const columns : Record < string , any > = { } ;
2224 for ( const [ columnName , columnDefFunc ] of Object . entries ( tableColumnDefinitions ) ) {
2325 // Determine builder type (heuristic, same as in db/index.ts)
@@ -38,6 +40,7 @@ for (const [tableName, tableColumnDefinitions] of Object.entries(baseTableDefini
3840
3941// Instantiate plugin tables for PostgreSQL (similar logic)
4042for ( const [ tableName , tableColumnDefinitions ] of Object . entries ( pluginTableDefinitions ) ) {
43+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4144 const columns : Record < string , any > = { } ;
4245 for ( const [ columnName , columnDefFunc ] of Object . entries ( tableColumnDefinitions ) ) {
4346 let builderType : 'text' | 'integer' | 'timestamp' = 'text' ;
@@ -58,6 +61,7 @@ for (const [tableName, tableColumnDefinitions] of Object.entries(pluginTableDefi
5861export const { users, ...otherBaseTables } = tables ; // Assuming 'users' is a key in tables
5962// For plugin tables, they would also need to be destructured and exported if `tables` contains them directly.
6063// Or, more robustly:
64+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6165const allExports : Record < string , any > = { } ;
6266for ( const key in tables ) {
6367 allExports [ key ] = tables [ key ] ;
0 commit comments