mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-14 21:45:29 +01:00
13 lines
345 B
TypeScript
13 lines
345 B
TypeScript
import {Sequelize} from 'sequelize-typescript';
|
|
import path from 'path';
|
|
import {DATA_DIR} from '../services/config';
|
|
import {Settings, Shortcut} from '../models';
|
|
|
|
export const sequelize = new Sequelize({
|
|
dialect: 'sqlite',
|
|
database: 'muse',
|
|
storage: path.join(DATA_DIR, 'db.sqlite'),
|
|
models: [Settings, Shortcut],
|
|
logging: false
|
|
});
|