Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import VueIdb from 'vue-idb';
- import Vue from 'vue';
- Vue.use(VueIdb);
- export default new class {
- constructor() {
- this.db = new VueIdb({
- version: 3,
- database: 'Test_1',
- schemas: [
- { tags: 'id,name,tags,dateTime' },
- { categories: 'id,name,mode,dateTime' }, // mode - income, expenses
- { income: 'id, name, categories, description, tags, amount, isCustom, dateTime, check, image, extract' },
- { expenses: 'id, name, description, catepgories, tags, amount, isCustom, dateTime, currency, amountUAH, check, image, extract' },
- { accounts: 'id, title, currency, image, dateTime, files' }, // files array links { filename, src, size }
- ]
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement