refactor: create db types

This commit is contained in:
C4illin 2025-06-03 17:13:20 +02:00
parent 82f0e14abf
commit 6af1e8f326
7 changed files with 31 additions and 31 deletions

View file

@ -7,12 +7,7 @@ import { randomUUID } from "node:crypto";
import { ACCOUNT_REGISTRATION, WEBROOT, HIDE_HISTORY, ALLOW_UNAUTHENTICATED, HTTP_ALLOWED } from "../helpers/env";
import db from "../db/db";
export class User {
id!: number;
email!: string;
password!: string;
}
import { User } from "../db/types";
export let FIRST_RUN = db.query("SELECT * FROM users").get() === null || false;