blob: be42013bfa506016b934103aeeb09db1597f3324 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import {Sequelize} from 'sequelize-typescript';
import path from 'path';
import {DATA_DIR} from '../services/config.js';
import {Cache, Settings, Shortcut} from '../models/index.js';
export const sequelize = new Sequelize({
dialect: 'sqlite',
database: 'muse',
storage: path.join(DATA_DIR, 'db.sqlite'),
models: [Cache, Settings, Shortcut],
logging: false,
});
|