mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-15 05:55:29 +01:00
12 lines
324 B
TypeScript
12 lines
324 B
TypeScript
import {Sequelize} from 'sequelize-typescript';
|
|
import path from 'path';
|
|
import {DATA_DIR} from '../utils/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]
|
|
});
|