17 lines
329 B
TypeScript
Raw Normal View History

import Realm, { ObjectSchema } from 'realm'
export class OptionsModel extends Realm.Object<OptionsModel> {
key: string;
value: string;
type: string;
static schema: ObjectSchema = {
name: 'Options',
properties: {
key: 'string',
value: 'string',
type: 'string'
},
primaryKey: 'key'
}
}