1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-09-30 04:12:03 +02:00
ntfy/web/src/app/db.js

19 lines
396 B
JavaScript
Raw Normal View History

import Dexie from 'dexie';
// Uses Dexie.js
// https://dexie.org/docs/API-Reference#quick-reference
//
// Notes:
// - As per docs, we only declare the indexable columns, not all columns
const db = new Dexie('ntfy');
db.version(1).stores({
2022-03-02 22:16:30 +01:00
subscriptions: '&id,baseUrl',
notifications: '&id,subscriptionId,time',
2022-03-02 04:01:51 +01:00
users: '&baseUrl,username',
prefs: '&key'
});
export default db;