fix: react-doctor js-set-map-lookups 1→0, no-barrel-import 1→0, prefer-module-scope-static-value 1→0, rendering-usetransition-loading 1→0, exhaustive-deps 3→0, rerender-state-only-in-handlers 5→0
This commit is contained in:
+33
-1
@@ -25,7 +25,39 @@
|
||||
import "server-only";
|
||||
import { Pool, type PoolClient } from "pg";
|
||||
import { drizzle, type NodePgDatabase } from "drizzle-orm/node-postgres";
|
||||
import * as schema from "./schema";
|
||||
import * as brands from "./schema/brands";
|
||||
import * as billing from "./schema/billing";
|
||||
import * as products from "./schema/products";
|
||||
import * as stops from "./schema/stops";
|
||||
import * as customers from "./schema/customers";
|
||||
import * as orders from "./schema/orders";
|
||||
import * as brand from "./schema/brand";
|
||||
import * as wholesale from "./schema/wholesale";
|
||||
import * as waterLog from "./schema/water-log";
|
||||
import * as communications from "./schema/communications";
|
||||
import * as marketing from "./schema/marketing";
|
||||
import * as timeTracking from "./schema/time-tracking";
|
||||
import * as shipping from "./schema/shipping";
|
||||
import * as support from "./schema/support";
|
||||
import * as files from "./schema/files";
|
||||
|
||||
const schema = {
|
||||
...brands,
|
||||
...billing,
|
||||
...products,
|
||||
...stops,
|
||||
...customers,
|
||||
...orders,
|
||||
...brand,
|
||||
...wholesale,
|
||||
...waterLog,
|
||||
...communications,
|
||||
...marketing,
|
||||
...timeTracking,
|
||||
...shipping,
|
||||
...support,
|
||||
...files,
|
||||
};
|
||||
|
||||
type Schema = typeof schema;
|
||||
export type Db = NodePgDatabase<Schema>;
|
||||
|
||||
Reference in New Issue
Block a user