import { IStore } from '../IStore';

/**
 * SettingsStore - IndexedDB ObjectStore definition for tenant settings
 *
 * Single store for all settings sections. Settings are stored as one document
 * per tenant with id='tenant-settings'.
 */
export class SettingsStore implements IStore {
  static readonly STORE_NAME = 'settings';
  readonly storeName = SettingsStore.STORE_NAME;

  create(db: IDBDatabase): void {
    db.createObjectStore(SettingsStore.STORE_NAME, { keyPath: 'id' });
  }
}
