Argument of type 'PgTableWithColumns<{ name: "access"; schema: undefined; columns: { email: PgColumn<{ name: "email"; tableName: "access"; dataType: "custom"; columnType: "PgCustomColumn"; data: string; driverParam: string; notNull: true; hasDefault: false; enumValues: undefined; baseColumn: never; }, {}, {}>; }; dialect: "pg"; }>' is not assignable to parameter of type 'AnyPgTable<{}> | Subquery<string, unknown> | PgViewBase<string, boolean, ColumnsSelection> | SQL<unknown>'.
Type 'PgTable<{ name: "access"; schema: undefined; columns: { email: PgColumn<{ name: "email"; tableName: "access"; dataType: "custom"; columnType: "PgCustomColumn"; data: string; driverParam: string; notNull: true; hasDefault: false; enumValues: undefined; baseColumn: never; }, {}, {}>; }; dialect: "pg"; }> & { ...; }' is missing the following properties from type 'SQL<unknown>': queryChunks, shouldInlineParams, append, toQuery, and 5 more.
Argument of type 'PgTableWithColumns<{ name: "access"; schema: undefined; columns: { email: PgColumn<{ name: "email"; tableName: "access"; dataType: "custom"; columnType: "PgCustomColumn"; data: string; driverParam: string; notNull: true; hasDefault: false; enumValues: undefined; baseColumn: never; }, {}, {}>; }; dialect: "pg"; }>' is not assignable to parameter of type 'AnyPgTable<{}> | Subquery<string, unknown> | PgViewBase<string, boolean, ColumnsSelection> | SQL<unknown>'.
Type 'PgTable<{ name: "access"; schema: undefined; columns: { email: PgColumn<{ name: "email"; tableName: "access"; dataType: "custom"; columnType: "PgCustomColumn"; data: string; driverParam: string; notNull: true; hasDefault: false; enumValues: undefined; baseColumn: never; }, {}, {}>; }; dialect: "pg"; }> & { ...; }' is missing the following properties from type 'SQL<unknown>': queryChunks, shouldInlineParams, append, toQuery, and 5 more.