mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
19 lines
686 B
TypeScript
19 lines
686 B
TypeScript
import { DBConfig } from 'ngx-indexed-db';
|
|
|
|
export const PLAYLISTS_STORE = 'playlists';
|
|
|
|
export const dbConfig: DBConfig = {
|
|
name: 'MyIptvDb',
|
|
version: 1,
|
|
objectStoresMeta: [{
|
|
store: PLAYLISTS_STORE,
|
|
storeConfig: { keyPath: 'id', autoIncrement: true },
|
|
storeSchema: [
|
|
{ name: 'title', keypath: 'title', options: { unique: false } },
|
|
{ name: 'filename', keypath: 'filename', options: { unique: false } },
|
|
{ name: 'playlist', keypath: 'playlist', options: { unique: false } },
|
|
{ name: 'importDate', keypath: 'importDate', options: { unique: false } },
|
|
{ name: 'lastUsage', keypath: 'lastUsage', options: { unique: false } },
|
|
]
|
|
}]
|
|
}; |