SettingsStoreEntry
SettingsStoreEntry
An entity for storing arbitrary settings data with scoped isolation. This is used by the SettingsStore system to provide flexible key-value storage with support for user, channel, and custom scoping.
Signature
class SettingsStoreEntry extends VendureEntity {
constructor(input?: Partial<SettingsStoreEntry>)
@Index()
@Column()
key: string;
@Column('json', { nullable: true })
value: any | null;
@Index()
@Column({ type: 'varchar', nullable: true })
scope: string | null;
}
- Extends:
VendureEntity
constructor
method
(input?: Partial<SettingsStoreEntry>) => SettingsStoreEntrykey
property
stringThe settings key, typically in the format 'namespace.fieldName'
value
property
any | nullThe JSON value stored for this setting
scope
property
string | nullThe scope string that isolates this setting (e.g., 'user:123', 'channel:456', '')