17 lines
329 B
TypeScript
17 lines
329 B
TypeScript
|
|
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'
|
||
|
|
}
|
||
|
|
}
|