Environment Config

This commit is contained in:
Felix Kaspar
2024-05-29 23:45:56 +02:00
parent 09a3d83dc5
commit c19bc8d07a
7 changed files with 44 additions and 27 deletions

View File

@@ -1,7 +1,11 @@
import 'dotenv/config';
import { Sequelize, DataTypes } from "sequelize";
//TODO: Make this configurable
const sequelize = new Sequelize("sqlite::memory:");
const sequelize = new Sequelize("sqlite::memory:", {
logging: process.env.SEQUELIZE_LOGGING === "True" ? console.log : false
});
import { User, AccessRule, APIKey, Password } from "../auth/user/user-model";