Add FileCache model

This commit is contained in:
Max Isom 2021-11-18 20:55:57 -05:00
parent d805da906a
commit 04c7e61fc0
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
7 changed files with 26 additions and 9 deletions

View file

@ -1,12 +1,12 @@
import {Sequelize} from 'sequelize-typescript';
import path from 'path';
import {DATA_DIR} from '../services/config.js';
import {KeyValueCache, Settings, Shortcut} from '../models/index.js';
import {FileCache, KeyValueCache, Settings, Shortcut} from '../models/index.js';
export const sequelize = new Sequelize({
dialect: 'sqlite',
database: 'muse',
storage: path.join(DATA_DIR, 'db.sqlite'),
models: [KeyValueCache, Settings, Shortcut],
models: [FileCache, KeyValueCache, Settings, Shortcut],
logging: false,
});