refactor: create db types
This commit is contained in:
parent
82f0e14abf
commit
6af1e8f326
7 changed files with 31 additions and 31 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue