forked from Ivasoft/mattermost-mobile
MM_36721 : Restructure Entities - Global & System (#5504)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import {Model} from '@nozbe/watermelondb';
|
||||
import {field, json} from '@nozbe/watermelondb/decorators';
|
||||
import {json} from '@nozbe/watermelondb/decorators';
|
||||
|
||||
import {MM_TABLES} from '@constants/database';
|
||||
|
||||
@@ -18,9 +18,6 @@ export default class Global extends Model {
|
||||
/** table (name) : global */
|
||||
static table = GLOBAL;
|
||||
|
||||
/** name : The label/key to use to retrieve the special 'value' */
|
||||
@field('name') name!: string;
|
||||
|
||||
/** value : The value part of the key-value combination */
|
||||
/** value : The value part of the key-value combination and whose key will be the id column */
|
||||
@json('value', (rawJson) => rawJson) value!: any;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import {Model} from '@nozbe/watermelondb';
|
||||
import {field, json} from '@nozbe/watermelondb/decorators';
|
||||
import {json} from '@nozbe/watermelondb/decorators';
|
||||
|
||||
import {MM_TABLES} from '@constants/database';
|
||||
|
||||
@@ -17,9 +17,6 @@ export default class System extends Model {
|
||||
/** table (name) : System */
|
||||
static table = SYSTEM;
|
||||
|
||||
/** name : The name or key value for the config */
|
||||
@field('name') name!: string;
|
||||
|
||||
/** value : The value for that config/information */
|
||||
/** value : The value for that config/information and whose key will be the id column */
|
||||
@json('value', (rawJson) => rawJson) value!: any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user