(function (global) {
    'use strict';

    /**
     * All IndexedDB databases used by this project.
     * Add new entries here when another store is introduced.
     */
    global.KARVI_INDEXEDDB_REGISTRY = [
        {
            dbName: 'karvi_partner_contracts',
            version: 2,
            labelKey: 'idb_db_contracts',
            stores: [
                {
                    name: 'contracts',
                    keyPath: 'id',
                    labelKey: 'idb_store_contracts',
                    syncApiUrl: (window.karviPath ? window.karviPath('/admin/api/contracts') : '/admin/api/contracts'),
                },
            ],
        },
    ];
})(window);
