mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-02 17:14:55 +02:00
move schema.ts to module
This commit is contained in:
parent
013f342ff6
commit
fefb07e14c
141 changed files with 146 additions and 145 deletions
|
@ -8,7 +8,7 @@ import {
|
|||
resourceSessions,
|
||||
sessions,
|
||||
userInvites
|
||||
} from "@server/db/schema";
|
||||
} from "@server/db/schemas";
|
||||
import logger from "@server/logger";
|
||||
import { lt } from "drizzle-orm";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { db } from "@server/db";
|
||||
import { domains, exitNodes, orgDomains, orgs, resources } from "../db/schema";
|
||||
import { domains, exitNodes, orgDomains, orgs, resources } from "../db/schemas/schema";
|
||||
import config from "@server/lib/config";
|
||||
import { eq, ne } from "drizzle-orm";
|
||||
import logger from "@server/logger";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { ActionsEnum } from "@server/auth/actions";
|
||||
import { db } from "@server/db";
|
||||
import { actions, roles, roleActions } from "../db/schema";
|
||||
import { actions, roles, roleActions } from "../db/schemas/schema";
|
||||
import { eq, inArray } from "drizzle-orm";
|
||||
import logger from "@server/logger";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { migrate } from "drizzle-orm/better-sqlite3/migrator";
|
|||
import db, { exists } from "@server/db";
|
||||
import path from "path";
|
||||
import semver from "semver";
|
||||
import { versionMigrations } from "@server/db/schema";
|
||||
import { versionMigrations } from "@server/db/schemas";
|
||||
import { __DIRNAME, APP_PATH, APP_VERSION } from "@server/lib/consts";
|
||||
import { SqliteError } from "better-sqlite3";
|
||||
import fs from "fs";
|
||||
|
|
|
@ -3,7 +3,7 @@ import { configFilePath1, configFilePath2 } from "@server/lib/consts";
|
|||
import fs from "fs";
|
||||
import yaml from "js-yaml";
|
||||
import { sql } from "drizzle-orm";
|
||||
import { domains, orgDomains, resources } from "@server/db/schema";
|
||||
import { domains, orgDomains, resources } from "@server/db/schemas";
|
||||
|
||||
const version = "1.0.0-beta.15";
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
targets,
|
||||
userInvites,
|
||||
users
|
||||
} from "@server/db/schema";
|
||||
} from "@server/db/schemas";
|
||||
import { APP_PATH, configFilePath1, configFilePath2 } from "@server/lib/consts";
|
||||
import { eq, sql } from "drizzle-orm";
|
||||
import fs from "fs";
|
||||
|
|
|
@ -2,7 +2,7 @@ import { generateId, invalidateAllSessions } from "@server/auth/sessions/app";
|
|||
import { hashPassword, verifyPassword } from "@server/auth/password";
|
||||
import config from "@server/lib/config";
|
||||
import db from "@server/db";
|
||||
import { users } from "@server/db/schema";
|
||||
import { users } from "@server/db/schemas";
|
||||
import logger from "@server/logger";
|
||||
import { eq } from "drizzle-orm";
|
||||
import moment from "moment";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue