Advertisement
KoctrX

Untitled

May 29th, 2023
934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import VueIdb from 'vue-idb';
  2. import Vue from 'vue';
  3.  
  4. Vue.use(VueIdb);
  5. export default new class {
  6.     constructor() {
  7.         this.db = new VueIdb({
  8.             version: 3,
  9.             database: 'Test_1',
  10.             schemas: [
  11.                 { tags: 'id,name,tags,dateTime' },
  12.                 { categories: 'id,name,mode,dateTime' }, // mode - income, expenses
  13.                 { income: 'id, name, categories, description, tags, amount, isCustom, dateTime, check, image, extract' },
  14.                 { expenses: 'id, name, description, catepgories, tags, amount, isCustom, dateTime, currency, amountUAH, check, image, extract' },
  15.                 { accounts: 'id, title, currency, image, dateTime, files' }, // files array links { filename, src, size }
  16.             ]
  17.         });
  18.     }
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement