In order to avoid confusion between the /db folder with migrations and /api/db — Knex client.
// BEFORE
import db, { User } from "../db";
await db.table<User>("user").select();
// AFTER
import { db, User } from "../core";
await db.table<User>("user").select();
In order to avoid confusion between the
/db
folder with migrations and/api/db
— Knex client.