refactor(database): 🚚 Move database ORM code to classes/database

The old directory, packages/database-interface, was confusingly named so it was better to move it here
This commit is contained in:
Jesse Wierzbinski 2024-10-24 16:28:38 +02:00
parent 120ba0fb81
commit e52e230ce3
No known key found for this signature in database
110 changed files with 165 additions and 165 deletions

View file

@ -1,10 +1,10 @@
import { apiRoute, applyConfig, auth } from "@/api";
import { createRoute } from "@hono/zod-openapi";
import { z } from "zod";
import { Attachment } from "~/classes/database/attachment";
import { MediaManager } from "~/classes/media/media-manager";
import { RolePermissions } from "~/drizzle/schema";
import { config } from "~/packages/config-manager/index.ts";
import { Attachment } from "~/packages/database-interface/attachment";
import { ErrorSchema } from "~/types/api";
export const meta = applyConfig({

View file

@ -2,10 +2,10 @@ import { apiRoute, applyConfig, auth } from "@/api";
import { createRoute } from "@hono/zod-openapi";
import sharp from "sharp";
import { z } from "zod";
import { Attachment } from "~/classes/database/attachment";
import { MediaManager } from "~/classes/media/media-manager";
import { RolePermissions } from "~/drizzle/schema";
import { config } from "~/packages/config-manager/index.ts";
import { Attachment } from "~/packages/database-interface/attachment";
import { ErrorSchema } from "~/types/api";
export const meta = applyConfig({