* Push notifications entry point * Process android notification natively only if RN is not initialized * Database changes to store local channel viewed_at * EphemeralStore wait until screen removed * Move schedule session notification to utility * Fix channel remote & local actions + added actions for markChannelAsViewed & fetchMyChannel * Add fetchMyTeam remote action * Add dismissAllModalsAndPopToScreen to navigation * Improve post list component & add app state to re-trigger queries * Improve WS implementation * Handle push notification events * Fix postsInChannel since handler * Handle in-app notifications * Post list to listen to column changes * Track selected bottom tab in ephemeral store * add useIsTablet hook * in-app notifications on tablets
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {AppSchema, appSchema, tableSchema} from '@nozbe/watermelondb';
|
|
|
|
import {MM_TABLES} from '@constants/database';
|
|
|
|
const {INFO, GLOBAL, SERVERS} = MM_TABLES.APP;
|
|
|
|
export const schema: AppSchema = appSchema({
|
|
version: 1,
|
|
tables: [
|
|
tableSchema({
|
|
name: INFO,
|
|
columns: [
|
|
{name: 'build_number', type: 'string'},
|
|
{name: 'created_at', type: 'number'},
|
|
{name: 'version_number', type: 'string'},
|
|
],
|
|
}),
|
|
tableSchema({
|
|
name: GLOBAL,
|
|
columns: [
|
|
{name: 'value', type: 'string'},
|
|
],
|
|
}),
|
|
tableSchema({
|
|
name: SERVERS,
|
|
columns: [
|
|
{name: 'db_path', type: 'string'},
|
|
{name: 'display_name', type: 'string'},
|
|
{name: 'url', type: 'string', isIndexed: true},
|
|
{name: 'last_active_at', type: 'number', isIndexed: true},
|
|
{name: 'identifier', type: 'string', isIndexed: true},
|
|
],
|
|
}),
|
|
],
|
|
});
|