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