fast-calorie/public/js/db.js

15 lines
289 B
JavaScript

import Dexie from 'dexie';
const db = new Dexie('fast');
db.version(1).stores({
catalog: '++id, value, type, target',
entries: '++id, day, type'
});
// db.open().catch(function (err) {
// console.error('Failed to open db: ' + (err.stack || err));
// });
export default db;