import { ObjectStoreSchema } from 'ngx-indexed-db/lib/ngx-indexed-db.meta' ; export const userSettingsSchema = [ { name : 'resource' , keypath : 'resource' , options : { unique : true } } , { name : 'user_id' , keypath : 'user_id' , options : { unique : false } } , { name : 'payloads' , keypath : 'payloads' , options : { unique : false } } , { name : 'setting_type' , keypath : 'setting_type' , options : { unique : false } } ] ; /**
 * Basic user setting class. Wrapper class for all CRUD functions with the API.
 */ export class UserSetting < P = UserSettingPayload > { static readonly USER_SETTING_TYPE = 'APPLICATION' ; public readonly resource : string ; public readonly user_id : number ; public payloads : Array < P > ; public readonly setting_type : string = UserSetting . USER_SETTING_TYPE ; constructor ( resource , user_id , payloads = [ ] ) { this . resource = resource ; this . user_id = user_id ; this . payloads = payloads ; } } export interface UserSettingPayload { id : string ; }