MM_36721 : Restructure Entities - Global & System (#5504)

This commit is contained in:
Avinash Lingaloo
2021-07-02 13:08:12 +04:00
committed by GitHub
parent 10bfc9d604
commit 7ff119fdc1
28 changed files with 57 additions and 83 deletions

View File

@@ -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;
}

View File

@@ -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;
}